Enter opens the highlighted result. Esc closes.

Claude Opus 4.7 vs Grok 4.20

Claude Opus 4.7 leads Grok 4.20 on coding, 67.5 to 33.3 on the Vibe Coding Index, and Grok 4.20 costs 10.0x less per output token ($2.50 vs $25.00 per million). Updated October 21, 2026; 38 benchmarks have a result for both.

Claude Opus 4.7Anthropic
Coding
67.5
Overall
71.6
Output $/M
$25.00
35
Grok 4.20xAI
Coding
33.3
Overall
41.0
Output $/M
$2.50
3
vs boards won of 38 shared

Claude Opus 4.7 or Grok 4.20: which to pick

Pick Claude Opus 4.7 for coding: it scores 67.5 on the Vibe Coding Index against 33.3 for Grok 4.20.

Pick Grok 4.20 for output tokens 10.0x cheaper ($2.50 vs $25.00 per million) and a lower cost per solved task ($0.72 against $2.95).

Shared results
38
Claude Opus 4.7 only
65
Grok 4.20 only
17
Like-for-like categories
7 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 Opus 4.7 67.5 from 4 benchmarks, Grok 4.20 33.3 from 2 benchmarks.
Widest category
Agentic work, 26.7 points apart on average over 6 shared benchmarks.
Widest single gap
Vibe Code Bench (Vals AI): Claude Opus 4.7 71.0% against Grok 4.20 4.1%, 66.9 points apart on a 0 to 100 scale.
Output price
Claude Opus 4.7 $25.00 against Grok 4.20 $2.50 per million output tokens, 10.0x apart.
Context window
Claude Opus 4.7 takes 1M 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 Opus 4.7BarsGrok 4.20Ties
Coding80
Intelligence20
Agentic work51
Reasoning70
Math01
Knowledge70
General61
All shared boards353
CodingLike-for-likeSix of these boards feed the Vibe Coding Index80
Coding benchmarks for Claude Opus 4.7 and Grok 4.20
BenchmarkClaude Opus 4.7Grok 4.20Leader
LMArena WebDev1558Not measuredOnly Claude Opus 4.7 measured
AA Coding Index73.6Not measuredOnly Claude Opus 4.7 measured
LiveCodeBench (Vals AI)85.1%84.3%Claude Opus 4.7
SWE-bench Verified (Vals AI)82.0%72.2%Claude Opus 4.7
Vibe Code Bench (Vals AI)71.0%4.1%Claude Opus 4.7
Code migration (Vals AI)43.9%0.3%Claude Opus 4.7
ProgramBench (Vals AI)0.0%Not measuredOnly Claude Opus 4.7 measured
Terminal-Bench 2.1 (Vals AI)68.5%44.2%Claude Opus 4.7
Terminal-Bench Hard (Artificial Analysis run)54.5%37.9%Claude Opus 4.7
Terminal-Bench80.2%57.3%Claude Opus 4.7
FrontierCode38.5%Not measuredOnly Claude Opus 4.7 measured
GSO-Bench44.1%Not measuredOnly Claude Opus 4.7 measured
WeirdML76.4%52.3%Claude Opus 4.7
MirrorCode31.1%Not measuredOnly Claude Opus 4.7 measured
LMArena Text: coding1519Not measuredOnly Claude Opus 4.7 measured
LMArena Text: software and IT1516Not measuredOnly Claude Opus 4.7 measured
LMArena WebDev: React1560Not measuredOnly Claude Opus 4.7 measured
LMArena WebDev: HTML1554Not measuredOnly Claude Opus 4.7 measured
LMArena WebDev: from an image1577Not measuredOnly Claude Opus 4.7 measured
Neither model has a result on the other 20 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for Claude Opus 4.7 and Grok 4.20
BenchmarkClaude Opus 4.7Grok 4.20Leader
AA Intelligence Index40.725.7Claude Opus 4.7
Epoch Capabilities Index156.8152.1Claude Opus 4.7
Agentic workLike-for-likePublic boards, shown as published, kept out of the index51
Agentic work benchmarks for Claude Opus 4.7 and Grok 4.20
BenchmarkClaude Opus 4.7Grok 4.20Leader
AA Agentic Index38.6Not measuredOnly Claude Opus 4.7 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 measured1052Only Grok 4.20 measured
Design Arena: agents building Godot gamesNot measured1089Only Grok 4.20 measured
Design Arena: HTML slidesNot measured1180Only Grok 4.20 measured
Finance Agent (Vals AI)51.5%28.5%Claude Opus 4.7
Tax Agent Bench (Vals AI)23.7%7.0%Claude Opus 4.7
Legal Research Bench (Vals AI)38.5%13.9%Claude Opus 4.7
Excel Modeling Benchmark (Vals AI)63.7%11.7%Claude Opus 4.7
τ²-Bench Telecom88.6%93.0%Grok 4.20
APEX-Agents49.2%Not measuredOnly Claude Opus 4.7 measured
OSWorld 2.018.2%Not measuredOnly Claude Opus 4.7 measured
PostTrainBench28.6%Not measuredOnly Claude Opus 4.7 measured
Vending-Bench 2$10,937$4,663Claude Opus 4.7
LMArena Search1230Not measuredOnly Claude Opus 4.7 measured
Neither model has a result on the other 24 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index70
Reasoning benchmarks for Claude Opus 4.7 and Grok 4.20
BenchmarkClaude Opus 4.7Grok 4.20Leader
GPQA Diamond90.2%88.6%Claude Opus 4.7
MMMU Pro (Vals AI)85.5%83.5%Claude Opus 4.7
GPQA Diamond (Artificial Analysis run)91.4%91.1%Claude Opus 4.7
Humanity's Last Exam (Artificial Analysis run)42.3%34.5%Claude Opus 4.7
GPQA Diamond (Epoch AI run)90.2%Not measuredOnly Claude Opus 4.7 measured
ARC-AGI93.5%89.5%Claude Opus 4.7
ARC-AGI-275.8%65.1%Claude Opus 4.7
SimpleBench61.7%Not measuredOnly Claude Opus 4.7 measured
Chess puzzles41.0%Not measuredOnly Claude Opus 4.7 measured
Mystery game puzzles28.0%Not measuredOnly Claude Opus 4.7 measured
EBR-bench19.0%Not measuredOnly Claude Opus 4.7 measured
LMArena Text: hard prompts1506Not measuredOnly Claude Opus 4.7 measured
LMArena Text: expert1521Not measuredOnly Claude Opus 4.7 measured
LMArena Text: hard prompts in English1508Not measuredOnly Claude Opus 4.7 measured
LMArena Vision: diagrams1336Not measuredOnly Claude Opus 4.7 measured
LMArena Vision: homework1337Not measuredOnly Claude Opus 4.7 measured
Kagi LLM Benchmark80.7%75.0%Claude Opus 4.7
Neither model has a result on the other 5 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index01
Math benchmarks for Claude Opus 4.7 and Grok 4.20
BenchmarkClaude Opus 4.7Grok 4.20Leader
AIME96.3%96.5%Grok 4.20
OTIS Mock AIME97.8%Not measuredOnly Claude Opus 4.7 measured
FrontierMath, tiers 1 to 370.2%Not measuredOnly Claude Opus 4.7 measured
FrontierMath, tier 431.7%Not measuredOnly Claude Opus 4.7 measured
ProofBench54.0%Not measuredOnly Claude Opus 4.7 measured
LMArena Text: math1498Not measuredOnly Claude Opus 4.7 measured
LMArena Text: mathematical work1509Not measuredOnly Claude Opus 4.7 measured
Neither model has a result on the other 6 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index70
Knowledge benchmarks for Claude Opus 4.7 and Grok 4.20
BenchmarkClaude Opus 4.7Grok 4.20Leader
MMLU Pro89.9%86.3%Claude Opus 4.7
LegalBench (Vals AI)85.3%77.7%Claude Opus 4.7
CaseLaw (Vals AI)68.4%54.4%Claude Opus 4.7
CorpFin (Vals AI)66.1%63.7%Claude Opus 4.7
TaxEval (Vals AI)75.3%74.1%Claude Opus 4.7
MortgageTax (Vals AI)70.3%45.4%Claude Opus 4.7
MedQA (Vals AI)Not measured94.5%Only Grok 4.20 measured
MedCode (Vals AI)54.9%32.2%Claude Opus 4.7
SimpleQA Verified51.7%Not measuredOnly Claude Opus 4.7 measured
LMArena Text: science1508Not measuredOnly Claude Opus 4.7 measured
LMArena Text: medicine and healthcare1495Not measuredOnly Claude Opus 4.7 measured
LMArena Text: legal and government1504Not measuredOnly Claude Opus 4.7 measured
LMArena Text: business and finance1490Not measuredOnly Claude Opus 4.7 measured
FACTS Benchmark Suite45.5%Not measuredOnly Claude Opus 4.7 measured
Neither model has a result on the other 4 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index8 boards, none shared
Web design benchmarks for Claude Opus 4.7 and Grok 4.20
BenchmarkClaude Opus 4.7Grok 4.20Leader
Design Arena: websitesNot measured1229Only Grok 4.20 measured
Design Arena: UI componentsNot measured1199Only Grok 4.20 measured
Design Arena: game devNot measured1192Only Grok 4.20 measured
Design Arena: data vizNot measured1217Only Grok 4.20 measured
Design Arena: 3DNot measured1193Only Grok 4.20 measured
Design Arena: all code categoriesNot measured1221Only Grok 4.20 measured
Design Arena: SVGNot measured1164Only Grok 4.20 measured
Design Arena: ASCII artNot measured1174Only Grok 4.20 measured
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index61
General benchmarks for Claude Opus 4.7 and Grok 4.20
BenchmarkClaude Opus 4.7Grok 4.20Leader
SAGE (Vals AI)56.1%38.2%Claude Opus 4.7
MedScribe (Vals AI)83.0%63.4%Claude Opus 4.7
Vals Multimodal Index67.4%39.1%Claude Opus 4.7
IFBench58.6%81.2%Grok 4.20
Long context reasoning (AA-LCR)78.7%69.0%Claude Opus 4.7
DTBench94.7%90.1%Claude Opus 4.7
LMCA52.2%38.7%Claude Opus 4.7
CL-benchNot measured22.2%Only Grok 4.20 measured
Furniture assembly33.3%Not measuredOnly Claude Opus 4.7 measured
ExploitBench26.5%Not measuredOnly Claude Opus 4.7 measured
CL-bench LifeNot measured11.9%Only Grok 4.20 measured
LMArena Text1490Not measuredOnly Claude Opus 4.7 measured
LMArena Text: instruction following1498Not measuredOnly Claude Opus 4.7 measured
LMArena Text: creative writing1486Not measuredOnly Claude Opus 4.7 measured
LMArena Vision1317Not measuredOnly Claude Opus 4.7 measured
LMArena Text: English1496Not measuredOnly Claude Opus 4.7 measured
LMArena Text: non-English1480Not measuredOnly Claude Opus 4.7 measured
LMArena Text: Chinese1531Not measuredOnly Claude Opus 4.7 measured
LMArena Text: German1495Not measuredOnly Claude Opus 4.7 measured
LMArena Text: Japanese1474Not measuredOnly Claude Opus 4.7 measured
LMArena Text: Korean1464Not measuredOnly Claude Opus 4.7 measured
LMArena Text: French1503Not measuredOnly Claude Opus 4.7 measured
LMArena Text: Spanish1494Not measuredOnly Claude Opus 4.7 measured
LMArena Text: Russian1494Not measuredOnly Claude Opus 4.7 measured
LMArena Text: Polish1489Not measuredOnly Claude Opus 4.7 measured
LMArena Text: multi-turn1505Not measuredOnly Claude Opus 4.7 measured
LMArena Text: longer queries1505Not measuredOnly Claude Opus 4.7 measured
LMArena Text: writing and language1492Not measuredOnly Claude Opus 4.7 measured
LMArena Text: entertainment and media1474Not measuredOnly Claude Opus 4.7 measured
LMArena Vision: English1322Not measuredOnly Claude Opus 4.7 measured
LMArena Vision: Chinese1371Not measuredOnly Claude Opus 4.7 measured
LMArena Vision: reading text1327Not measuredOnly Claude Opus 4.7 measured
LMArena Vision: humor1309Not measuredOnly Claude Opus 4.7 measured
LMArena Vision: recognizing things1278Not measuredOnly Claude Opus 4.7 measured
LMArena Vision: creative writing1326Not measuredOnly Claude Opus 4.7 measured
LMArena Document1495Not measuredOnly Claude Opus 4.7 measured
Neither model has a result on the other 10 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Claude Opus 4.7 and Grok 4.20
BenchmarkClaude Opus 4.7Grok 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 Opus 4.7$0.018Fits in one request
Grok 4.20$0.0025Fits in one request

Grok 4.20 costs less

Repository review

50K input + 3K output tokens

Claude Opus 4.7$0.325Fits in one request
Grok 4.20$0.070Fits in one request

Grok 4.20 costs less

Agent loop

200K input + 10K output tokens

Claude Opus 4.7$1.25Fits in one request
Grok 4.20$0.275Fits in one request

Grok 4.20 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 Opus 4.7 and Grok 4.20
SpecificationAnthropic Claude Opus 4.7SpaceXAI Grok 4.20
MakerAnthropicxAI
WeightsNo public weights listedNo public weights listed
ReleasedApril 16, 2026March 31, 2026
Context window1M2M
Input $/Mtok$5.00$1.25
Output $/Mtok$25.00$2.50
Coding index67.533.3
Independent measurements behind it42
Cost per solved task$2.95$0.72
SourceOpenRouter listingOpenRouter listing

Questions

Is Claude Opus 4.7 better than Grok 4.20 for coding?

Pick Claude Opus 4.7 for coding: it scores 67.5 on the Vibe Coding Index against 33.3 for Grok 4.20. Pick Grok 4.20 for output tokens 10.0x cheaper ($2.50 vs $25.00 per million) and a lower cost per solved task ($0.72 against $2.95).

Which is cheaper, Claude Opus 4.7 or Grok 4.20?

Claude Opus 4.7 costs $5.00 per million input tokens and $25.00 per million output tokens; Grok 4.20 costs $1.25 and $2.50. Per solved SWE-bench Verified task, Claude Opus 4.7 costs $2.95 and Grok 4.20 $0.72.

Which has the bigger context window, Claude Opus 4.7 or Grok 4.20?

Grok 4.20, with 2M tokens against 1M.

How many benchmarks is the Claude Opus 4.7 vs Grok 4.20 comparison based on?

38 benchmarks have a result for both models as of October 21, 2026. Claude Opus 4.7'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-opus-4-7-vs-grok-4-20" title="Claude Opus 4.7 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-opus-4-7-vs-grok-4-20">LLMBenchmark.ai, Claude Opus 4.7 vs Grok 4.20</a></p>