# Responses API

`POST /v1/responses` is the OpenAI Responses API, used by Codex-style clients.

| Field | Notes |
|---|---|
| `model` | public id |
| `input` | string or a list of input items |
| `instructions` | system prompt |
| `max_output_tokens` | output cap |
| `tools` | function tools |
| `stream` | Responses events |

```bash
curl "$APIX_BASE/v1/responses" \
  -H "Authorization: Bearer $APIX_KEY" \
  -H "content-type: application/json" \
  -d '{"model": "2/glm-5.3-flash", "input": "Explain SSE in one line."}'
```

ApiX chooses the path per model: providers that speak Responses natively are used
as-is; the rest are converted to chat and back. Streaming works in both cases.
