跳转到主要内容
POST
Responses Format

授权

Authorization
string
header
必填

Use Bearer Token authentication Format: Authorization: Bearer sk-xxxxxx

请求体

application/json
model
string
必填
input

Input content, can be a string or message array

instructions
string
max_output_tokens
integer
temperature
number
top_p
number
stream
boolean
tools
object[]
tool_choice
reasoning
object
previous_response_id
string
truncation
enum<string>
可用选项:
auto,
disabled

响应

200 - application/json

Response created successfully

id
string
object
string
示例:

"response"

created_at
integer
status
enum<string>
可用选项:
completed,
failed,
in_progress,
incomplete
model
string
output
object[]
usage
object