Claude Sonnet 4.5 (latest) vs GPT-5.2 Codex
Claude Sonnet 4.5 (latest) and GPT-5.2 Codex are evenly matched on the 2 benchmarks both report. GPT-5.2 Codex is about 1.2× cheaper on a blended (3:1 input:output) token price. GPT-5.2 Codex has the larger context window (400K vs 200K).
| Spec | Claude Sonnet 4.5 (latest) | GPT-5.2 Codex |
|---|---|---|
| Provider | Anthropic | OpenAI |
| Released | Sep 29, 2025 | Dec 11, 2025 (better) |
| Type | Reasoning LLM | Reasoning LLM |
| Parameters | — | — |
| Context window | 200K | 400K (better) |
| Max output | 64K | 125K (better) |
| Input price / 1M | $3 | $1.75 (better) |
| Output price / 1M | $15 | $14 (better) |
| Input modalities | text, image, pdf, file (better) | text, image |
| Open weights | No | No |
| License | Proprietary | Proprietary |
| Reasoning mode | Yes | Yes |
| Tool calling | Yes | Yes |
| API providers | 40 (better) | 19 |
| Epoch Capabilities Index | 147.6 | — |
| GPQA Diamond | 82.3% | — |
| Humanity's Last Exam | 13.7% | — |
| SWE-bench Verified | 71.3% | — |
| Terminal-Bench | 46.5% | 66.5% (better) |
| WebDev Arena | 1391 (better) | 1339 |
| OTIS Mock AIME | 77.8% | — |
| MATH Level 5 | 97.7% | — |
| FrontierMath | 23.9% | — |
| ARC-AGI-2 | 13.6% | — |
| SimpleQA Verified | 30.7% | — |
| OSWorld | 62.9% | — |
| METR Time Horizon | 122 min | — |
Cost example
For a workload of 10M input + 2M output tokens per month: Claude Sonnet 4.5 (latest) costs $60.00 and GPT-5.2 Codex costs $45.50 at list price (Anthropic / openrouter pricing).
About Claude Sonnet 4.5 (latest)
Claude Sonnet 4.5 (latest) is a proprietary reasoning llm from Anthropic, released Sep 29, 2025. It has a 200K-token context window and accepts text, image, pdf, file input. API pricing starts at $3 per million input tokens and $15 per million output tokens. It is available from 40 API providers. It scores 147.6 on the Epoch Capabilities Index. Full Claude Sonnet 4.5 (latest) specs →
About GPT-5.2 Codex
GPT-5.2 Codex is a proprietary reasoning llm from OpenAI, released Dec 11, 2025. It has a 400K-token context window and accepts text, image input. API pricing starts at $1.75 per million input tokens and $14 per million output tokens. It is available from 19 API providers. Full GPT-5.2 Codex specs →
Compare other models
FAQ
Which is better, Claude Sonnet 4.5 (latest) or GPT-5.2 Codex?
Claude Sonnet 4.5 (latest) and GPT-5.2 Codex are evenly matched on the 2 benchmarks both report. GPT-5.2 Codex is about 1.2× cheaper on a blended (3:1 input:output) token price. GPT-5.2 Codex has the larger context window (400K vs 200K).
Is Claude Sonnet 4.5 (latest) cheaper than GPT-5.2 Codex?
Claude Sonnet 4.5 (latest) costs $3 input / $15 output per 1M tokens; GPT-5.2 Codex costs $1.75 / $14. GPT-5.2 Codex is cheaper overall.
Which has a bigger context window?
Claude Sonnet 4.5 (latest): 200,000 tokens. GPT-5.2 Codex: 400,000 tokens.
Are Claude Sonnet 4.5 (latest) and GPT-5.2 Codex open source?
Claude Sonnet 4.5 (latest) is proprietary; GPT-5.2 Codex is proprietary.