Skip to main content
POST
cURL
需要推理与工具调用时使用 Responses API。AnyFast 也接受 low 强度下的 Chat Completions 函数调用;none 和 minimal 推理强度均不受支持。
Responses API 返回 model: "gpt-6.1-sol";Chat Completions 返回 model: "azure/gpt-6.1-sol"。一次请求设置 prompt_cache_options.ttl: "30m" 后,响应仍报告 prompt_cache_retention: "24h";有效缓存时长尚未验证。

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

application/json

此模型不支持 none 或 minimal;请从请求中移除 temperature、top_p 和 top_logprobs。

model
enum<string>
必填
可用选项:
gpt-6.1-sol
input
必填

文本或有序输入项,包括文本和图像内容。

instructions
string
reasoning
object
max_output_tokens
integer

可见输出和推理 token 的最大数量。

必填范围: 1 <= x <= 128000
text
object

文本详细程度或结构化输出配置。

tools
object[]
tool_choice
可用选项:
none,
auto,
required
stream
boolean
默认值:false
prompt_cache_key
string
prompt_cache_options
object
include
string[]

此模型的 include 中不要请求 message.output_text.logprobs。

响应

响应创建成功。

id
string
必填
object
enum<string>
必填
可用选项:
response
model
string
必填
示例:

"gpt-6.1-sol"

status
enum<string>
必填
可用选项:
queued,
in_progress,
completed,
incomplete,
failed,
cancelled
output
object[]
必填

文本位于 type 为 output_text 的消息内容块;函数调用位于 function_call 输出项。

created_at
integer
completed_at
integer | null
background
boolean
usage
object
reasoning
object
error
object | null
incomplete_details
object | null
content_filters
object[]

AnyFast 响应中观察到的内容过滤诊断信息。

tool_usage
object

AnyFast 响应中观察到的工具用量信息。

max_output_tokens
integer | null
max_tool_calls
integer | null
instructions
string | null
metadata
object
moderation
object | null
parallel_tool_calls
boolean
previous_response_id
string | null
prompt_cache_key
string | null
prompt_cache_retention
string
safety_identifier
string | null
service_tier
string
store
boolean
text
object
tool_choice
tools
object[]
truncation
string
user
string | null
frequency_penalty
number
presence_penalty
number
temperature
number

网关返回的值;带推理的请求仍应省略此采样参数。

top_p
number

网关返回的值;带推理的请求仍应省略此采样参数。

top_logprobs
integer