- Home
- Models
- Comparisons
- GPT-5.4 vs GPT-5.2
GPT-5.4 vs GPT-5.2: API pricing and context window
GPT-5.2 is 30% cheaper than GPT-5.4 for input ($1.75 vs $2.50 per 1M tokens) and 7% cheaper for output ($14.00 vs $15.00). Context window: 1,050,000 tokens for GPT-5.4, 272,000 for GPT-5.2. A 10K-input, 1K-output request costs $0.04 on GPT-5.4 and $0.032 on GPT-5.2.
- GPT-5.4
- $2.50 / $15.00 Input / Output, per 1M tokens · 1.05M context window
- GPT-5.2
- $1.75 / $14.00 Input / Output, per 1M tokens · 272K context window
Side by side
| Field | GPT-5.4 | GPT-5.2 | GPT-5.4 vs GPT-5.2 |
|---|---|---|---|
| Input | $2.50 | $1.75 | +43% |
| Output | $15.00 | $14.00 | +7% |
| Cached input | $0.25 | $0.175 | +43% |
| Context window | 1,050,000 | 272,000 | +286% |
| Max output | 128,000 | 128,000 | |
| Long-context threshold | 272,000 | none | |
| Batch API input | $1.25 | $0.875 | +43% |
| Batch API output | $7.50 | $7.00 | +7% |
| Flex input | $1.25 | $0.875 | +43% |
| Flex output | $7.50 | $7.00 | +7% |
| Fast mode (formerly Priority) input | $5.00 | $3.50 | +43% |
| Fast mode (formerly Priority) output | $30.00 | $28.00 | +7% |
| Image input | Yes | Yes | |
| Function calling | Yes | Yes | |
| Reasoning | Yes | Yes | |
| Prompt caching | Yes | Yes | |
| PDF input | Yes | Yes | |
| Structured output | Yes | Yes | |
| Extra-high reasoning effort | Yes | Yes | |
| Input types | text, image | text, image | |
| Output types | text | text, image |
Cost per task
| Task | GPT-5.4 | GPT-5.2 | Cheaper |
|---|---|---|---|
| Chat request (10K in + 1K out) | $0.04 | $0.032 | GPT-5.2 (21% less) |
| Codebase question (100K in + 2K out) | $0.28 | $0.203 | GPT-5.2 (28% less) |
| Same question, context cached (100K cached + 2K out) | $0.055 | $0.046 | GPT-5.2 (17% less) |
| Long document (300K in + 4K out) | $1.59 | Context exceeded | — |
| 1M tokens a month (750K in + 250K out) | $5.63 | $4.81 | GPT-5.2 (14% less) |
Estimate your own workload in the calculator
Which one to pick
- GPT-5.2 is cheaper for a chat request, a codebase question, a question with cached context and 1M tokens a month.
- Pick GPT-5.4 for prompts over 272K tokens: it accepts up to 1,050,000 input tokens, GPT-5.2 up to 272,000.
- GPT-5.4 bills the whole request at $5.00 input and $22.50 output per 1M once a prompt passes 272K tokens; GPT-5.2 lists no long-context surcharge.
- Through the Batch API, GPT-5.2 is cheaper for input and output: $0.875 vs $1.25 and $7.00 vs $7.50 per 1M tokens.
- GPT-5.2 charges less for cached input reads: $0.175 vs $0.25 per 1M tokens.
More comparisons
- GPT-5.5 vs GPT-5.4
- GPT-5.2 vs GPT-5.1
- Claude Sonnet 5.5 vs GPT-5.4
- GPT-5.4 vs Gemini 3.8 Flash
- GPT-5.4 vs Gemini 3.5 Flash
- GPT-5.4 vs Grok 4.3
Questions
Which is cheaper, GPT-5.4 or GPT-5.2?
GPT-5.2 is 30% cheaper than GPT-5.4 for input ($1.75 vs $2.50 per 1M tokens) and 7% cheaper for output ($14.00 vs $15.00). A 10K-input, 1K-output request costs $0.04 on GPT-5.4 and $0.032 on GPT-5.2.
Which has the larger context window, GPT-5.4 or GPT-5.2?
GPT-5.4 accepts more: 1,050,000 input tokens, against 272,000 for GPT-5.2. Both return up to 128,000 output tokens.
How much does a typical request cost on GPT-5.4 and GPT-5.2?
A chat request with 10K input and 1K output tokens costs $0.04 on GPT-5.4 and $0.032 on GPT-5.2. A 100K-token codebase question with a 2K answer costs $0.28 and $0.203.
What are the differences between GPT-5.4 and GPT-5.2?
GPT-5.4 / GPT-5.2: input: $2.50 / $1.75; output: $15.00 / $14.00; cached input: $0.25 / $0.175; context window: 1,050,000 / 272,000; long-context threshold: 272,000 / none; Batch API input: $1.25 / $0.875; Batch API output: $7.50 / $7.00; Flex input: $1.25 / $0.875; Flex output: $7.50 / $7.00.