Enter opens the highlighted result. Esc closes.

Claude Haiku 4.5 vs Grok 4.20

Claude Haiku 4.5 leads Grok 4.20 on coding, 35.6 to 33.3 on the Vibe Coding Index, and Grok 4.20 costs 2.0x less per output token ($2.50 vs $5.00 per million). Updated October 22, 2026; 40 benchmarks have a result for both.

Claude Haiku 4.5Anthropic
Coding
35.6
Overall
41.0
Output $/M
$5.00
10
Grok 4.20xAI
Coding
33.3
Overall
41.0
Output $/M
$2.50
30
vs boards won of 40 shared

Claude Haiku 4.5 or Grok 4.20: which to pick

Pick Claude Haiku 4.5 for coding: it scores 35.6 on the Vibe Coding Index against 33.3 for Grok 4.20.

Pick Grok 4.20 for output tokens 2.0x cheaper ($2.50 vs $5.00 per million) and a larger context window (2M against 200K tokens).

Shared results
40
Claude Haiku 4.5 only
55
Grok 4.20 only
15
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.20 33.3 from 2 benchmarks.
Widest category
Reasoning, 39.2 points apart on average over 4 shared benchmarks.
Widest single gap
ARC-AGI-2: Claude Haiku 4.5 4.0% against Grok 4.20 65.1%, 61.1 points apart on a 0 to 100 scale.
Output price
Claude Haiku 4.5 $5.00 against Grok 4.20 $2.50 per million output tokens, 2.0x apart.
Context window
Claude Haiku 4.5 takes 200K tokens, Grok 4.20 2M.

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.20Ties
Coding25
Intelligence02
Agentic work23
Reasoning04
Math01
Knowledge44
Web design08
General23
All shared boards1030
CodingLike-for-likeSix of these boards feed the Vibe Coding Index25
Coding benchmarks for Claude Haiku 4.5 and Grok 4.20
BenchmarkClaude Haiku 4.5Grok 4.20Leader
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%Not measuredOnly Claude Haiku 4.5 measured
LMArena WebDev1330Not measuredOnly Claude Haiku 4.5 measured
AA Coding Index43.9Not measuredOnly Claude Haiku 4.5 measured
LiveCodeBench (Vals AI)41.2%84.3%Grok 4.20
SWE-bench Verified (Vals AI)66.6%72.2%Grok 4.20
Vibe Code Bench (Vals AI)11.4%4.1%Claude Haiku 4.5
Code migration (Vals AI)7.5%0.3%Claude Haiku 4.5
ProgramBench (Vals AI)0.0%Not measuredOnly Claude Haiku 4.5 measured
Terminal-Bench 2.1 (Vals AI)43.8%44.2%Grok 4.20
Terminal-Bench Hard (Artificial Analysis run)Not measured37.9%Only Grok 4.20 measured
Terminal-Bench35.5%57.3%Grok 4.20
WeirdML45.4%52.3%Grok 4.20
LMArena Text: coding1454Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: software and IT1439Not measuredOnly Claude Haiku 4.5 measured
LMArena WebDev: React1326Not measuredOnly Claude Haiku 4.5 measured
LMArena WebDev: HTML1318Not measuredOnly Claude Haiku 4.5 measured
Neither model has a result on the other 21 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
Intelligence benchmarks for Claude Haiku 4.5 and Grok 4.20
BenchmarkClaude Haiku 4.5Grok 4.20Leader
AA Intelligence Index16.925.7Grok 4.20
Epoch Capabilities Index142.2152.1Grok 4.20
Agentic workLike-for-likePublic boards, shown as published, kept out of the index23
Agentic work benchmarks for Claude Haiku 4.5 and Grok 4.20
BenchmarkClaude Haiku 4.5Grok 4.20Leader
AA Agentic Index8.0Not measuredOnly Claude Haiku 4.5 measured
Design Arena: agents building web appsNot measured1144Only Grok 4.20 measured
Design Arena: agents building full-stack appsNot measured1054Only Grok 4.20 measured
Design Arena: agents building mobile appsNot measured1090Only Grok 4.20 measured
Design Arena: agents building Android appsNot measured1045Only Grok 4.20 measured
Design Arena: agents building Godot gamesNot measured1089Only Grok 4.20 measured
Design Arena: HTML slidesNot measured1180Only Grok 4.20 measured
LiveBench research42.2%Not measuredOnly Claude Haiku 4.5 measured
LiveBench browser40.0%Not measuredOnly Claude Haiku 4.5 measured
LiveBench long agentic11.1%Not measuredOnly Claude Haiku 4.5 measured
Finance Agent (Vals AI)31.0%28.5%Claude Haiku 4.5
Tax Agent Bench (Vals AI)5.9%7.0%Grok 4.20
Legal Research Bench (Vals AI)10.6%13.9%Grok 4.20
Excel Modeling Benchmark (Vals AI)22.7%11.7%Claude Haiku 4.5
τ²-Bench TelecomNot measured93.0%Only Grok 4.20 measured
BALROG31.2%Not measuredOnly Claude Haiku 4.5 measured
DeepResearch Bench45.5%Not measuredOnly Claude Haiku 4.5 measured
Vending-Bench 2$459$4,663Grok 4.20
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 index04
Reasoning benchmarks for Claude Haiku 4.5 and Grok 4.20
BenchmarkClaude Haiku 4.5Grok 4.20Leader
GPQA Diamond72.2%88.6%Grok 4.20
LiveBench reasoning61.7%Not measuredOnly Claude Haiku 4.5 measured
MMMU Pro (Vals AI)46.1%83.5%Grok 4.20
GPQA Diamond (Artificial Analysis run)Not measured91.1%Only Grok 4.20 measured
Humanity's Last Exam (Artificial Analysis run)Not measured34.5%Only Grok 4.20 measured
GPQA Diamond (Epoch AI run)71.2%Not measuredOnly Claude Haiku 4.5 measured
ARC-AGI47.7%89.5%Grok 4.20
ARC-AGI-24.0%65.1%Grok 4.20
Chess puzzles8.0%Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: hard prompts1421Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: expert1443Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: hard prompts in English1435Not measuredOnly Claude Haiku 4.5 measured
Kagi LLM BenchmarkNot measured75.0%Only Grok 4.20 measured
Neither model has a result on the other 9 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index01
Math benchmarks for Claude Haiku 4.5 and Grok 4.20
BenchmarkClaude Haiku 4.5Grok 4.20Leader
AIME82.7%96.5%Grok 4.20
MGSM (Vals AI)92.2%Not measuredOnly Claude Haiku 4.5 measured
OTIS Mock AIME66.7%Not measuredOnly Claude Haiku 4.5 measured
MATH level 596.4%Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: math1398Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: mathematical work1430Not measuredOnly Claude Haiku 4.5 measured
Neither model has a result on the other 7 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index44
Knowledge benchmarks for Claude Haiku 4.5 and Grok 4.20
BenchmarkClaude Haiku 4.5Grok 4.20Leader
MMLU Pro78.7%86.3%Grok 4.20
LegalBench (Vals AI)81.2%77.7%Claude Haiku 4.5
CaseLaw (Vals AI)56.5%54.4%Claude Haiku 4.5
CorpFin (Vals AI)60.6%63.7%Grok 4.20
TaxEval (Vals AI)67.5%74.1%Grok 4.20
MortgageTax (Vals AI)62.2%45.4%Claude Haiku 4.5
MedQA (Vals AI)79.6%94.5%Grok 4.20
MedCode (Vals AI)32.7%32.2%Claude Haiku 4.5
SimpleQA Verified13.2%Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: science1406Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: medicine and healthcare1394Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: legal and government1400Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: business and finance1400Not measuredOnly Claude Haiku 4.5 measured
Neither model has a result on the other 5 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index08
Web design benchmarks for Claude Haiku 4.5 and Grok 4.20
BenchmarkClaude Haiku 4.5Grok 4.20Leader
Design Arena: websites11221229Grok 4.20
Design Arena: UI components10971200Grok 4.20
Design Arena: game dev10971193Grok 4.20
Design Arena: data viz11241217Grok 4.20
Design Arena: 3D10711193Grok 4.20
Design Arena: all code categories11141221Grok 4.20
Design Arena: SVG10251165Grok 4.20
Design Arena: ASCII art11401175Grok 4.20
LiveBench design59.9%Not measuredOnly Claude Haiku 4.5 measured
GeneralLike-for-likePublic boards, shown as published, kept out of the index23
General benchmarks for Claude Haiku 4.5 and Grok 4.20
BenchmarkClaude Haiku 4.5Grok 4.20Leader
LiveBench data analysis59.3%Not measuredOnly Claude Haiku 4.5 measured
Public Benefits Bench (Vals AI)54.3%Not measuredOnly Claude Haiku 4.5 measured
SAGE (Vals AI)31.8%38.2%Grok 4.20
MedScribe (Vals AI)85.2%63.4%Claude Haiku 4.5
Vals Multimodal Index42.9%39.1%Claude Haiku 4.5
IFBenchNot measured81.2%Only Grok 4.20 measured
Long context reasoning (AA-LCR)Not measured69.0%Only Grok 4.20 measured
DTBench73.6%90.1%Grok 4.20
LMCA30.9%38.7%Grok 4.20
CL-benchNot measured22.2%Only Grok 4.20 measured
ExploitBench13.7%Not measuredOnly Claude Haiku 4.5 measured
CL-bench LifeNot measured11.9%Only Grok 4.20 measured
LMArena Text1397Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: instruction following1414Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: creative writing1371Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: English1414Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: non-English1377Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: Chinese1418Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: German1374Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: Japanese1338Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: Korean1346Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: French1411Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: Spanish1421Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: Russian1381Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: Polish1343Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: multi-turn1409Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: longer queries1427Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: writing and language1386Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: entertainment and media1369Not measuredOnly Claude Haiku 4.5 measured
LMArena Document1420Not measuredOnly Claude Haiku 4.5 measured
Neither model has a result on the other 16 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.20
BenchmarkClaude Haiku 4.5Grok 4.20Leader
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.20$0.0025Fits in one request

Grok 4.20 costs less

Repository review

50K input + 3K output tokens

Claude Haiku 4.5$0.065Fits in one request
Grok 4.20$0.070Fits 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.20$0.275Fits 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.20
SpecificationAnthropic Claude Haiku 4.5SpaceXAI Grok 4.20
MakerAnthropicxAI
WeightsNo public weights listedNo public weights listed
ReleasedOctober 15, 2025March 31, 2026
Context window200K2M
Input $/Mtok$1.00$1.25
Output $/Mtok$5.00$2.50
Coding index35.633.3
Independent measurements behind it42
Cost per solved task$0.56$0.72
SourceOpenRouter listingOpenRouter listing

Questions

Is Claude Haiku 4.5 better than Grok 4.20 for coding?

Pick Claude Haiku 4.5 for coding: it scores 35.6 on the Vibe Coding Index against 33.3 for Grok 4.20. Pick Grok 4.20 for output tokens 2.0x cheaper ($2.50 vs $5.00 per million) and a larger context window (2M against 200K tokens).

Which is cheaper, Claude Haiku 4.5 or Grok 4.20?

Claude Haiku 4.5 costs $1.00 per million input tokens and $5.00 per million output tokens; Grok 4.20 costs $1.25 and $2.50. Per solved SWE-bench Verified task, Claude Haiku 4.5 costs $0.56 and Grok 4.20 $0.72.

Which has the bigger context window, Claude Haiku 4.5 or Grok 4.20?

Grok 4.20, with 2M tokens against 200K.

How many benchmarks is the Claude Haiku 4.5 vs Grok 4.20 comparison based on?

40 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.20's on 2. 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-20" title="Claude Haiku 4.5 vs Grok 4.20, 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-20">LLMBenchmark.ai, Claude Haiku 4.5 vs Grok 4.20</a></p>