OpenAI Responses API. Supports text input and message arrays,
returns a structured Response object containing output messages and usage.
Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
or
Body Params application/jsonRequired
{
"model": "qwen-plus",
"input": "Introduce Beijing"
}
Request Code Samples
curl --location '/v1/responses' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "qwen-plus",
"input": "Introduce Beijing"
}'
Responses
Successfully returns the Response
{
"id": "resp-abc123",
"object": "response",
"created_at": 1713833628,
"model": "qwen-plus",
"status": "completed",
"output": [
{
"type": "message",
"id": "msg-001",
"role": "assistant",
"content": [
{
"type": "output_text",
"text": "Beijing is the capital of China, with a history of over 3,000 years of urban construction and more than 800 years as a capital city..."
}
]
}
],
"usage": {
"prompt_tokens": 10,
"completion_tokens": 50,
"total_tokens": 60
}
}
Modified at 2026-08-18 09:38:15