AI model comparison
GPT-5.2-Codex vs GPT-5.4 Mini
Compare benchmark results, pricing, and API capabilities for each model. Estimate the cost of your own token mix.
Change models
OpenAI
GPT-5.2-Codex- Context tokens
- 400K
- Input / 1M
- $1.75
- Output / 1M
- $14.00
OpenAI
GPT-5.4 Mini- Context tokens
- 400K
- Input / 1M
- $0.75
- Output / 1M
- $4.50
Percent score · Result source · Test method
The trade-offs
Start with the differences that affect how this model fits your workload.
- Benchmark results
- GPT-5.2-Codex and GPT-5.4 Mini scored 86.957% and 75.556%, respectively, on Code Completion. Use the test setup below to check whether it matches your workload.
- Token cost
- For 1 million input tokens and 250,000 output tokens, the listed rates estimate $5.25 for GPT-5.2-Codex and $1.875 for GPT-5.4 Mini.
Benchmarks
Shared results come from the same published benchmark release. Reasoning effort and serving configuration can differ.
Source Result source · Test method
Code Completion
Coding · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- GPT-5.2-Codex
- gpt-5.2-codex
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Code Generation
Coding · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- GPT-5.2-Codex
- gpt-5.2-codex
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Javascript
Agentic Coding · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- GPT-5.2-Codex
- gpt-5.2-codex
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Python
Agentic Coding · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- GPT-5.2-Codex
- gpt-5.2-codex
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Typescript
Agentic Coding · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- GPT-5.2-Codex
- gpt-5.2-codex
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Amps Hard
Mathematics · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- GPT-5.2-Codex
- gpt-5.2-codex
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Connections
Language · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- GPT-5.2-Codex
- gpt-5.2-codex
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Consecutive Events
Data Analysis · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- GPT-5.2-Codex
- gpt-5.2-codex
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Show 15 more shared results
Integrals With Game
Mathematics · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- GPT-5.2-Codex
- gpt-5.2-codex
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Logic With Navigation
Reasoning · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- GPT-5.2-Codex
- gpt-5.2-codex
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Math Comp
Mathematics · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- GPT-5.2-Codex
- gpt-5.2-codex
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Olympiad
Mathematics · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- GPT-5.2-Codex
- gpt-5.2-codex
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Paraphrase
IF · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- GPT-5.2-Codex
- gpt-5.2-codex
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Plot Unscrambling
Language · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- GPT-5.2-Codex
- gpt-5.2-codex
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Simplify
IF · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- GPT-5.2-Codex
- gpt-5.2-codex
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Spatial
Reasoning · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- GPT-5.2-Codex
- gpt-5.2-codex
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Story Generation
IF · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- GPT-5.2-Codex
- gpt-5.2-codex
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Summarize
IF · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- GPT-5.2-Codex
- gpt-5.2-codex
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Tablejoin
Data Analysis · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- GPT-5.2-Codex
- gpt-5.2-codex
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Tablereformat
Data Analysis · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- GPT-5.2-Codex
- gpt-5.2-codex
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Theory Of Mind
Reasoning · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- GPT-5.2-Codex
- gpt-5.2-codex
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Typos
Language · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- GPT-5.2-Codex
- gpt-5.2-codex
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Zebra Puzzle
Reasoning · Suite release Jun 25, 2026 · run date unavailable · Result source · Test method
Test configurations
- GPT-5.2-Codex
- gpt-5.2-codex
- GPT-5.4 Mini
- gpt-5.4-mini-xhigh
Pricing and token cost
Listed OpenRouter prices in US dollars. Actual charges depend on the endpoint, tier, cache, and token mix.
| USD per million tokens | GPT-5.2-Codex | GPT-5.4 Mini |
|---|---|---|
| Uncached input | $1.75 | $0.75 |
| Output | $14.00 | $4.50 |
| Cache read | $0.175 | $0.075 |
| Cache write | Unavailable | Unavailable |
Rates are a catalog snapshot. OpenRouter Models API
Estimate your workload
Enter total token counts. The estimate uses uncached input and output rates.
GPT-5.4 Mini costs $3.375 less at this token mix.
Model specifications
Context, output limits, modalities, and supported API parameters from the catalog.
| Specification | GPT-5.2-Codex | GPT-5.4 Mini |
|---|---|---|
| Catalog status | Listed | Listed |
| Catalog model ID | openai/gpt-5.2-codex | openai/gpt-5.4-mini |
| Provider | OpenAI | OpenAI |
| Context window | 400,000 tokens | 400,000 tokens |
| Max output | 128,000 tokens | 128,000 tokens |
| Input modalities | Text, Image | File, Image, Text |
| Output modalities | Text | Text |
| Reasoning controls | Listed | Listed |
| Tool calling | Listed | Listed |
| Structured outputs | Listed | Listed |
| Serving endpoints | /api/v1/chat/completions, /api/v1/completions, /api/v1/messages, /api/v1/responses | /api/v1/chat/completions, /api/v1/completions, /api/v1/messages, /api/v1/responses |
| Catalog listing date | Jan 14, 2026 | Mar 17, 2026 |
Use with Weave Router
Set a quality bar on your own coding tasks. Then compare cost per completed task and use the same harness when you change models.
GPT-5.2-Codex
Weave Router availability is unverified for this model ID.
GPT-5.4 Mini
Listed in the public Router catalog.
gpt-5.4-miniCatalog presence does not guarantee availability for a specific plan or account. Public Weave Router catalog · Nov 27, 2026
Sources
Each benchmark links to its own result and test method when available.
- OpenRouter Models API · token rates and catalog specifications
- Weave Router catalog · verified Router model IDs
- GPT-5.2-Codex catalog entry
- GPT-5.4 Mini catalog entry