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: Listed rates vs standard rates. The price section below shows the applicable periods.
| Fact | Claude Sonnet 4 | GPT-4.1 |
|---|---|---|
| Context window | 200K tokens | 1M tokens |
| Input / 1M | — | $2.00 |
| Output / 1M | — | $8.00 |
| Blended (4:1) | — | $2.12 |
| Status | Retired | Deprecated |
| Released | May 23, 2025 | April 14, 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 Claude Sonnet 4 relative to GPT-4.1. Reading the results
| Benchmark | Claude Sonnet 4 | GPT-4.1 | Gap |
|---|---|---|---|
| Aider-PolyglotAgentic Development · Accuracy | 61.3Thinking · no tools · 32K | 52.4≠Normal · no tools | +8.9 pts#14 vs #22 of 47 |
| LiveCodeBenchAlgorithmic Coding · Pass @K | 48.5Normal · no tools | 40.5Normal · no tools | 1.20×#88 vs #93 of 113 |
| SWE-bench VerifiedRepository Engineering · Accuracy | 80.2Parallel Thinking · tools | 54.6≠Normal · no tools | +25.6 pts#15 vs #85 of 108 |
| Terminal Bench HardAgentic Development · Accuracy | 31.1Thinking · tools | 13.6≠Normal · tools | +17.5 pts#66 vs #110 of 157 |
| SimpleBenchCommonsense · Score (AVG@5) | 45.5Thinking · no tools | 27.0≠Normal · no tools | 1.69×#73 vs #91 of 106 |
| AIME 2024Mathematics · Accuracy | 43.4Normal · no tools | 48.1Normal · no tools | −4.7 pts#45 vs #44 of 54 |
| AIME2025Mathematics · Accuracy | 85.0Deep Thinking · tools | 36.7≠Normal · no tools | +48.3 pts#48 vs #82 of 86 |
| FrontierMathMathematics · Accuracy | 4.1Normal · no tools | 5.5Normal · no tools | −1.4 pts#32 vs #28 of 48 |
| FrontierMath - Tier 4Mathematics · Accuracy | 0.0Normal · no tools | 0.0Normal · no tools | =#44 vs #44 of 50 |
| MATH-500Mathematics · Accuracy | 99.1Thinking · no tools | 92.8≠Normal · no tools | +6.3 pts#4 vs #38 of 49 |
| GPQA DiamondScientific Reasoning · Accuracy | 83.8Deep Thinking · tools | 66.3≠Normal · no tools | +17.5 pts#91 vs #152 of 200 |
| Fiction.liveBenchLong Reasoning · 16k-token score (%) | 46.9Normal · no tools | 63.9Normal · no tools | −17.0 pts#24 vs #17 of 28 |
| MMMU-ProVisual Understanding · Accuracy | 62.4Normal · no tools | 61.2Normal · no tools | +1.2 pts#100 vs #104 of 136 |
| Creative WritingWriting | 1483Normal · no tools | 1420Normal · no tools | 1.04×#62 vs #71 of 121 |
| τ²-BenchService Workflows · Accuracy | 52.0Normal · tools | 54.7Normal · tools | −2.7 pts#32 vs #30 of 40 |
| HLEKnowledge Exams · Accuracy | 9.6Thinking · no tools | 5.4≠Reported best | +4.2 pts#130 vs #141 of 151 |
| MMLU-ProKnowledge Exams · Accuracy | 84.0Thinking · no tools | 80.5≠Normal · no tools | +3.5 pts#42 vs #59 of 153 |
| ECICapability Indices · ECI score (capability index, higher is better) | 142Reported best | 137Reported best | 1.04×#91 vs #108 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 | Claude Sonnet 4 | GPT-4.1 |
|---|---|---|
| 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 | Claude Sonnet 4 | GPT-4.1 | 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 | Claude Sonnet 4 | GPT-4.1 |
|---|---|---|
| Availability | Retired | Deprecated |
| Provider | Anthropic | OpenAI |
| Model type | Reasoning model | Chat model |
| First release | May 23, 2025 | April 14, 2025 |
| Context window | 200K tokens | 1M tokens |
| Max output | 64K tokens | 32K tokens |
| Architecture | Undisclosed | Undisclosed |
| Documented capabilities | Reasoning, Multilingual | 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 Claude Sonnet 4 vs GPT-4.1.
No community comments on either model yet.
Alternatives with the most benchmark overlap for this matchup.