Skip to main content
POST

Headers

string
required
Bearer token authentication. Format: Authorization: Bearer sk-xxxxxx

Body

Format: application/json
string
required
Model ID
string | object[]
Input content, can be a string or an array of messages
string
System instructions
integer
Maximum number of output tokens
number
Sampling temperature
number
Nucleus sampling parameter
boolean
Whether to stream the response
object[]
List of tools
string | object
Tool selection strategy
object
Reasoning parameters
string
Previous response ID, used for multi-turn conversations
string
Truncation strategy. Options: "auto" or "disabled"

Response

200 Successfully created response

Format: application/json
string
Response ID
string
Object type, value is response
integer
Creation timestamp
string
Status. Options: completed, failed, in_progress, incomplete
string
Model ID
object[]
List of output items
object
Token usage information
Last modified on October 28, 2026