gpt-5-4-nano
Capability: 128K context · tool use · vision · streaming
Pricing: per-token, nano tier (live rate)
GPT-5.4-nano is the speed floor of the 5.4 wave. Same nano-tier price
as GPT-5-nano with 5.4’s tighter
output. Right pick for routing, classification, and head-of-pipeline
triage where every millisecond compounds across many calls.
Request
Body parameters
| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
model | string | yes | — | gpt-5-4-nano |
messages | array | yes | — | — |
max_tokens | integer | no | model max | Max: 8192. |
tools | array | no | — | Function calling supported. |
response_format | object | no | — | JSON mode + structured output. |
stream | boolean | no | false | SSE streaming. |
Response
Code examples
Streaming + caching
"stream": true for SSE. Automatic prompt caching.
Errors
| Code | Trigger | Billed? |
|---|---|---|
| 400 / 401 / 402 / 422 / 429 | Standard | No |
| 5xx | Upstream | No (auto-retry) |
When to use
- Routing / classification at the head of an agent pipeline.
- For older 5-series nano, see GPT-5-nano.
- For more capability, see GPT-5.4-mini.
Limits
| Limit | Value |
|---|---|
| Context window | 128K tokens |
| Max output | 8192 tokens |
| Supports tool use | Yes |
| Supports vision | Yes |
| Supports streaming | Yes |
| Supports prompt caching | Automatic |