Create a response (OpenAI Responses-compatible)
POST
/responses
const url = 'https://api.mixen.ai/v1/responses';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"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"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”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
Array<object>
object
key
additional properties
any
tools
Any of:
Array<object>
object
key
additional properties
any
null
tool_choice
Any of:
Tool Choice
null
stream
Stream
boolean
Responses
Section titled “Responses”Successful Response
Media typeapplication/json
Examplegenerated
exampleValidation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
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": {} } ]}