Skip to content
RU

Create a response (OpenAI Responses-compatible)

POST
/responses
curl --request POST \
--url https://api.mixen.ai/v1/responses \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "model": "example", "input": [ {} ], "instructions": "example", "tools": [ {} ], "tool_choice": "example", "max_output_tokens": 1, "temperature": 1, "reasoning": {}, "stream": false, "top_p": 1, "provider": {}, "service_tier": "example", "previous_response_id": "example", "store": true, "background": true, "metadata": {}, "text": "example" }'

OpenAI Responses API compatible endpoint for Codex CLI / OpenAI Agents SDK. Stateless: send the full input on every request (previous_response_id/store are not supported). Streaming: SSE events response.created / response.output_item.* / response.output_text.* / response.completed.

Media typeapplication/json
ResponsesRequest

Запрос /v1/responses. extra=‘ignore’: drop-in клиенты шлют много не-MVP полей (parallel_tool_calls, truncation, user…) — молча терпим.

object
model
required
Model
string
input
required
Any of:
string
instructions
Any of:
string
tools
Any of:
Array<object>
object
key
additional properties
any
tool_choice
Any of:
Tool Choice
max_output_tokens
Any of:
integer
temperature
Any of:
number
reasoning
Any of:
object
key
additional properties
any
stream
Stream
boolean
top_p
Any of:
number
provider
Any of:
object
key
additional properties
any
service_tier
Any of:
string
previous_response_id
Any of:
string
store
Any of:
boolean
background
Any of:
boolean
metadata
Any of:
object
key
additional properties
any
text
Any of:
Text

Successful Response

Media typeapplication/json
Examplegenerated
example

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}