GPT-5.4 API pricing and context window
GPT-5.4 costs $2.50 per 1M input tokens and $15.00 per 1M output tokens on the OpenAI API. Cached input reads cost $0.25 per 1M. It accepts up to 1,050,000 input tokens and returns up to 128,000 output tokens. A typical chat request (10K input, 1K output) costs about $0.04. Prices last updated November 27, 2026.
- Input
- $2.50 per 1M tokens
- Output
- $15.00 per 1M tokens
- Cached input
- $0.25 per 1M tokens
- Context window
- 1,050,000 tokens
- Max output
- 128,000 tokens
Pricing options
| Input /1M | Output /1M | vs standard (input / output) | |
|---|---|---|---|
| Prompt over 272K tokens | $5.00 | $22.50 | +100% / +50% |
| Batch API | $1.25 | $7.50 | -50% / -50% |
| Flex | $1.25 | $7.50 | -50% / -50% |
| Fast mode (formerly Priority) | $5.00 | $30.00 | +100% / +100% |
- Prompts over 272,000 tokens are billed at $5.00 input and $22.50 output per 1M for the whole request.
- The Batch API costs $1.25 input and $7.50 output per 1M: input and output 50% cheaper.
Typical task cost
| Task | Cost |
|---|---|
| Chat request (10K in + 1K out) | $0.04 |
| Codebase question (100K in + 2K out) | $0.28 |
| Same question with cached context (100K cached + 2K out) | $0.055 |
| Long prompt (300K in + 2K out) | $1.55 |
| Filling the whole context once (1.05M in) | $5.25 |
| 1M tokens a month (750K in + 250K out) | $5.63 |
Estimate your own workload in the calculator
GPT-5.4 compared with the previous and next version
| Model | Input /1M | Output /1M | What changes | |
|---|---|---|---|---|
| Newer | GPT-5.5 | $5.00 +100% | $30.00 +100% | GPT-5.4 → GPT-5.5: input: $2.50 → $5.00; output: $15.00 → $30.00; cached input: $0.25 → $0.50; long-context input: $5.00 → $10.00+8 more differenceslong-context output: $22.50 → $45.00; long-context cached input: $0.50 → $1.00; Batch API input: $1.25 → $2.50; Batch API output: $7.50 → $15.00; Flex input: $1.25 → $2.50; Flex output: $7.50 → $15.00; Fast mode (formerly Priority) input: $5.00 → $12.50; Fast mode (formerly Priority) output: $30.00 → $75.00 |
| Older | GPT-5.2 | $1.75 -30% | $14.00 -7% | GPT-5.2 → GPT-5.4: input: $1.75 → $2.50; output: $14.00 → $15.00; cached input: $0.175 → $0.25; context: 272K → 1.05M+8 more differenceslong-context threshold: none → 272K; Batch API input: $0.875 → $1.25; Batch API output: $7.00 → $7.50; Flex input: $0.875 → $1.25; Flex output: $7.00 → $7.50; Fast mode (formerly Priority) input: $3.50 → $5.00; Fast mode (formerly Priority) output: $28.00 → $30.00; output types: text, image → text |
Capabilities and details
- Image input: Yes
- Function calling: Yes
- Reasoning: Yes
- Prompt caching: Yes
- PDF input: Yes
- Structured output: Yes
- Extra-high reasoning effort: Yes
- Input types: text, image
- Output types: text
- Endpoints: /v1/chat/completions, /v1/batch, /v1/responses
Similar models by price
| Model | Provider | Input /1M | Output /1M | Context window | vs this model (input / output) |
|---|---|---|---|---|---|
| Claude Sonnet 4.5 | Anthropic | $3.00 | $15.00 | 200K | +20% / 0% |
| Claude Sonnet 4.6 | Anthropic | $3.00 | $15.00 | 1M | +20% / 0% |
| o3 | OpenAI | $2.00 | $8.00 | 200K | -20% / -47% |
| GPT-6.2 Astra | OpenAI | $8.00 | $40.00 | 922K | +220% / +167% |
| GPT-6 Astra | OpenAI | $10.00 | $50.00 | 922K | +300% / +233% |
Compare GPT-5.4
- GPT-5.5 vs GPT-5.4
- GPT-5.4 vs GPT-5.2
- Claude Sonnet 5.5 vs GPT-5.4
- GPT-5.4 vs Gemini 3.8 Flash
- GPT-5.4 vs Gemini 3.5 Flash
Price history
| Date | Input /1M | Output /1M | Cached input /1M |
|---|---|---|---|
| $2.50 | $15.00 | $0.25 |
Tracking started on November 21, 2026. A new row appears only when a price changes.
Embed this price badge
The badge shows the current list price and updates daily. Paste the HTML or Markdown into your site or README.
<a href="https://vibecodingturkey.com/models/gpt-5-4"><img src="https://vibecodingturkey.com/models/badge/gpt-5-4.svg" alt="GPT-5.4 API price" height="20"></a>[](https://vibecodingturkey.com/models/gpt-5-4)
Questions
How is GPT-5.4 different from GPT-5.2?
GPT-5.2 → GPT-5.4: input: $1.75 → $2.50; output: $14.00 → $15.00; cached input: $0.175 → $0.25; context: 272K → 1.05M; long-context threshold: none → 272K; Batch API input: $0.875 → $1.25; Batch API output: $7.00 → $7.50; Flex input: $0.875 → $1.25. +4 more differences in the table above.
Does GPT-5.4 cost more for long prompts?
Yes. Once a prompt passes 272,000 tokens, the whole request is billed at $5.00 input and $22.50 output per 1M. A 300K-token prompt with a 2K answer costs about $1.55.
Is there a batch discount for GPT-5.4?
Yes. Through the Batch API it costs $1.25 per 1M input and $7.50 per 1M output tokens.
Does GPT-5.4 support prompt caching?
Yes. Cached input reads cost $0.25 per 1M tokens, 90% less than standard input.