Across 4 comparable benchmarks, Claude Sonnet 4 has better reported results on 4 and worse on 0.
Moderate evidence4 of 4 shared results countedHow we compare
Grok Code Fast 1 is no longer available through its official API. API prices for this version are not shown.
Claude Sonnet 4 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 | Grok Code Fast 1 | Claude Sonnet 4 |
|---|---|---|
| Context window | 256K tokens | 200K tokens |
| Input / 1M | — | — |
| Output / 1M | — | — |
| Blended (4:1) | — | — |
| Status | Retired | Retired |
| Released | August 28, 2025 | May 23, 2025 |
Blended is 4:1 input to output with 90% cache hits at listed rates — set your own mix.
Mean of 2 shared benchmarks grouped by capability on a 0–100 scale. How averages are built
Claude Sonnet 4 ahead on 3 of 3 counted
No shared comparable results for Abstract reasoning, Mathematics, Science & health, Computer & tool use, Research & search, Long context, Multimodal, Professional work & productivity, Cybersecurity.
Published scores, with matching modes where available. Gaps show Grok Code Fast 1 relative to Claude Sonnet 4. Reading the results
| Benchmark | Grok Code Fast 1 | Claude Sonnet 4 | Gap |
|---|---|---|---|
| CodeClashAlgorithmic Coding · Elo / win rate | 1004Normal · tools | 1223Normal · tools | 0.82×#7 vs #4 of 8 |
| SWE-bench VerifiedRepository Engineering · Accuracy | 70.8Thinking · no tools | 80.2≠Parallel Thinking · tools | −9.4 pts#57 vs #15 of 108 |
| Terminal Bench HardAgentic Development · Accuracy | 17.4Thinking · tools | 31.1Thinking · tools | −13.7 pts#100 vs #66 of 157 |
| LiveBenchCross-capability Suites · Accuracy | 45.1Normal · no tools | 61.3≠Thinking · no tools · 64K | −16.1 pts#101 vs #83 of 106 |
Algorithmic Coding · Elo / win rate
Repository Engineering · Accuracy
Agentic Development · Accuracy
Cross-capability Suites · Accuracy
A dash means no result is available.
| Benchmark | Grok Code Fast 1 | Claude Sonnet 4 |
|---|---|---|
| AIME 2024 | — | 43.4 |
| AIME2025 | — | 85.0 |
| CritPt | — | 1.1 |
| FrontierMath | — | 4.1 |
| FrontierMath - Tier 4 | — | 0.0 |
| GPQA Diamond | — | 83.8 |
| HLE | — | 9.6 |
| IMO-ProofBench | — | 27.1 |
| IMO-ProofBench Advanced | — | 4.8 |
| MATH-500 | — | 99.1 |
| MMLU-Pro | — | 84.0 |
| Aider-Polyglot | — | 61.3 |
| IOI 2024 (Vals v1) | — | 9.7 |
| IOI 2025 (Vals v1) | — | 4 |
| LiveCodeBench | — | 48.5 |
| SWE-Bench Pro - Commercial | — | 9.1 |
| SWE-Bench Pro - Public | — | 42.7 |
| Terminal-Bench 1.0 | — | 41.3 |
| Claw Bench | — | 77.8 |
| OSWorld-Verified | — | 42.2 |
| Pinch Bench | — | 80.5 |
| PinchBench v2 | — | 48.8 |
| ECI | — | 142 |
| Creative Writing | — | 1483 |
| IF Bench | — | 55.0 |
| Fiction.liveBench | — | 46.9 |
| MMMU | — | 74.4 |
| MMMU-Pro | — | 62.4 |
| VPCT | — | 34.0 |
| GDPval-AA | — | 33.0 |
| SAGE | — | 35.0 |
| τ²-Bench | — | 52.0 |
| τ³-Banking | — | 16.7 |
| ARC-AGI-1 | — | 40.0 |
| ARC-AGI-2 | — | 5.9 |
| SimpleBench | — | 45.5 |
| 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.
Grok Code Fast 1: Listed text rates; pricing tier not confirmed.
Claude Sonnet 4: Listed text rates; pricing tier not confirmed.
| Price / 1M tokens | Grok Code Fast 1 | Claude Sonnet 4 | 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: Grok Code Fast 1 2026-11-14; Claude Sonnet 4 2026-11-14.Reported cost per task, paired with the score from the same run. Settings and sources may differ; costs do not affect the verdict.
| Attribute | Grok Code Fast 1 | Claude Sonnet 4 |
|---|---|---|
| Availability | Retired | Retired |
| Provider | xAI | Anthropic |
| Model type | Coding model | Reasoning model |
| First release | August 28, 2025 | May 23, 2025 |
| Context window | 256K tokens | 200K tokens |
| Max output | 4K tokens | 64K tokens |
| Architecture | Undisclosed | Undisclosed |
| Documented capabilities | Multilingual, Coding | Reasoning, Multilingual |
| Input modalities | Text | 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 Grok Code Fast 1 vs Claude Sonnet 4.
No community comments on either model yet.
Alternatives with the most benchmark overlap for this matchup.