Claude Sonnet 4.5 (latest) vs GPT-5-Codex
Claude Sonnet 4.5 (latest) wins 1 of 1 benchmarks both models report. GPT-5-Codex is about 2.0× cheaper on a blended (3:1 input:output) token price. GPT-5-Codex has the larger context window (400K vs 200K).
| Spec | Claude Sonnet 4.5 (latest) | GPT-5-Codex |
|---|---|---|
| Provider | Anthropic | OpenAI |
| Released | Sep 29, 2025 (better) | Sep 15, 2025 |
| Type | Reasoning LLM | Reasoning LLM |
| Parameters | — | — |
| Context window | 200K | 400K (better) |
| Max output | 64K | 125K (better) |
| Input price / 1M | $3 | $1.07 (better) |
| Output price / 1M | $15 | $8.50 (better) |
| Input modalities | text, image, pdf, file (better) | text, image, pdf |
| Open weights | No | No |
| License | Proprietary | Proprietary |
| Reasoning mode | Yes | Yes |
| Tool calling | Yes | Yes |
| API providers | 40 (better) | 10 |
| Epoch Capabilities Index | 147.6 | — |
| GPQA Diamond | 82.3% | — |
| Humanity's Last Exam | 13.7% | — |
| SWE-bench Verified | 71.3% | — |
| Terminal-Bench | 46.5% (better) | 44.3% |
| WebDev Arena | 1391 | — |
| 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-Codex costs $27.70 at list price (Anthropic / opencode 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-Codex
GPT-5-Codex is a proprietary reasoning llm from OpenAI, released Sep 15, 2025. It has a 400K-token context window and accepts text, image, pdf input. API pricing starts at $1.07 per million input tokens and $8.50 per million output tokens. It is available from 10 API providers. Full GPT-5-Codex specs →
Compare other models
FAQ
Which is better, Claude Sonnet 4.5 (latest) or GPT-5-Codex?
Claude Sonnet 4.5 (latest) wins 1 of 1 benchmarks both models report. GPT-5-Codex is about 2.0× cheaper on a blended (3:1 input:output) token price. GPT-5-Codex has the larger context window (400K vs 200K).
Is Claude Sonnet 4.5 (latest) cheaper than GPT-5-Codex?
Claude Sonnet 4.5 (latest) costs $3 input / $15 output per 1M tokens; GPT-5-Codex costs $1.07 / $8.50. GPT-5-Codex is cheaper overall.
Which has a bigger context window?
Claude Sonnet 4.5 (latest): 200,000 tokens. GPT-5-Codex: 400,000 tokens.
Are Claude Sonnet 4.5 (latest) and GPT-5-Codex open source?
Claude Sonnet 4.5 (latest) is proprietary; GPT-5-Codex is proprietary.