Across 10 comparable benchmarks, Claude Sonnet 4.5 and GPT-5.1 Codex are evenly matched at 5 apiece.
Moderate evidence10 of 10 shared results countedHow we compare
Claude Sonnet 4.5 is no longer available through its official API. API prices for this version are not shown.
GPT-5.1 Codex is no longer available through its official API. API prices for this version are not shown.
Price basis: Listed rates vs listed rates. The price section below shows the applicable periods.
| Fact | Claude Sonnet 4.5 | GPT-5.1 Codex |
|---|---|---|
| Context window | 1M tokens | 400K tokens |
| Input / 1M | — | — |
| Output / 1M | — | — |
| Blended (4:1) | — | — |
| Status | Retired | Retired |
| Released | September 30, 2025 | November 14, 2025 |
Blended is 4:1 input to output with 90% cache hits at listed rates — set your own mix.
Mean of 8 shared benchmarks grouped by capability on a 0–100 scale. How averages are built
Claude Sonnet 4.5 ahead on 4 of 6 counted
Claude Sonnet 4.5 ahead on 1 of 1 counted
GPT-5.1 Codex ahead on 1 of 1 counted
No fixed-scale average — see the rows in Benchmark results
GPT-5.1 Codex ahead on 1 of 1 counted
No shared comparable results for Abstract reasoning, Computer & tool use, Research & search, Long context, Professional work & productivity, Cybersecurity.
Published scores, with matching modes where available. Gaps show Claude Sonnet 4.5 relative to GPT-5.1 Codex. Reading the results
| Benchmark | Claude Sonnet 4.5 | GPT-5.1 Codex | Gap |
|---|---|---|---|
| APEX-SWERepository Engineering · Pass@1 | 31.0Thinking High · tools | 29.0Thinking High · tools | +2.0 pts#57 vs #60 of 71 |
| SWE-bench VerifiedRepository Engineering · Accuracy | 82.0Parallel Thinking · tools | 70.4≠Thinking High · tools | +11.6 pts#8 vs #60 of 108 |
| Terminal Bench 2.0Agentic Development · Accuracy | 42.8Thinking · tools | 52.8≠Thinking High · tools | −10.0 pts#41 vs #28 of 46 |
| Terminal Bench HardAgentic Development · Accuracy | 35.6Thinking · tools | 34.8≠Thinking High · tools | +0.8 pts#47 vs #50 of 157 |
| Terminal-Bench 1.0Agentic Development · Accuracy | 50.0Thinking · tools | 56.3≠Thinking High · tools | −6.3 pts#2 vs #1 of 26 |
| Vibe Code Bench v1.1Code Generation & Editing · Pass rate (%) | 22.6Thinking · tools | 13.1≠Thinking High · tools | +9.5 pts#84 vs #99 of 121 |
| AIME2025Mathematics · Accuracy | 100.0Thinking · tools | 95.7≠Thinking High · no tools | +4.3 pts#1 vs #22 of 86 |
| CritPtScientific Reasoning · Score | 1.1Thinking · no tools | 5.7≠Thinking High · no tools | 0.19×#103 vs #66 of 134 |
| MMMU-ProVisual Understanding · Accuracy | 68.9Reported best | 72.5≠Thinking High · no tools | −3.6 pts#90 vs #81 of 137 |
| LiveBenchCross-capability Suites · Accuracy | 68.2Thinking · no tools · 64K | 68.6≠Normal · no tools | −0.4 pts#65 vs #63 of 106 |
Repository Engineering · Pass@1
Repository Engineering · Accuracy
Agentic Development · Accuracy
Agentic Development · Accuracy
Agentic Development · Accuracy
Code Generation & Editing · Pass rate (%)
Mathematics · Accuracy
Scientific Reasoning · Score
Visual Understanding · Accuracy
Cross-capability Suites · Accuracy
A dash means no result is available.
| Benchmark | Claude Sonnet 4.5 | GPT-5.1 Codex |
|---|---|---|
| FrontierMath | 5.2 | — |
| FrontierMath - Tier 4 | 4.2 | — |
| FrontierMath Tier 4 v2 | 2.4 | — |
| FrontierMath v2 | 23.9 | — |
| GPQA Diamond | 73.7 | — |
| HLE | 33.6 | — |
| MMLU-Pro | 88.0 | — |
| SciCode | 45.7 | — |
| CodeClash | 1389 | — |
| GSO | 14.7 | — |
| LiveCodeBench | — | 85.5 |
| SWE-Bench Pro - Public | 43.6 | — |
| WeirdML v2 | 47.7 | — |
| Claw Bench | 88.1 | — |
| MCP-Atlas | 59.5 | — |
| OSWorld-Verified | 62.9 | — |
| Pinch Bench | 88.2 | — |
| ECI | 147 | — |
| METR Time Horizons v1.1 | 122 | — |
| Text Arena (Coding) | 1391 | — |
| Creative Writing | 1677 | — |
| IF Bench | 57.3 | — |
| EBR-bench | 2.4 | — |
| GDP.pdf | 5.2 | — |
| GeoBench ACW | 60.0 | — |
| MMMU | 77.8 | — |
| VPCT | 39.8 | — |
| GDPval-AA | 39.0 | — |
| τ²-Bench | 84.7 | — |
| τ²-Bench - Telecom | 98.0 | — |
| τ³-Banking | 24.5 | — |
| ARC-AGI-1 | 63.7 | — |
| ARC-AGI-2 | 13.6 | — |
| SimpleBench | 54.3 | — |
| Vending-Bench 2 | 3839 | — |
| BrowseComp | 24.1 | — |
| GAIA | 74.5 | — |
| MedCode | 44.1 | — |
| MedScribe | 84.5 | — |
Time-of-day providers use peak-hour rates; fixed-price providers use standard rates. Off-peak discounts remain in the published details.
Drag the handle above the bar for cache hits, the one below it for the input : output mix · 5% steps
Blended price = effective input rate at 90% cache hits × 80% + output rate × 20%
A blended cost needs a published input and output price on both sides, and one of these two does not have them yet.
Claude Sonnet 4.5: Listed text rates; pricing tier not confirmed.
GPT-5.1 Codex: Listed text rates; pricing tier not confirmed.
| Price / 1M tokens | Claude Sonnet 4.5 | GPT-5.1 Codex | Ratio |
|---|---|---|---|
| Input | — | — | — |
| Output | — | — | — |
| Cached input | — | — | — |
| Cache write | — | — | — |
| Blended | — | — | — |
Estimates use the selected token mix. Cache writes, tool fees and long-context surcharges are excluded.
Lower prices are highlighted. The cache hit rate applies to input tokens only; models without a published cached-input rate use their normal input price for those tokens.Effective dates: Claude Sonnet 4.5 2026-01-03; GPT-5.1 Codex 2026-01-03.Reported cost per task, paired with the score from the same run. Settings and sources may differ; costs do not affect the verdict.
| Attribute | Claude Sonnet 4.5 | GPT-5.1 Codex |
|---|---|---|
| Availability | Retired | Retired |
| Provider | Anthropic | OpenAI |
| Model type | Chat model | Coding model |
| First release | September 30, 2025 | November 14, 2025 |
| Context window | 1M tokens | 400K tokens |
| Max output | 64K tokens | 128K tokens |
| Architecture | Undisclosed | Undisclosed |
| Documented capabilities | Reasoning, Multilingual | Reasoning, Coding |
| Input modalities | Text, Image | Text, Image |
| Output modalities | Text | Text |
| Weights | Closed / API only | Closed / API only |
| Commercial use | Proprietary | Proprietary |
These are reported-score comparisons, not controlled head-to-head tests.
What people found comparing these models, or using either one. Comments also appear on the models' own pages.
Sign in with Google to comment on Claude Sonnet 4.5 vs GPT-5.1 Codex.
No community comments on either model yet.
Alternatives with the most benchmark overlap for this matchup.