GPT-4o API pricing and context window
GPT-4o costs $2.50 per 1M input tokens and $10.00 per 1M output tokens on the OpenAI API. Cached input reads cost $1.25 per 1M. It accepts up to 128,000 input tokens and returns up to 16,384 output tokens. A typical chat request (10K input, 1K output) costs about $0.035. Prices last updated November 27, 2026.
- Input
- $2.50 per 1M tokens
- Output
- $10.00 per 1M tokens
- Cached input
- $1.25 per 1M tokens
- Context window
- 128,000 tokens
- Max output
- 16,384 tokens
Deprecated; shuts down on January 14, 2027. Successor: GPT-6 Luna.
Pricing options
| Input /1M | Output /1M | vs standard (input / output) | |
|---|---|---|---|
| Batch API | $1.25 | $5.00 | -50% / -50% |
| Fast mode (formerly Priority) | $4.25 | $17.00 | +70% / +70% |
- The Batch API costs $1.25 input and $5.00 output per 1M: input and output 50% cheaper.
Typical task cost
| Task | Cost |
|---|---|
| Chat request (10K in + 1K out) | $0.035 |
| Codebase question (100K in + 2K out) | $0.27 |
| Same question with cached context (100K cached + 2K out) | $0.145 |
| Filling the whole context once (128K in) | $0.32 |
| 1M tokens a month (750K in + 250K out) | $4.38 |
Estimate your own workload in the calculator
GPT-4o compared with the previous and next version
| Model | Input /1M | Output /1M | What changes | |
|---|---|---|---|---|
| Newer | GPT-4.1 | $2.00 -20% | $8.00 -20% | GPT-4o → GPT-4.1: input: $2.50 → $2.00; output: $10.00 → $8.00; cached input: $1.25 → $0.50; context: 128K → 1M+5 more differencesmax output: 16K → 32K; Batch API input: $1.25 → $1.00; Batch API output: $5.00 → $4.00; Fast mode (formerly Priority) input: $4.25 → $3.50; Fast mode (formerly Priority) output: $17.00 → $14.00 |
Capabilities and details
- Image input: Yes
- Function calling: Yes
- Reasoning: Not listed
- Prompt caching: Yes
- PDF input: Yes
- Structured output: Yes
Similar models by price
| Model | Provider | Input /1M | Output /1M | Context window | vs this model (input / output) |
|---|---|---|---|---|---|
| Command A | Cohere | $2.50 | $10.00 | 256K | 0% / 0% |
| Gemini 3.1 Pro Preview | $2.00 | $12.00 | 1M | -20% / +20% | |
| o3 | OpenAI | $2.00 | $8.00 | 200K | -20% / -20% |
| GPT-6.2 Astra | OpenAI | $8.00 | $40.00 | 922K | +220% / +300% |
| GPT-6 Astra | OpenAI | $10.00 | $50.00 | 922K | +300% / +400% |
Price history
| Date | Input /1M | Output /1M | Cached input /1M |
|---|---|---|---|
| $2.50 | $10.00 | $1.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-4o"><img src="https://vibecodingturkey.com/models/badge/gpt-4o.svg" alt="GPT-4o API price" height="20"></a>[](https://vibecodingturkey.com/models/gpt-4o)
Questions
How is GPT-4o different from GPT-4.1?
GPT-4o → GPT-4.1: input: $2.50 → $2.00; output: $10.00 → $8.00; cached input: $1.25 → $0.50; context: 128K → 1M; max output: 16K → 32K; Batch API input: $1.25 → $1.00; Batch API output: $5.00 → $4.00. +2 more differences in the table above.
When will GPT-4o be shut down?
GPT-4o is deprecated and shuts down on January 14, 2027. The listed successor is GPT-6 Luna.
Is there a batch discount for GPT-4o?
Yes. Through the Batch API it costs $1.25 per 1M input and $5.00 per 1M output tokens.
Does GPT-4o support prompt caching?
Yes. Cached input reads cost $1.25 per 1M tokens, 50% less than standard input.