# 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](https://llmbox.cc/en/docs/codex)).

## Request

```bash [curl]
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
  }'
```

```python [Python]
from openai import OpenAI

client = OpenAI(base_url="https://llmbox.cc/v1", api_key="$LLMBOX_API_KEY")
resp = client.responses.create(
    model="openai/gpt-5.6-sol",
    instructions="Answer briefly.",
    input="How many planets are in the Solar System?",
    max_output_tokens=200,
)
print(resp.output_text)
```

## 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.** `store` is always `false`; `previous_response_id`,
  `conversation`, `prompt` and `"background": true` are rejected with
  `400 unsupported_parameter`. Send the whole history in `input` of every
  request — Codex already does.
- **Parameters have their own names:** `max_output_tokens` instead of
  `max_tokens`, `reasoning.effort` instead of `reasoning_effort`, `text.format`
  instead of `response_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](https://llmbox.cc/en/docs/params#effort-level).
- **Tools:** `function`, `custom`, `namespace`, `apply_patch`, `local_shell`,
  `computer`, `tool_search` (only with `"execution": "client"`, otherwise 400)
  and `shell` with a local environment. GPT models support the `web_search`
  tool — see [Web search](https://llmbox.cc/en/docs/params#web-search). The provider's other
  built-in tools (code execution, file search, `web_search_preview`) are
  stripped.
- `max_tool_calls` is not supported and is stripped.
- **Streaming** — `"stream": true`, `response.*` events; usage is in
  `response.completed`. See [Streaming](https://llmbox.cc/en/docs/streaming).

The full parameter list is in [Request parameters](https://llmbox.cc/en/docs/params).
