GPT-5.4
GPT-5.4 — OpenAI's flagship model for complex reasoning, code, and multimodal tasks.
| Type | Price / 1M tokens | Notes |
|---|---|---|
| Input | $2.50 | Per 1M input tokens |
| Output | $15.00 | Per 1M output tokens |
| Cache read | $0.25 | Cached prefix read-back |
| Batch API | $1.25 in / $7.50 out | ~50% off, async (up to 24h) |
At $2.50/M input and $15/M output, GPT-5.4 competes directly with Claude Opus on capability at a lower price.
Best for
- Complex code generation and debugging
- Structured output with strict JSON schemas
- Multimodal tasks (vision + text)
- Agent workloads with heavy tool use
Not ideal for
- Simple classification at scale
- Cost-sensitive high-volume inference
Real cost scenarios
| Scenario | Est. monthly cost | Breakdown |
|---|---|---|
| Code review agent — 200 PRs/day | $1,350 | 3k in, 500 out per PR |
| Data extraction — 1M documents/month | $5,000 | 2k in, 100 out per document |
Estimates with typical token distributions. Use the Prompt Cost Calculator for your exact workload.
How to cut costs on GPT-5.4
- Use OpenAI prompt caching (automatic, no config) for stable system prompts — 50% reduction on cached tokens.
- Use GPT-5 mini for simple subtasks in agent workflows — 10× cheaper for classification and routing.
- Batch API gives 50% off for non-real-time workloads.
Calculate your GPT-5.4 costs
Other OpenAI models
Compare GPT-5.4
Frequently Asked Questions
How does GPT-5.4 compare to GPT-5.4 mini?
GPT-5.4 is 10× more expensive but scores 8-15% higher on complex reasoning benchmarks. For most classification, extraction, and simple Q&A: GPT-5 mini is the better choice. Reserve GPT-5.4 for tasks where that quality delta matters: complex code, nuanced analysis, structured output that requires strict schema adherence.
What is GPT-5.4's context window?
1 million tokens (1M context), which puts it among the longest-context models available. This is sufficient for entire codebases, long legal documents, or book-length content without chunking.
Pricing verified 2026-08-19 from OpenAI official pricing. All prices in USD per 1M tokens. See methodology and price changelog.