Across 7 comparable benchmarks, Claude Sonnet 4.6 has better reported results on 5 and worse on 2.
Moderate evidence7 of 7 shared results countedHow we compare
GPT-5.2-Codex is no longer available through its official API. API prices for this version are not shown.
Price basis: Listed rates vs standard rates. The price section below shows the applicable periods.
| Fact | GPT-5.2-Codex | Claude Sonnet 4.6 |
|---|---|---|
| Context window | — | 1M tokens |
| Input / 1M | — | $3.00 |
| Output / 1M | — | $15.00 |
| Blended (4:1) | — | $3.46 |
| Status | Retired | Available |
| Released | December 18, 2025 | February 17, 2026 |
Blended is 4:1 input to output with 90% cache hits at listed rates — set your own mix.
Mean of 5 shared benchmarks grouped by capability on a 0–100 scale. How averages are built
Claude Sonnet 4.6 ahead on 4 of 4 counted
GPT-5.2-Codex ahead on 1 of 1 counted
No fixed-scale average — see the rows in Benchmark results
GPT-5.2-Codex 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 GPT-5.2-Codex relative to Claude Sonnet 4.6. Reading the results
| Benchmark | GPT-5.2-Codex | Claude Sonnet 4.6 | Gap |
|---|---|---|---|
| APEX-SWERepository Engineering · Pass@1 | 30.8Thinking High · tools | 34.5Thinking High · tools | −3.7 pts#51 vs #43 of 61 |
| SWE-bench VerifiedRepository Engineering · Accuracy | 72.8Unspecified Reasoning · tools | 79.6≠Thinking · no tools | −6.8 pts#49 vs #20 of 108 |
| Terminal Bench HardAgentic Development · Accuracy | 37.1Extra-High · tools | 53.0≠Max · tools | −15.9 pts#43 vs #9 of 157 |
| Vibe Code Bench v1.1Code Generation & Editing · Pass rate (%) | 37.9Thinking High · tools | 51.5≠Max · tools | −13.6 pts#73 vs #62 of 121 |
| CritPtScientific Reasoning · Score | 8.7Extra-High · no tools | 3.1≠Max · no tools | 2.81×#60 vs #78 of 134 |
| MMMU-ProVisual Understanding · Accuracy | 76.3Extra-High · no tools | 75.6≠Thinking · tools | +0.7 pts#58 vs #61 of 136 |
| LiveBenchCross-capability Suites · Accuracy | 74.0Normal · no tools | 75.3≠Thinking High · no tools | −1.3 pts#39 vs #32 of 106 |
Repository Engineering · Pass@1
Repository Engineering · 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 | GPT-5.2-Codex | Claude Sonnet 4.6 |
|---|---|---|
| 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 |
| SWE-bench Multilingual | 66.3 | — |
| SWE-Bench Pro - Commercial | 27.7 | — |
| SWE-Bench Pro - Public | 41.0 | — |
| Terminal Bench 2.0 | — | 59.1 |
| 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 |
| IF Bench | 77.6 | — |
| 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.
GPT-5.2-Codex: Listed text rates; pricing tier not confirmed.
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
| Price / 1M tokens | GPT-5.2-Codex | Claude Sonnet 4.6 | 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 | GPT-5.2-Codex | Claude Sonnet 4.6 |
|---|---|---|
| ARC-AGI-1 | Not reported | |
| ARC-AGI-2 | Not reported | $2.6966 / task Average · ARC-AGI-2 Score: 60.4 Thinking High (With Tools) |
| AutomationBench | Not reported | $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 |
| DeepSWE | Not reported | |
| FrontierCode 1.1 | Not reported | $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 |
| LiveBench 2.0 | Not reported | $1.6841 / task Average · Overall score (equal-weight mean of 7 suite scores, 0-100): 65.1 Max (task-specific tools) |
| Tax Agent Bench | Not reported | $1.1935 / task Average · Accuracy (%, rubric × citation quality): 25.8 Unspecified Reasoning (With Tools) |
| Attribute | GPT-5.2-Codex | Claude Sonnet 4.6 |
|---|---|---|
| Availability | Retired | Available |
| Provider | OpenAI | Anthropic |
| Model type | Coding model | Chat model |
| First release | December 18, 2025 | February 17, 2026 |
| Context window | — | 1M tokens |
| Max output | — | 64K tokens |
| Architecture | Undisclosed | Undisclosed |
| Documented capabilities | Reasoning, Coding | Reasoning, Multilingual |
| 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 GPT-5.2-Codex vs Claude Sonnet 4.6.
No community comments on either model yet.
Alternatives with the most benchmark overlap for this matchup.