Skip to content

Responses

/v1/responses is the OpenAI Responses API compatible entrypoint for Codex CLI and Responses protocol clients.

Interface

ItemValue
MethodPOST
Path/v1/responses, /v1/responses/*
Content-Typeapplication/json
AuthenticationAuthorization: Bearer YOUR_API_KEY

Request Parameters

ParameterTypeRequiredDescription
modelstringYesRequested model.
inputstring or arrayYesResponses API input.
streambooleanNoWhether to stream the response.
instructionsstringNoSystem-level instructions.
reasoningobjectNoReasoning configuration, applied by model capability.
toolsarrayNoTool definitions, depending on upstream and compatibility support.

Request Example

bash
curl https://llmapi.site/v1/responses \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "gpt-5.1",
    "input": "Write a concise release note.",
    "stream": false
  }'

Response Example

json
{
  "id": "resp_123",
  "object": "response",
  "status": "completed",
  "model": "gpt-5.1",
  "output": []
}

WebSocket Compatibility Entry

GET /v1/responses is an OpenAI Responses WebSocket compatibility entry for specific clients.

Compatible Paths

/responses without /v1 and the Codex-specific /backend-api/codex/responses are also registered. See Aliases.