Across 10 comparable benchmarks, GPT-5.1 Codex and Claude Sonnet 4.5 are evenly matched at 5 apiece.
Moderate evidence10 of 10 shared results countedHow we compare
GPT-5.1 Codex is no longer available through its official API. API prices for this version are not shown.
Claude Sonnet 4.5 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 | GPT-5.1 Codex | Claude Sonnet 4.5 |
|---|---|---|
| Context window | 400K tokens | 1M tokens |
| Input / 1M | — | — |
| Output / 1M | — | — |
| Blended (4:1) | — | — |
| Status | Retired | Retired |
| Released | November 14, 2025 | September 30, 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 GPT-5.1 Codex relative to Claude Sonnet 4.5. Reading the results
| Benchmark | GPT-5.1 Codex | Claude Sonnet 4.5 | Gap |
|---|---|---|---|
| APEX-SWERepository Engineering · Pass@1 | 29.0Thinking High · tools | 31.0Thinking High · tools | −2.0 pts#60 vs #57 of 71 |
| SWE-bench VerifiedRepository Engineering · Accuracy | 70.4Thinking High · tools | 82.0≠Parallel Thinking · tools | −11.6 pts#60 vs #8 of 108 |
| Terminal Bench 2.0Agentic Development · Accuracy | 52.8Thinking High · tools | 42.8≠Thinking · tools | +10.0 pts#28 vs #41 of 46 |
| Terminal Bench HardAgentic Development · Accuracy | 34.8Thinking High · tools | 35.6≠Thinking · tools | −0.8 pts#50 vs #47 of 157 |
| Terminal-Bench 1.0Agentic Development · Accuracy | 56.3Thinking High · tools | 50.0≠Thinking · tools | +6.3 pts#1 vs #2 of 26 |
| Vibe Code Bench v1.1Code Generation & Editing · Pass rate (%) | 13.1Thinking High · tools | 22.6≠Thinking · tools | −9.5 pts#99 vs #84 of 121 |
| AIME2025Mathematics · Accuracy | 95.7Thinking High · no tools | 100.0≠Thinking · tools | −4.3 pts#22 vs #1 of 86 |
| CritPtScientific Reasoning · Score | 5.7Thinking High · no tools | 1.1≠Thinking · no tools | 5.18×#66 vs #103 of 134 |
| MMMU-ProVisual Understanding · Accuracy | 72.5Thinking High · no tools | 68.9≠Reported best | +3.6 pts#81 vs #90 of 137 |
| LiveBenchCross-capability Suites · Accuracy | 68.6Normal · no tools | 68.2≠Thinking · no tools · 64K | +0.4 pts#63 vs #65 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 | GPT-5.1 Codex | Claude Sonnet 4.5 |
|---|---|---|
| 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.
GPT-5.1 Codex: Listed text rates; pricing tier not confirmed.
Claude Sonnet 4.5: Listed text rates; pricing tier not confirmed.
| Price / 1M tokens | GPT-5.1 Codex | Claude Sonnet 4.5 | 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: GPT-5.1 Codex 2026-01-03; Claude Sonnet 4.5 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 | GPT-5.1 Codex | Claude Sonnet 4.5 |
|---|---|---|
| Availability | Retired | Retired |
| Provider | OpenAI | Anthropic |
| Model type | Coding model | Chat model |
| First release | November 14, 2025 | September 30, 2025 |
| Context window | 400K tokens | 1M tokens |
| Max output | 128K tokens | 64K tokens |
| Architecture | Undisclosed | Undisclosed |
| Documented capabilities | Reasoning, Coding | Reasoning, Multilingual |
| 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 GPT-5.1 Codex vs Claude Sonnet 4.5.
No community comments on either model yet.
Alternatives with the most benchmark overlap for this matchup.