Responses
POST /v1/responses — the OpenAI Responses format that Codex uses.
POST /v1/responses is the OpenAI Responses format. Codex CLI runs on it
(wire_api = "responses", see Codex CLI).
Request
curl https://llmbox.cc/v1/responses \
-H "Authorization: Bearer $LLMBOX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "openai/gpt-5.6-sol",
"instructions": "Answer briefly.",
"input": "How many planets are in the Solar System?",
"max_output_tokens": 200
}'
Response
json
{
"id": "req_...",
"object": "response",
"model": "openai/gpt-5.6-sol",
"status": "completed",
"output": [
{
"type": "message",
"role": "assistant",
"content": [{"type": "output_text", "text": "Eight."}]
}
],
"usage": {"input_tokens": 20, "output_tokens": 2, "total_tokens": 22}
}
Specifics
- No provider-side state.
storeis alwaysfalse;previous_response_id,conversation,promptand"background": trueare rejected with400 unsupported_parameter. Send the whole history ininputof every request — Codex already does. - Parameters have their own names:
max_output_tokensinstead ofmax_tokens,reasoning.effortinstead ofreasoning_effort,text.formatinstead ofresponse_format. Chat Completions parameters have no effect here. - Effort level —
"reasoning": {"effort": "high"}. Allowed values are listed in the model catalog; if omitted, the model's default level applies. The price may depend on the level, see Request parameters. - Tools:
function,custom,namespace,apply_patch,local_shell,computer,tool_search(only with"execution": "client", otherwise 400) andshellwith a local environment. GPT models support theweb_searchtool — see Web search. The provider's other built-in tools (code execution, file search,web_search_preview) are stripped. max_tool_callsis not supported and is stripped.- Streaming —
"stream": true,response.*events; usage is inresponse.completed. See Streaming.
The full parameter list is in Request parameters.