Endpoints
Responses
POST /v1/responses: the OpenAI Responses API, for Codex CLI and Responses-mode clients.
For clients that speak the Responses wire, notably Codex CLI (wire_api = responses) and OpenClaw's responses mode. Requests pass through to the model natively, so the request and response shapes match the OpenAI Responses API.
https://api.roteo.ai/v1/responses- Base URL:
https://api.roteo.ai/v1 - Auth:
Authorization: Bearer sk_your_key
This endpoint serves GPT models (gpt-*); a Claude model here returns 400. For Claude, use Chat Completions.
Request parameters
modelstringrequiredA gpt-* model ID, for example gpt-5.6-sol. See Models.
inputstring | arrayrequiredThe prompt: a string, or an array of Responses input items ({ type: "message", role, content: [...] }). A system-role item is folded into instructions for you.
instructionsstringSystem-level guidance for the model.
toolsarrayFunction tools in Responses shape ({ type: "function", name, parameters }). Tool calls come back as function_call items in the output.
tool_choicestring | objectauto, none, or a specific tool.
streambooleandefault: falseWhen true, the Responses event stream is returned (response.created, response.output_text.delta, ... response.completed).
Example
Response
A completed response object with an output array (message and/or function_call items) and a usage block:
Errors
See Errors. Common cases: 400 (invalid request, unknown model, or a Claude model on this endpoint), 401 (bad key), 402 (wallet underfunded), 429 (rate limited).