跳转到主要内容
POST
cURL
需要推理与工具调用时使用 Responses API。AnyFast 接受 Chat Completions 文本请求,但低强度函数调用返回 404 DeploymentNotFound。
Responses 返回 model: "gpt-6.1-terra";Chat Completions 返回 model: "azure/gpt-6.1-terra",且缺少 choices[].logprobs。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
model
enum<string>
必填
可用选项:
gpt-6.1-terra
input
必填

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

reasoning
object
max_output_tokens
integer

输出和推理 token 的总上限。

必填范围: 1 <= x <= 128000
stream
boolean
默认值:false
text
object

文本输出配置;严格 JSON Schema 格式已实测。

prompt_cache_options
object

已接受 30m TTL 请求;有效保留时间尚未验证。

tools
object[]

Responses 函数工具已在 AnyFast 实测。

tool_choice
string

required 已通过函数工具请求实测。

示例:

"required"

响应

成功创建响应。

id
string
必填
object
enum<string>
必填
可用选项:
response
created_at
integer
必填

响应创建时的 Unix 时间戳。

model
string
必填
示例:

"gpt-6.1-terra"

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

响应完成时的 Unix 时间戳。

reasoning
object
prompt_cache_retention
string

实测 30m TTL 请求在此处返回 24h;短请求未发生缓存写入。

usage
object