Claude Haiku 4.5 vs Grok 4.7
Grok 4.7 leads Claude Haiku 4.5 on coding, 66.7 to 35.6 on the Vibe Coding Index, and Claude Haiku 4.5 costs 1.2x less per output token ($5.00 vs $6.00 per million). Updated October 22, 2026; 68 benchmarks have a result for both.
Claude Haiku 4.5 or Grok 4.7: which to pick
Pick Grok 4.7 for coding: it scores 66.7 on the Vibe Coding Index against 35.6 for Claude Haiku 4.5.
Pick Claude Haiku 4.5 for output tokens 1.2x cheaper ($5.00 vs $6.00 per million) and work measured by LMArena Text: coding or LMArena Text: software and IT, where it leads.
- Shared results
- 68
- Claude Haiku 4.5 only
- 27
- Grok 4.7 only
- 31
- Like-for-like categories
- 8 of 9
Only benchmarks that tested both models count toward a pick; a result only one model has is shown but not compared.
Which one for your work
Each card is decided by one number both models carry. Where only one has it, the card says so and makes no call.
Coding
Vibe Coding Index, six public coding benchmarks
Grok 4.7
Grok 4.7 scores 66.7 against 35.6.
4 and 5 benchmarks behind the scores
Intelligence
AA Intelligence Index
Grok 4.7
Grok 4.7 leads, 46.4 against 16.9.
Same board, both measured
Agentic work
AA Agentic Index
No call
Only Claude Haiku 4.5 has a AA Agentic Index result, 8.0.
Directional only
Reasoning
GPQA Diamond
No call
Only Claude Haiku 4.5 has a GPQA Diamond result, 72.2%.
Directional only
Math
AIME
No call
Only Claude Haiku 4.5 has a AIME result, 82.7%.
Directional only
Knowledge
MMLU Pro
No call
Only Claude Haiku 4.5 has a MMLU Pro result, 78.7%.
Directional only
Web design
Design Arena: websites
Grok 4.7
Grok 4.7 leads, 1255 against 1122.
Same board, both measured
General
Vals Index
No call
Only Grok 4.7 has a Vals Index result, 58.6%.
Directional only
Long documents
Listed context window
Grok 4.7
Grok 4.7 takes 500K tokens against 200K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Claude Haiku 4.5
Claude Haiku 4.5 $0.0035, Grok 4.7 $0.0050 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
No call
Only Claude Haiku 4.5 has the number, $0.56.
Directional only
At a glance
- Coding index
- Claude Haiku 4.5 35.6 from 4 benchmarks, Grok 4.7 66.7 from 5 benchmarks.
- Widest category
- Agentic work, 37.1 points apart on average over 8 shared benchmarks.
- Widest single gap
- Vibe Code Bench (Vals AI): Claude Haiku 4.5 11.4% against Grok 4.7 86.2%, 74.8 points apart on a 0 to 100 scale.
- Output price
- Claude Haiku 4.5 $5.00 against Grok 4.7 $6.00 per million output tokens, 1.2x apart.
- Context window
- Claude Haiku 4.5 takes 200K tokens, Grok 4.7 500K.
Benchmark by benchmark
First the score: boards each model leads, per category, where both have a result. Then every board, a category to a fold; bars are each result on a 0 to 100 scale, so compare the two in a row, not one row with another.
| Category | Claude Haiku 4.5 | Bars | Grok 4.7 | Ties |
|---|---|---|---|---|
| Coding | 2 | 8 | ||
| Intelligence | 0 | 2 | ||
| Agentic work | 0 | 8 | ||
| Reasoning | 3 | 5 | ||
| Math | 0 | 3 | ||
| Knowledge | 1 | 6 | ||
| Web design | 0 | 7 | ||
| General | 6 | 17 | ||
| All shared boards | 12 | 56 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index28
| Benchmark | Claude Haiku 4.5 | Grok 4.7 | Leader |
|---|---|---|---|
| SWE-bench Verified | 66.6% | Not measured | Only Claude Haiku 4.5 measured |
| SWE-bench Multilingual | 64.7% | Not measured | Only Claude Haiku 4.5 measured |
| LiveBench coding | 48.1% | 84.5% | Grok 4.7 |
| LMArena WebDev | 1330 | 1637 | Grok 4.7 |
| AA Coding Index | 43.9 | Not measured | Only Claude Haiku 4.5 measured |
| LiveCodeBench (Vals AI) | 41.2% | Not measured | Only Claude Haiku 4.5 measured |
| SWE-bench Verified (Vals AI) | 66.6% | Not measured | Only Claude Haiku 4.5 measured |
| Terminal-Bench 4 (Vals AI) | Not measured | 28.8% | Only Grok 4.7 measured |
| Vibe Code Bench (Vals AI) | 11.4% | 86.2% | Grok 4.7 |
| Code migration (Vals AI) | 7.5% | 44.8% | Grok 4.7 |
| ProgramBench (Vals AI) | 0.0% | 0.5% | Grok 4.7 |
| IOI (Vals AI) | Not measured | 57.7% | Only Grok 4.7 measured |
| Terminal-Bench 2.1 (Vals AI) | 43.8% | 73.4% | Grok 4.7 |
| SWE-bench Multimodal (Vals AI) | Not measured | 42.9% | Only Grok 4.7 measured |
| CyberBench (Vals AI) | Not measured | 69.5% | Only Grok 4.7 measured |
| SciCode | Not measured | 57.8% | Only Grok 4.7 measured |
| Terminal-Bench | 35.5% | Not measured | Only Claude Haiku 4.5 measured |
| FrontierCode | Not measured | 47.6% | Only Grok 4.7 measured |
| FrontierSWE | Not measured | 29.5% | Only Grok 4.7 measured |
| WeirdML | 45.4% | Not measured | Only Claude Haiku 4.5 measured |
| LMArena Text: coding | 1454 | 1432 | Claude Haiku 4.5 |
| LMArena Text: software and IT | 1439 | 1421 | Claude Haiku 4.5 |
| LMArena WebDev: React | 1326 | 1663 | Grok 4.7 |
| LMArena WebDev: HTML | 1318 | 1627 | Grok 4.7 |
| LMArena WebDev: from an image | Not measured | 1586 | Only Grok 4.7 measured |
| Neither model has a result on the other 14 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
| Benchmark | Claude Haiku 4.5 | Grok 4.7 | Leader |
|---|---|---|---|
| AA Intelligence Index | 16.9 | 46.4 | Grok 4.7 |
| Epoch Capabilities Index | 142.2 | 154.4 | Grok 4.7 |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index08
| Benchmark | Claude Haiku 4.5 | Grok 4.7 | Leader |
|---|---|---|---|
| AA Agentic Index | 8.0 | Not measured | Only Claude Haiku 4.5 measured |
| LiveBench research | 42.2% | 86.4% | Grok 4.7 |
| LiveBench browser | 40.0% | 60.0% | Grok 4.7 |
| LiveBench long agentic | 11.1% | 50.1% | Grok 4.7 |
| SREBench (Vals AI) | Not measured | 3.8% | Only Grok 4.7 measured |
| Finance Agent (Vals AI) | 31.0% | 52.3% | Grok 4.7 |
| Tax Agent Bench (Vals AI) | 5.9% | 34.2% | Grok 4.7 |
| Legal Research Bench (Vals AI) | 10.6% | 47.1% | Grok 4.7 |
| Harvey's Legal Agent Benchmark (Vals AI) | Not measured | 18.3% | Only Grok 4.7 measured |
| Excel Modeling Benchmark (Vals AI) | 22.7% | 67.0% | Grok 4.7 |
| BioMysteryBench (Vals AI) | Not measured | 69.3% | Only Grok 4.7 measured |
| Terminal-Bench-Science (Vals AI) | Not measured | 10.0% | Only Grok 4.7 measured |
| Vals Science Index | Not measured | 34.8% | Only Grok 4.7 measured |
| Robo-bench (Vals AI) | Not measured | 0.2% | Only Grok 4.7 measured |
| APEX-Agents | Not measured | 54.6% | Only Grok 4.7 measured |
| BALROG | 31.2% | Not measured | Only Claude Haiku 4.5 measured |
| DeepResearch Bench | 45.5% | Not measured | Only Claude Haiku 4.5 measured |
| Vending-Bench 2 | $459 | $10,537 | Grok 4.7 |
| Berkeley Function Calling Leaderboard (BFCL) | 68.7% | Not measured | Only Claude Haiku 4.5 measured |
| Neither model has a result on the other 22 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index35
| Benchmark | Claude Haiku 4.5 | Grok 4.7 | Leader |
|---|---|---|---|
| GPQA Diamond | 72.2% | Not measured | Only Claude Haiku 4.5 measured |
| LiveBench reasoning | 61.7% | 82.7% | Grok 4.7 |
| MysteryMechanism (Vals AI) | Not measured | 25.2% | Only Grok 4.7 measured |
| MMMU Pro (Vals AI) | 46.1% | Not measured | Only Claude Haiku 4.5 measured |
| Humanity's Last Exam (Artificial Analysis run) | Not measured | 43.1% | Only Grok 4.7 measured |
| GPQA Diamond (Epoch AI run) | 71.2% | 92.7% | Grok 4.7 |
| ARC-AGI | 47.7% | 90.2% | Grok 4.7 |
| ARC-AGI-2 | 4.0% | 61.4% | Grok 4.7 |
| Chess puzzles | 8.0% | 41.0% | Grok 4.7 |
| Mystery game puzzles | Not measured | 29.0% | Only Grok 4.7 measured |
| LMArena Text: hard prompts | 1421 | 1415 | Claude Haiku 4.5 |
| LMArena Text: expert | 1443 | 1439 | Claude Haiku 4.5 |
| LMArena Text: hard prompts in English | 1435 | 1427 | Claude Haiku 4.5 |
| LMArena Vision: diagrams | Not measured | 1254 | Only Grok 4.7 measured |
| LMArena Vision: homework | Not measured | 1309 | Only Grok 4.7 measured |
| Neither model has a result on the other 7 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index03
| Benchmark | Claude Haiku 4.5 | Grok 4.7 | Leader |
|---|---|---|---|
| AIME | 82.7% | Not measured | Only Claude Haiku 4.5 measured |
| MGSM (Vals AI) | 92.2% | Not measured | Only Claude Haiku 4.5 measured |
| OTIS Mock AIME | 66.7% | 98.1% | Grok 4.7 |
| FrontierMath, tiers 1 to 3 | Not measured | 53.0% | Only Grok 4.7 measured |
| FrontierMath, tier 4 | Not measured | 17.1% | Only Grok 4.7 measured |
| ProofBench | Not measured | 26.0% | Only Grok 4.7 measured |
| MATH level 5 | 96.4% | Not measured | Only Claude Haiku 4.5 measured |
| LMArena Text: math | 1398 | 1414 | Grok 4.7 |
| LMArena Text: mathematical work | 1430 | 1435 | Grok 4.7 |
| Neither model has a result on the other 4 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index16
| Benchmark | Claude Haiku 4.5 | Grok 4.7 | Leader |
|---|---|---|---|
| MMLU Pro | 78.7% | Not measured | Only Claude Haiku 4.5 measured |
| LegalBench (Vals AI) | 81.2% | 84.4% | Grok 4.7 |
| CaseLaw (Vals AI) | 56.5% | Not measured | Only Claude Haiku 4.5 measured |
| CorpFin (Vals AI) | 60.6% | Not measured | Only Claude Haiku 4.5 measured |
| TaxEval (Vals AI) | 67.5% | Not measured | Only Claude Haiku 4.5 measured |
| MortgageTax (Vals AI) | 62.2% | Not measured | Only Claude Haiku 4.5 measured |
| MedQA (Vals AI) | 79.6% | Not measured | Only Claude Haiku 4.5 measured |
| MedCode (Vals AI) | 32.7% | 49.5% | Grok 4.7 |
| SimpleQA Verified | 13.2% | 56.0% | Grok 4.7 |
| LMArena Text: science | 1406 | 1419 | Grok 4.7 |
| LMArena Text: medicine and healthcare | 1394 | 1395 | Grok 4.7 |
| LMArena Text: legal and government | 1400 | 1423 | Grok 4.7 |
| LMArena Text: business and finance | 1400 | 1389 | Claude Haiku 4.5 |
| Neither model has a result on the other 5 boards here | |||
Web designLike-for-likePublic boards, shown as published, kept out of the index07
| Benchmark | Claude Haiku 4.5 | Grok 4.7 | Leader |
|---|---|---|---|
| Design Arena: websites | 1122 | 1255 | Grok 4.7 |
| Design Arena: UI components | 1097 | 1275 | Grok 4.7 |
| Design Arena: game dev | 1097 | 1314 | Grok 4.7 |
| Design Arena: data viz | 1124 | 1238 | Grok 4.7 |
| Design Arena: 3D | 1071 | 1274 | Grok 4.7 |
| Design Arena: all code categories | 1114 | 1273 | Grok 4.7 |
| Design Arena: SVG | 1025 | Not measured | Only Claude Haiku 4.5 measured |
| Design Arena: ASCII art | 1140 | Not measured | Only Claude Haiku 4.5 measured |
| LiveBench design | 59.9% | 78.0% | Grok 4.7 |
GeneralLike-for-likePublic boards, shown as published, kept out of the index617
| Benchmark | Claude Haiku 4.5 | Grok 4.7 | Leader |
|---|---|---|---|
| Vals Index | Not measured | 58.6% | Only Grok 4.7 measured |
| LiveBench data analysis | 59.3% | 76.9% | Grok 4.7 |
| Public Benefits Bench (Vals AI) | 54.3% | 65.6% | Grok 4.7 |
| SAGE (Vals AI) | 31.8% | 40.8% | Grok 4.7 |
| MedScribe (Vals AI) | 85.2% | 89.4% | Grok 4.7 |
| Vals Multimodal Index | 42.9% | Not measured | Only Claude Haiku 4.5 measured |
| Long context reasoning (AA-LCR) | Not measured | 80.0% | Only Grok 4.7 measured |
| DTBench | 73.6% | 96.0% | Grok 4.7 |
| LMCA | 30.9% | 49.4% | Grok 4.7 |
| Furniture assembly | Not measured | 20.8% | Only Grok 4.7 measured |
| ExploitBench | 13.7% | Not measured | Only Claude Haiku 4.5 measured |
| LMArena Text | 1397 | 1399 | Grok 4.7 |
| LMArena Text: instruction following | 1414 | 1406 | Claude Haiku 4.5 |
| LMArena Text: creative writing | 1371 | 1381 | Grok 4.7 |
| LMArena Vision | Not measured | 1231 | Only Grok 4.7 measured |
| LMArena Text: English | 1414 | 1411 | Claude Haiku 4.5 |
| LMArena Text: non-English | 1377 | 1386 | Grok 4.7 |
| LMArena Text: Chinese | 1418 | 1449 | Grok 4.7 |
| LMArena Text: German | 1374 | 1366 | Claude Haiku 4.5 |
| LMArena Text: Japanese | 1338 | 1359 | Grok 4.7 |
| LMArena Text: Korean | 1346 | 1383 | Grok 4.7 |
| LMArena Text: French | 1411 | 1431 | Grok 4.7 |
| LMArena Text: Spanish | 1421 | 1406 | Claude Haiku 4.5 |
| LMArena Text: Russian | 1381 | 1399 | Grok 4.7 |
| LMArena Text: Polish | 1343 | 1420 | Grok 4.7 |
| LMArena Text: multi-turn | 1409 | 1394 | Claude Haiku 4.5 |
| LMArena Text: longer queries | 1427 | 1416 | Claude Haiku 4.5 |
| LMArena Text: writing and language | 1386 | 1394 | Grok 4.7 |
| LMArena Text: entertainment and media | 1369 | 1376 | Grok 4.7 |
| LMArena Vision: English | Not measured | 1229 | Only Grok 4.7 measured |
| LMArena Vision: Chinese | Not measured | 1250 | Only Grok 4.7 measured |
| LMArena Vision: reading text | Not measured | 1241 | Only Grok 4.7 measured |
| LMArena Vision: creative writing | Not measured | 1217 | Only Grok 4.7 measured |
| LMArena Document | 1420 | Not measured | Only Claude Haiku 4.5 measured |
| Neither model has a result on the other 12 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Claude Haiku 4.5 | Grok 4.7 | Leader |
|---|---|---|---|
| Neither model has a result on 5 boards here | |||
What each workload costs
Three fixed token mixes at each model's listed price, so per-token rates become a bill.
Chat turn
1K input + 500 output tokens
Claude Haiku 4.5 costs less
Repository review
50K input + 3K output tokens
Claude Haiku 4.5 costs less
Agent loop
200K input + 10K output tokens
Claude Haiku 4.5 costs less
Listed OpenRouter rates, without cache or batch discounts. A workload that does not fit a model's context window would need splitting.
Specification differences
The leading value in a row is marked; a row with a missing value names no leader. Our two rows are marked in red.
| Specification | Anthropic Claude Haiku 4.5 | SpaceXAI Grok 4.7 |
|---|---|---|
| Maker | Anthropic | xAI |
| Weights | No public weights listed | No public weights listed |
| Released | October 15, 2025 | September 21, 2026 |
| Context window | 200K | 500K |
| Input $/Mtok | $1.00 | $2.00 |
| Output $/Mtok | $5.00 | $6.00 |
| Coding index | 35.6 | 66.7 |
| Independent measurements behind it | 4 | 5 |
| Cost per solved task | $0.56 | Not computable |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Claude Haiku 4.5 better than Grok 4.7 for coding?
Pick Grok 4.7 for coding: it scores 66.7 on the Vibe Coding Index against 35.6 for Claude Haiku 4.5. Pick Claude Haiku 4.5 for output tokens 1.2x cheaper ($5.00 vs $6.00 per million) and work measured by LMArena Text: coding or LMArena Text: software and IT, where it leads.
Which is cheaper, Claude Haiku 4.5 or Grok 4.7?
Claude Haiku 4.5 costs $1.00 per million input tokens and $5.00 per million output tokens; Grok 4.7 costs $2.00 and $6.00. Cost per solved task is known for Claude Haiku 4.5 only.
Which has the bigger context window, Claude Haiku 4.5 or Grok 4.7?
Grok 4.7, with 500K tokens against 200K.
How many benchmarks is the Claude Haiku 4.5 vs Grok 4.7 comparison based on?
68 benchmarks have a result for both models as of October 22, 2026. Claude Haiku 4.5's coding index rests on 4 independent benchmarks and Grok 4.7's on 5. Where only one model has a result, the page says so instead of naming a winner.