gpt-5-4
Capability: 128K context · tool use · vision · streaming · structured output
Pricing: per-token, standard tier (live rate)
GPT-5.4 is the workhorse of the 5.4 wave — better tool-call argument
generation than 5.2, tighter structured output, same 128K context.
Production default for any team that needs more than mini quality but
doesn’t want the 5.5 latency premium. For multi-step reasoning, see
GPT-5.5.
Request
Body parameters
Response
Code examples
Streaming + caching
"stream": true for SSE. Automatic prompt caching for repeated
prefixes — biggest cost win on long system prompts.
Errors
When to use
- Default production model for code generation, content rewriting, and tool-using agents.
- For the latest flagship / multi-step reasoning, see GPT-5.5.
- For lower cost, see GPT-5.4-mini.