Enter opens the highlighted result. Esc closes.

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.5Anthropic
Coding
35.6
Overall
41.0
Output $/M
$5.00
12
Grok 4.7xAI
Coding
66.7
Overall
66.6
Output $/M
$6.00
56
vs boards won of 68 shared

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.

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.

Boards won, where both have a result
CategoryClaude Haiku 4.5BarsGrok 4.7Ties
Coding28
Intelligence02
Agentic work08
Reasoning35
Math03
Knowledge16
Web design07
General617
All shared boards1256
CodingLike-for-likeSix of these boards feed the Vibe Coding Index28
Coding benchmarks for Claude Haiku 4.5 and Grok 4.7
BenchmarkClaude Haiku 4.5Grok 4.7Leader
SWE-bench Verified66.6%Not measuredOnly Claude Haiku 4.5 measured
SWE-bench Multilingual64.7%Not measuredOnly Claude Haiku 4.5 measured
LiveBench coding48.1%84.5%Grok 4.7
LMArena WebDev13301637Grok 4.7
AA Coding Index43.9Not measuredOnly Claude Haiku 4.5 measured
LiveCodeBench (Vals AI)41.2%Not measuredOnly Claude Haiku 4.5 measured
SWE-bench Verified (Vals AI)66.6%Not measuredOnly Claude Haiku 4.5 measured
Terminal-Bench 4 (Vals AI)Not measured28.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 measured57.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 measured42.9%Only Grok 4.7 measured
CyberBench (Vals AI)Not measured69.5%Only Grok 4.7 measured
SciCodeNot measured57.8%Only Grok 4.7 measured
Terminal-Bench35.5%Not measuredOnly Claude Haiku 4.5 measured
FrontierCodeNot measured47.6%Only Grok 4.7 measured
FrontierSWENot measured29.5%Only Grok 4.7 measured
WeirdML45.4%Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: coding14541432Claude Haiku 4.5
LMArena Text: software and IT14391421Claude Haiku 4.5
LMArena WebDev: React13261663Grok 4.7
LMArena WebDev: HTML13181627Grok 4.7
LMArena WebDev: from an imageNot measured1586Only 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
Intelligence benchmarks for Claude Haiku 4.5 and Grok 4.7
BenchmarkClaude Haiku 4.5Grok 4.7Leader
AA Intelligence Index16.946.4Grok 4.7
Epoch Capabilities Index142.2154.4Grok 4.7
Agentic workLike-for-likePublic boards, shown as published, kept out of the index08
Agentic work benchmarks for Claude Haiku 4.5 and Grok 4.7
BenchmarkClaude Haiku 4.5Grok 4.7Leader
AA Agentic Index8.0Not measuredOnly Claude Haiku 4.5 measured
LiveBench research42.2%86.4%Grok 4.7
LiveBench browser40.0%60.0%Grok 4.7
LiveBench long agentic11.1%50.1%Grok 4.7
SREBench (Vals AI)Not measured3.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 measured18.3%Only Grok 4.7 measured
Excel Modeling Benchmark (Vals AI)22.7%67.0%Grok 4.7
BioMysteryBench (Vals AI)Not measured69.3%Only Grok 4.7 measured
Terminal-Bench-Science (Vals AI)Not measured10.0%Only Grok 4.7 measured
Vals Science IndexNot measured34.8%Only Grok 4.7 measured
Robo-bench (Vals AI)Not measured0.2%Only Grok 4.7 measured
APEX-AgentsNot measured54.6%Only Grok 4.7 measured
BALROG31.2%Not measuredOnly Claude Haiku 4.5 measured
DeepResearch Bench45.5%Not measuredOnly Claude Haiku 4.5 measured
Vending-Bench 2$459$10,537Grok 4.7
Berkeley Function Calling Leaderboard (BFCL)68.7%Not measuredOnly 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
Reasoning benchmarks for Claude Haiku 4.5 and Grok 4.7
BenchmarkClaude Haiku 4.5Grok 4.7Leader
GPQA Diamond72.2%Not measuredOnly Claude Haiku 4.5 measured
LiveBench reasoning61.7%82.7%Grok 4.7
MysteryMechanism (Vals AI)Not measured25.2%Only Grok 4.7 measured
MMMU Pro (Vals AI)46.1%Not measuredOnly Claude Haiku 4.5 measured
Humanity's Last Exam (Artificial Analysis run)Not measured43.1%Only Grok 4.7 measured
GPQA Diamond (Epoch AI run)71.2%92.7%Grok 4.7
ARC-AGI47.7%90.2%Grok 4.7
ARC-AGI-24.0%61.4%Grok 4.7
Chess puzzles8.0%41.0%Grok 4.7
Mystery game puzzlesNot measured29.0%Only Grok 4.7 measured
LMArena Text: hard prompts14211415Claude Haiku 4.5
LMArena Text: expert14431439Claude Haiku 4.5
LMArena Text: hard prompts in English14351427Claude Haiku 4.5
LMArena Vision: diagramsNot measured1254Only Grok 4.7 measured
LMArena Vision: homeworkNot measured1309Only 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
Math benchmarks for Claude Haiku 4.5 and Grok 4.7
BenchmarkClaude Haiku 4.5Grok 4.7Leader
AIME82.7%Not measuredOnly Claude Haiku 4.5 measured
MGSM (Vals AI)92.2%Not measuredOnly Claude Haiku 4.5 measured
OTIS Mock AIME66.7%98.1%Grok 4.7
FrontierMath, tiers 1 to 3Not measured53.0%Only Grok 4.7 measured
FrontierMath, tier 4Not measured17.1%Only Grok 4.7 measured
ProofBenchNot measured26.0%Only Grok 4.7 measured
MATH level 596.4%Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: math13981414Grok 4.7
LMArena Text: mathematical work14301435Grok 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
Knowledge benchmarks for Claude Haiku 4.5 and Grok 4.7
BenchmarkClaude Haiku 4.5Grok 4.7Leader
MMLU Pro78.7%Not measuredOnly Claude Haiku 4.5 measured
LegalBench (Vals AI)81.2%84.4%Grok 4.7
CaseLaw (Vals AI)56.5%Not measuredOnly Claude Haiku 4.5 measured
CorpFin (Vals AI)60.6%Not measuredOnly Claude Haiku 4.5 measured
TaxEval (Vals AI)67.5%Not measuredOnly Claude Haiku 4.5 measured
MortgageTax (Vals AI)62.2%Not measuredOnly Claude Haiku 4.5 measured
MedQA (Vals AI)79.6%Not measuredOnly Claude Haiku 4.5 measured
MedCode (Vals AI)32.7%49.5%Grok 4.7
SimpleQA Verified13.2%56.0%Grok 4.7
LMArena Text: science14061419Grok 4.7
LMArena Text: medicine and healthcare13941395Grok 4.7
LMArena Text: legal and government14001423Grok 4.7
LMArena Text: business and finance14001389Claude 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
Web design benchmarks for Claude Haiku 4.5 and Grok 4.7
BenchmarkClaude Haiku 4.5Grok 4.7Leader
Design Arena: websites11221255Grok 4.7
Design Arena: UI components10971275Grok 4.7
Design Arena: game dev10971314Grok 4.7
Design Arena: data viz11241238Grok 4.7
Design Arena: 3D10711274Grok 4.7
Design Arena: all code categories11141273Grok 4.7
Design Arena: SVG1025Not measuredOnly Claude Haiku 4.5 measured
Design Arena: ASCII art1140Not measuredOnly Claude Haiku 4.5 measured
LiveBench design59.9%78.0%Grok 4.7
GeneralLike-for-likePublic boards, shown as published, kept out of the index617
General benchmarks for Claude Haiku 4.5 and Grok 4.7
BenchmarkClaude Haiku 4.5Grok 4.7Leader
Vals IndexNot measured58.6%Only Grok 4.7 measured
LiveBench data analysis59.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 Index42.9%Not measuredOnly Claude Haiku 4.5 measured
Long context reasoning (AA-LCR)Not measured80.0%Only Grok 4.7 measured
DTBench73.6%96.0%Grok 4.7
LMCA30.9%49.4%Grok 4.7
Furniture assemblyNot measured20.8%Only Grok 4.7 measured
ExploitBench13.7%Not measuredOnly Claude Haiku 4.5 measured
LMArena Text13971399Grok 4.7
LMArena Text: instruction following14141406Claude Haiku 4.5
LMArena Text: creative writing13711381Grok 4.7
LMArena VisionNot measured1231Only Grok 4.7 measured
LMArena Text: English14141411Claude Haiku 4.5
LMArena Text: non-English13771386Grok 4.7
LMArena Text: Chinese14181449Grok 4.7
LMArena Text: German13741366Claude Haiku 4.5
LMArena Text: Japanese13381359Grok 4.7
LMArena Text: Korean13461383Grok 4.7
LMArena Text: French14111431Grok 4.7
LMArena Text: Spanish14211406Claude Haiku 4.5
LMArena Text: Russian13811399Grok 4.7
LMArena Text: Polish13431420Grok 4.7
LMArena Text: multi-turn14091394Claude Haiku 4.5
LMArena Text: longer queries14271416Claude Haiku 4.5
LMArena Text: writing and language13861394Grok 4.7
LMArena Text: entertainment and media13691376Grok 4.7
LMArena Vision: EnglishNot measured1229Only Grok 4.7 measured
LMArena Vision: ChineseNot measured1250Only Grok 4.7 measured
LMArena Vision: reading textNot measured1241Only Grok 4.7 measured
LMArena Vision: creative writingNot measured1217Only Grok 4.7 measured
LMArena Document1420Not measuredOnly 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
Image generation benchmarks for Claude Haiku 4.5 and Grok 4.7
BenchmarkClaude Haiku 4.5Grok 4.7Leader
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$0.0035Fits in one request
Grok 4.7$0.0050Fits in one request

Claude Haiku 4.5 costs less

Repository review

50K input + 3K output tokens

Claude Haiku 4.5$0.065Fits in one request
Grok 4.7$0.118Fits in one request

Claude Haiku 4.5 costs less

Agent loop

200K input + 10K output tokens

Claude Haiku 4.5$0.250Exceeds the context window
Grok 4.7$0.460Fits in one request

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.

Specifications of Claude Haiku 4.5 and Grok 4.7
SpecificationAnthropic Claude Haiku 4.5SpaceXAI Grok 4.7
MakerAnthropicxAI
WeightsNo public weights listedNo public weights listed
ReleasedOctober 15, 2025September 21, 2026
Context window200K500K
Input $/Mtok$1.00$2.00
Output $/Mtok$5.00$6.00
Coding index35.666.7
Independent measurements behind it45
Cost per solved task$0.56Not computable
SourceOpenRouter listingOpenRouter 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.

Compare next

Embed this comparison on your site

Free under CC BY 4.0, while the source link stays visible. Preview the frame · Terms and other embeds

<iframe src="https://llmbenchmark.ai/embed/compare/claude-haiku-4-5-vs-grok-4-7" title="Claude Haiku 4.5 vs Grok 4.7, LLMBenchmark.ai" width="100%" height="360" style="border:0;max-width:100%" loading="lazy"></iframe>
<p style="font:13px/1.4 sans-serif;margin:6px 0 0">Source: <a href="https://llmbenchmark.ai/compare/claude-haiku-4-5-vs-grok-4-7">LLMBenchmark.ai, Claude Haiku 4.5 vs Grok 4.7</a></p>