Across 18 comparable benchmarks, Claude Sonnet 4 has better reported results on 13 and worse on 4, with 1 tied.
Moderate evidence18 of 18 shared results countedHow we compare
Claude Sonnet 4 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 | GPT-4.1 | Claude Sonnet 4 |
|---|---|---|
| Context window | 1M tokens | 200K tokens |
| Input / 1M | $2.00 | — |
| Output / 1M | $8.00 | — |
| Blended (4:1) | $2.12 | — |
| Status | Deprecated | Retired |
| Released | April 14, 2025 | May 23, 2025 |
Blended is 4:1 input to output with 90% cache hits at listed rates — set your own mix.
Mean of 12 shared benchmarks grouped by capability on a 0–100 scale. How averages are built
Claude Sonnet 4 ahead on 4 of 4 counted
Claude Sonnet 4 ahead on 1 of 1 counted
No fixed-scale average — see the rows in Benchmark results
Split 2–2, 1 tied of 5 counted
Claude Sonnet 4 ahead on 1 of 1 counted
GPT-4.1 ahead on 1 of 1 counted
Claude Sonnet 4 ahead on 1 of 1 counted
Split 1–1 of 2 counted
No shared comparable results for Computer & tool use, Research & search, Cybersecurity.
Published scores, with matching modes where available. Gaps show GPT-4.1 relative to Claude Sonnet 4. Reading the results
| Benchmark | GPT-4.1 | Claude Sonnet 4 | Gap |
|---|---|---|---|
| Aider-PolyglotAgentic Development · Accuracy | 52.4Normal · no tools | 61.3≠Thinking · no tools · 32K | −8.9 pts#22 vs #14 of 47 |
| LiveCodeBenchAlgorithmic Coding · Pass @K | 40.5Normal · no tools | 48.5Normal · no tools | 0.84×#93 vs #88 of 113 |
| SWE-bench VerifiedRepository Engineering · Accuracy | 54.6Normal · no tools | 80.2≠Parallel Thinking · tools | −25.6 pts#85 vs #15 of 108 |
| Terminal Bench HardAgentic Development · Accuracy | 13.6Normal · tools | 31.1≠Thinking · tools | −17.5 pts#110 vs #66 of 157 |
| SimpleBenchCommonsense · Score (AVG@5) | 27.0Normal · no tools | 45.5≠Thinking · no tools | 0.59×#91 vs #73 of 106 |
| AIME 2024Mathematics · Accuracy | 48.1Normal · no tools | 43.4Normal · no tools | +4.7 pts#44 vs #45 of 54 |
| AIME2025Mathematics · Accuracy | 36.7Normal · no tools | 85.0≠Deep Thinking · tools | −48.3 pts#82 vs #48 of 86 |
| FrontierMathMathematics · Accuracy | 5.5Normal · no tools | 4.1Normal · no tools | +1.4 pts#28 vs #32 of 48 |
| FrontierMath - Tier 4Mathematics · Accuracy | 0.0Normal · no tools | 0.0Normal · no tools | =#44 vs #44 of 50 |
| MATH-500Mathematics · Accuracy | 92.8Normal · no tools | 99.1≠Thinking · no tools | −6.3 pts#38 vs #4 of 49 |
| GPQA DiamondScientific Reasoning · Accuracy | 66.3Normal · no tools | 83.8≠Deep Thinking · tools | −17.5 pts#152 vs #91 of 200 |
| Fiction.liveBenchLong Reasoning · 16k-token score (%) | 63.9Normal · no tools | 46.9Normal · no tools | +17.0 pts#17 vs #24 of 28 |
| MMMU-ProVisual Understanding · Accuracy | 61.2Normal · no tools | 62.4Normal · no tools | −1.2 pts#104 vs #100 of 136 |
| Creative WritingWriting | 1420Normal · no tools | 1483Normal · no tools | 0.96×#71 vs #62 of 121 |
| τ²-BenchService Workflows · Accuracy | 54.7Normal · tools | 52.0Normal · tools | +2.7 pts#30 vs #32 of 40 |
| HLEKnowledge Exams · Accuracy | 5.4Reported best | 9.6≠Thinking · no tools | −4.2 pts#141 vs #130 of 151 |
| MMLU-ProKnowledge Exams · Accuracy | 80.5Normal · no tools | 84.0≠Thinking · no tools | −3.5 pts#59 vs #42 of 153 |
| ECICapability Indices · ECI score (capability index, higher is better) | 137Reported best | 142Reported best | 0.97×#108 vs #91 of 168 |
Agentic Development · Accuracy
Algorithmic Coding · Pass @K
Repository Engineering · Accuracy
Agentic Development · Accuracy
Commonsense · Score (AVG@5)
Mathematics · Accuracy
Mathematics · Accuracy
Mathematics · Accuracy
Mathematics · Accuracy
Mathematics · Accuracy
Scientific Reasoning · Accuracy
Long Reasoning · 16k-token score (%)
Visual Understanding · Accuracy
Writing
Service Workflows · Accuracy
A dash means no result is available.
| Benchmark | GPT-4.1 | Claude Sonnet 4 |
|---|---|---|
| CritPt | — | 1.1 |
| FrontierMath v2 | 6.0 | — |
| GSM8K | 95.9 | — |
| IMO-ProofBench | — | 27.1 |
| IMO-ProofBench Advanced | — | 4.8 |
| MMLU | 90.2 | — |
| CodeClash | — | 1223 |
| IC SWE-Lancer (Diamond) | 14.4 | — |
| IOI 2024 (Vals v1) | — | 9.7 |
| IOI 2025 (Vals v1) | — | 4 |
| SWE Manager Lancer (Diamond) | 35.1 | — |
| SWE-Bench Pro - Commercial | — | 9.1 |
| SWE-Bench Pro - Public | — | 42.7 |
| Terminal-Bench 1.0 | — | 41.3 |
| WeirdML v2 | 39.0 | — |
| Claw Bench | — | 77.8 |
| OSWorld-Verified | — | 42.2 |
| Pinch Bench | — | 80.5 |
| PinchBench v2 | — | 48.8 |
| LiveBench | — | 61.3 |
| DROP | 89.2 | — |
| IF Bench | — | 55.0 |
| GeoBench ACW | 72.0 | — |
| MMMU | — | 74.4 |
| VPCT | — | 34.0 |
| GDPval-AA | — | 33.0 |
| SAGE | — | 35.0 |
| τ²-Bench - Telecom | 34.0 | — |
| τ³-Banking | — | 16.7 |
| ARC-AGI-1 | — | 40.0 |
| ARC-AGI-2 | — | 5.9 |
| GAIA | 49.7 | — |
| MedCode | — | 35.0 |
| MedScribe | — | 72.4 |
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: Listed text rates; pricing tier not confirmed.
| Price / 1M tokens | GPT-4.1 | Claude Sonnet 4 | Ratio |
|---|---|---|---|
| Input | $2.00 | — | — |
| Output | $8.00 | — | — |
| Cached input | $0.50 | — | — |
| Cache write | — | — | — |
| Blended | $2.12 | — | — |
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.
| Attribute | GPT-4.1 | Claude Sonnet 4 |
|---|---|---|
| Availability | Deprecated | Retired |
| Provider | OpenAI | Anthropic |
| Model type | Chat model | Reasoning model |
| First release | April 14, 2025 | May 23, 2025 |
| Context window | 1M tokens | 200K tokens |
| Max output | 32K tokens | 64K tokens |
| Architecture | Undisclosed | Undisclosed |
| Documented capabilities | Multilingual | 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-4.1 vs Claude Sonnet 4.
No community comments on either model yet.
Alternatives with the most benchmark overlap for this matchup.