Across 8 comparable benchmarks, Claude Sonnet 4.6 has better reported results on 7 and worse on 1.
Moderate evidence8 of 8 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.
Price basis: Standard rates vs listed rates. The price section below shows the applicable periods.
| Fact | Claude Sonnet 4.6 | GPT-5.1 Codex |
|---|---|---|
| Context window | 1M tokens | 400K tokens |
| Input / 1M | $3.00 | — |
| Output / 1M | $15.00 | — |
| Blended (4:1) | $3.46 | — |
| Status | Available | Retired |
| Released | February 17, 2026 | November 14, 2025 |
Blended is 4:1 input to output with 90% cache hits at listed rates — set your own mix.
Mean of 6 shared benchmarks grouped by capability on a 0–100 scale. How averages are built
Claude Sonnet 4.6 ahead on 5 of 5 counted
GPT-5.1 Codex ahead on 1 of 1 counted
No fixed-scale average — see the rows in Benchmark results
Claude Sonnet 4.6 ahead on 1 of 1 counted
No shared comparable results for Abstract reasoning, Mathematics, Computer & tool use, Research & search, Long context, Professional work & productivity, Cybersecurity.
Published scores, with matching modes where available. Gaps show Claude Sonnet 4.6 relative to GPT-5.1 Codex. Reading the results
| Benchmark | Claude Sonnet 4.6 | GPT-5.1 Codex | Gap |
|---|---|---|---|
| APEX-SWERepository Engineering · Pass@1 | 34.5Thinking High · tools | 29.0Thinking High · tools | +5.5 pts#43 vs #53 of 61 |
| SWE-bench VerifiedRepository Engineering · Accuracy | 79.6Thinking · no tools | 70.4≠Thinking High · tools | +9.2 pts#20 vs #60 of 108 |
| Terminal Bench 2.0Agentic Development · Accuracy | 59.1Thinking · tools | 52.8≠Thinking High · tools | +6.3 pts#20 vs #28 of 46 |
| Terminal Bench HardAgentic Development · Accuracy | 53.0Max · tools | 34.8≠Thinking High · tools | +18.2 pts#9 vs #50 of 157 |
| Vibe Code Bench v1.1Code Generation & Editing · Pass rate (%) | 51.5Max · tools | 13.1≠Thinking High · tools | +38.4 pts#62 vs #99 of 121 |
| CritPtScientific Reasoning · Score | 3.1Max · no tools | 5.7≠Thinking High · no tools | 0.54×#78 vs #66 of 134 |
| MMMU-ProVisual Understanding · Accuracy | 75.6Thinking · tools | 72.5≠Thinking High · no tools | +3.1 pts#61 vs #80 of 136 |
| LiveBenchCross-capability Suites · Accuracy | 75.3Thinking High · no tools | 68.6≠Normal · no tools | +6.7 pts#32 vs #63 of 106 |
Repository Engineering · Pass@1
Repository Engineering · Accuracy
Agentic Development · Accuracy
Agentic Development · Accuracy
Code Generation & Editing · Pass rate (%)
Scientific Reasoning · Score
Visual Understanding · Accuracy
Cross-capability Suites · Accuracy
A dash means no result is available.
| Benchmark | Claude Sonnet 4.6 | GPT-5.1 Codex |
|---|---|---|
| AIME2025 | — | 95.7 |
| FrontierMath - Tier 4 | 8.3 | — |
| GPQA Diamond | 89.9 | — |
| HLE | 49.0 | — |
| SciCode | 50.1 | — |
| Code Migration | 39.9 | — |
| DeepSWE | 29.9 | — |
| FrontierCode 1.1 | 40.0 | — |
| LiveCodeBench | — | 85.5 |
| Terminal-Bench 1.0 | — | 56.3 |
| Terminal-Bench 4.0 | 3.0 | — |
| APEX-Agents | 43.0 | — |
| MCP-Atlas | 69.5 | — |
| OSWorld 2.0 | 41.5 | — |
| OSWorld-Verified | 72.5 | — |
| Pinch Bench | 88.0 | — |
| PinchBench v2 | 62.7 | — |
| ExploitBench | 25.8 | — |
| ECI | 152 | — |
| LiveBench 2.0 | 65.1 | — |
| Vals Index | 50.6 | — |
| Creative Writing | 1811 | — |
| Context Arena | 82.8 | — |
| GDP.pdf | 15.8 | — |
| GeoBench ACW | 73.0 | — |
| AA-AnalystAgent | 20.0 | — |
| AutomationBench | 5.3 | — |
| EMB (Excel Modeling) | 60.1 | — |
| Finance Agent v2 | 51.0 | — |
| GDPval-AA | 57.0 | — |
| Harvey Lab-AA | 86.0 | — |
| Harvey's Legal Agent Benchmark | 5.0 | — |
| Legal Research Bench | 38.5 | — |
| Public Benefits Bench v1.1 | 62.5 | — |
| SAGE | 46.6 | — |
| Tax Agent Bench | 25.8 | — |
| τ²-Bench - Telecom | 97.9 | — |
| τ³-Banking | 34.4 | — |
| ARC-AGI-1 | 86.5 | — |
| ARC-AGI-2 | 60.4 | — |
| Vending-Bench 2 | 7204 | — |
| BrowseComp | 74.7 | — |
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.6: Standard pricing. Anthropic official pricing (platform.claude.com/docs/en/about-claude/pricing) verified 2026-10-21; full 1M context at standard price
GPT-5.1 Codex: Listed text rates; pricing tier not confirmed.
| Price / 1M tokens | Claude Sonnet 4.6 | GPT-5.1 Codex | Ratio |
|---|---|---|---|
| Input | $3.00 | — | — |
| Output | $15.00 | — | — |
| Cached input | $0.30 | — | — |
| Cache write | — | — | — |
| Blended | $3.46 | — | — |
Estimates use the selected token mix. Cache writes, tool fees and long-context surcharges are excluded.
Reported cost per task, paired with the score from the same run. Settings and sources may differ; costs do not affect the verdict.
| Benchmark | Claude Sonnet 4.6 | GPT-5.1 Codex |
|---|---|---|
| ARC-AGI-1 | Not reported | |
| ARC-AGI-2 | $2.6966 / task Average · ARC-AGI-2 Score: 60.4 Thinking High (With Tools) | Not reported |
| AutomationBench | $0.84 / task Average · Pass Rate: 5.0 Thinking High (With Tools) · zapier-private-heldout 1 more settings$0.77 / task Average · Pass Rate: 3.6 Thinking Medium (With Tools) · zapier-private-heldout | Not reported |
| DeepSWE | Not reported | |
| FrontierCode 1.1 | $2.8979 / task Average · Weighted rubric score: 24.3 Max (With Tools) · frontiercode-1-1-main $2.4401 / task Average · Weighted rubric score: 40.0 Max (With Tools) · frontiercode-1-1-extended $2.2694 / task Average · Weighted rubric score: 39.9 Thinking High (With Tools) · frontiercode-1-1-extended 5 more settings$2.6993 / task Average · Weighted rubric score: 23.5 Thinking High (With Tools) · frontiercode-1-1-main $1.4261 / task Average · Weighted rubric score: 30.4 Thinking Low (With Tools) · frontiercode-1-1-extended $1.6481 / task Average · Weighted rubric score: 15.0 Thinking Low (With Tools) · frontiercode-1-1-main $1.9375 / task Average · Weighted rubric score: 37.5 Thinking Medium (With Tools) · frontiercode-1-1-extended $2.3012 / task Average · Weighted rubric score: 21.1 Thinking Medium (With Tools) · frontiercode-1-1-main | Not reported |
| LiveBench 2.0 | $1.6841 / task Average · Overall score (equal-weight mean of 7 suite scores, 0-100): 65.1 Max (task-specific tools) | Not reported |
| Tax Agent Bench | $1.1935 / task Average · Accuracy (%, rubric × citation quality): 25.8 Unspecified Reasoning (With Tools) | Not reported |
| Attribute | Claude Sonnet 4.6 | GPT-5.1 Codex |
|---|---|---|
| Availability | Available | Retired |
| Provider | Anthropic | OpenAI |
| Model type | Chat model | Coding model |
| First release | February 17, 2026 | November 14, 2025 |
| Context window | 1M tokens | 400K tokens |
| Max output | 64K tokens | 128K tokens |
| Architecture | Undisclosed | Undisclosed |
| Documented capabilities | Reasoning, Multilingual | Reasoning, Coding |
| Knowledge cutoff | 2026-01 | — |
| 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.6 vs GPT-5.1 Codex.
No community comments on either model yet.
Alternatives with the most benchmark overlap for this matchup.