Skip to main content
POST

授权

Authorization
string
header
必填

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

请求体

application/json
model
string
必填
示例:

"gpt-5.5"

input
必填

Responses 输入。可以是字符串,也可以是 message / tool-result item 数组。

instructions
string

系统或开发者指令。

max_output_tokens
integer

思考与最终答案共用的最大 token 数。上限因模型而异;预算耗尽时答案可能不完整。

必填范围: x >= 1
temperature
number
必填范围: 0 <= x <= 2
top_p
number
必填范围: 0 <= x <= 1
reasoning
object
text
object
tools
object[]

Responses tools,包含 function tools 和 web_search_preview 等内置工具。

tool_choice
stream
boolean

为 true 时返回 OpenAI Responses SSE 事件。

metadata
object
reasoning_effort
enum<string>

reasoning.effort 的兼容别名。同时提供两种 effort 写法时,值必须一致;冲突返回 400。 思考强度。此枚举仅表示语法允许值,不代表每个模型均支持。模型不支持的值返回 400。Kimi K3 支持 low、high、max(默认 max);GPT-5.4/5.5 支持 none、low、medium、high、xhigh。Claude 与 Gemini 限制见 /zh/models/chat-models。省略时保持模型默认行为。模型级可用档位、默认档位与能否关闭思考都发布在 GET /v1/models 的 capability_metadata.reasoning 中。

可用选项:
none,
minimal,
low,
medium,
high,
xhigh,
max

响应

OpenAI-compatible Responses response.

id
string
必填
object
string
必填
示例:

"response"

status
string
必填
model
string
必填
output
object[]
必填
created_at
integer
output_text
string
usage
object