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.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.
Coding
Vibe Coding Index, six public coding benchmarks
Claude Opus 4.7
Claude Opus 4.7 scores 67.5 against 33.3.
4 and 2 benchmarks behind the scores
Intelligence
AA Intelligence Index
Claude Opus 4.7
Claude Opus 4.7 leads, 40.7 against 25.7.
Same board, both measured
Agentic work
AA Agentic Index
No call
Only Claude Opus 4.7 has a AA Agentic Index result, 38.6.
Directional only
Reasoning
GPQA Diamond
Claude Opus 4.7
Claude Opus 4.7 leads, 90.2% against 88.6%.
Same board, both measured
Math
AIME
Grok 4.20
Grok 4.20 leads, 96.5% against 96.3%.
Same board, both measured
Knowledge
MMLU Pro
Claude Opus 4.7
Claude Opus 4.7 leads, 89.9% against 86.3%.
Same board, both measured
Web design
Design Arena: websites
No call
Only Grok 4.20 has a Design Arena: websites result, 1229.
Directional only
Long documents
Listed context window
Grok 4.20
Grok 4.20 takes 2M tokens against 1M.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Grok 4.20
Claude Opus 4.7 $0.018, Grok 4.20 $0.0025 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
Grok 4.20
Claude Opus 4.7 $2.95, Grok 4.20 $0.72.
Published attempt cost and pass rate
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.
| Category | Claude Opus 4.7 | Bars | Grok 4.20 | Ties |
|---|---|---|---|---|
| Coding | 8 | 0 | ||
| Intelligence | 2 | 0 | ||
| Agentic work | 5 | 1 | ||
| Reasoning | 7 | 0 | ||
| Math | 0 | 1 | ||
| Knowledge | 7 | 0 | ||
| General | 6 | 1 | ||
| All shared boards | 35 | 3 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index80
| Benchmark | Claude Opus 4.7 | Grok 4.20 | Leader |
|---|---|---|---|
| LMArena WebDev | 1558 | Not measured | Only Claude Opus 4.7 measured |
| AA Coding Index | 73.6 | Not measured | Only 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 measured | Only 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-Bench | 80.2% | 57.3% | Claude Opus 4.7 |
| FrontierCode | 38.5% | Not measured | Only Claude Opus 4.7 measured |
| GSO-Bench | 44.1% | Not measured | Only Claude Opus 4.7 measured |
| WeirdML | 76.4% | 52.3% | Claude Opus 4.7 |
| MirrorCode | 31.1% | Not measured | Only Claude Opus 4.7 measured |
| LMArena Text: coding | 1519 | Not measured | Only Claude Opus 4.7 measured |
| LMArena Text: software and IT | 1516 | Not measured | Only Claude Opus 4.7 measured |
| LMArena WebDev: React | 1560 | Not measured | Only Claude Opus 4.7 measured |
| LMArena WebDev: HTML | 1554 | Not measured | Only Claude Opus 4.7 measured |
| LMArena WebDev: from an image | 1577 | Not measured | Only 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
| Benchmark | Claude Opus 4.7 | Grok 4.20 | Leader |
|---|---|---|---|
| AA Intelligence Index | 40.7 | 25.7 | Claude Opus 4.7 |
| Epoch Capabilities Index | 156.8 | 152.1 | Claude Opus 4.7 |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index51
| Benchmark | Claude Opus 4.7 | Grok 4.20 | Leader |
|---|---|---|---|
| AA Agentic Index | 38.6 | Not measured | Only Claude Opus 4.7 measured |
| Design Arena: agents building web apps | Not measured | 1144 | Only Grok 4.20 measured |
| Design Arena: agents building full-stack apps | Not measured | 1054 | Only Grok 4.20 measured |
| Design Arena: agents building mobile apps | Not measured | 1090 | Only Grok 4.20 measured |
| Design Arena: agents building Android apps | Not measured | 1052 | Only Grok 4.20 measured |
| Design Arena: agents building Godot games | Not measured | 1089 | Only Grok 4.20 measured |
| Design Arena: HTML slides | Not measured | 1180 | Only 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 Telecom | 88.6% | 93.0% | Grok 4.20 |
| APEX-Agents | 49.2% | Not measured | Only Claude Opus 4.7 measured |
| OSWorld 2.0 | 18.2% | Not measured | Only Claude Opus 4.7 measured |
| PostTrainBench | 28.6% | Not measured | Only Claude Opus 4.7 measured |
| Vending-Bench 2 | $10,937 | $4,663 | Claude Opus 4.7 |
| LMArena Search | 1230 | Not measured | Only 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
| Benchmark | Claude Opus 4.7 | Grok 4.20 | Leader |
|---|---|---|---|
| GPQA Diamond | 90.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 measured | Only Claude Opus 4.7 measured |
| ARC-AGI | 93.5% | 89.5% | Claude Opus 4.7 |
| ARC-AGI-2 | 75.8% | 65.1% | Claude Opus 4.7 |
| SimpleBench | 61.7% | Not measured | Only Claude Opus 4.7 measured |
| Chess puzzles | 41.0% | Not measured | Only Claude Opus 4.7 measured |
| Mystery game puzzles | 28.0% | Not measured | Only Claude Opus 4.7 measured |
| EBR-bench | 19.0% | Not measured | Only Claude Opus 4.7 measured |
| LMArena Text: hard prompts | 1506 | Not measured | Only Claude Opus 4.7 measured |
| LMArena Text: expert | 1521 | Not measured | Only Claude Opus 4.7 measured |
| LMArena Text: hard prompts in English | 1508 | Not measured | Only Claude Opus 4.7 measured |
| LMArena Vision: diagrams | 1336 | Not measured | Only Claude Opus 4.7 measured |
| LMArena Vision: homework | 1337 | Not measured | Only Claude Opus 4.7 measured |
| Kagi LLM Benchmark | 80.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
| Benchmark | Claude Opus 4.7 | Grok 4.20 | Leader |
|---|---|---|---|
| AIME | 96.3% | 96.5% | Grok 4.20 |
| OTIS Mock AIME | 97.8% | Not measured | Only Claude Opus 4.7 measured |
| FrontierMath, tiers 1 to 3 | 70.2% | Not measured | Only Claude Opus 4.7 measured |
| FrontierMath, tier 4 | 31.7% | Not measured | Only Claude Opus 4.7 measured |
| ProofBench | 54.0% | Not measured | Only Claude Opus 4.7 measured |
| LMArena Text: math | 1498 | Not measured | Only Claude Opus 4.7 measured |
| LMArena Text: mathematical work | 1509 | Not measured | Only 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
| Benchmark | Claude Opus 4.7 | Grok 4.20 | Leader |
|---|---|---|---|
| MMLU Pro | 89.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 measured | 94.5% | Only Grok 4.20 measured |
| MedCode (Vals AI) | 54.9% | 32.2% | Claude Opus 4.7 |
| SimpleQA Verified | 51.7% | Not measured | Only Claude Opus 4.7 measured |
| LMArena Text: science | 1508 | Not measured | Only Claude Opus 4.7 measured |
| LMArena Text: medicine and healthcare | 1495 | Not measured | Only Claude Opus 4.7 measured |
| LMArena Text: legal and government | 1504 | Not measured | Only Claude Opus 4.7 measured |
| LMArena Text: business and finance | 1490 | Not measured | Only Claude Opus 4.7 measured |
| FACTS Benchmark Suite | 45.5% | Not measured | Only 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
| Benchmark | Claude Opus 4.7 | Grok 4.20 | Leader |
|---|---|---|---|
| Design Arena: websites | Not measured | 1229 | Only Grok 4.20 measured |
| Design Arena: UI components | Not measured | 1199 | Only Grok 4.20 measured |
| Design Arena: game dev | Not measured | 1192 | Only Grok 4.20 measured |
| Design Arena: data viz | Not measured | 1217 | Only Grok 4.20 measured |
| Design Arena: 3D | Not measured | 1193 | Only Grok 4.20 measured |
| Design Arena: all code categories | Not measured | 1221 | Only Grok 4.20 measured |
| Design Arena: SVG | Not measured | 1164 | Only Grok 4.20 measured |
| Design Arena: ASCII art | Not measured | 1174 | Only 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
| Benchmark | Claude Opus 4.7 | Grok 4.20 | Leader |
|---|---|---|---|
| SAGE (Vals AI) | 56.1% | 38.2% | Claude Opus 4.7 |
| MedScribe (Vals AI) | 83.0% | 63.4% | Claude Opus 4.7 |
| Vals Multimodal Index | 67.4% | 39.1% | Claude Opus 4.7 |
| IFBench | 58.6% | 81.2% | Grok 4.20 |
| Long context reasoning (AA-LCR) | 78.7% | 69.0% | Claude Opus 4.7 |
| DTBench | 94.7% | 90.1% | Claude Opus 4.7 |
| LMCA | 52.2% | 38.7% | Claude Opus 4.7 |
| CL-bench | Not measured | 22.2% | Only Grok 4.20 measured |
| Furniture assembly | 33.3% | Not measured | Only Claude Opus 4.7 measured |
| ExploitBench | 26.5% | Not measured | Only Claude Opus 4.7 measured |
| CL-bench Life | Not measured | 11.9% | Only Grok 4.20 measured |
| LMArena Text | 1490 | Not measured | Only Claude Opus 4.7 measured |
| LMArena Text: instruction following | 1498 | Not measured | Only Claude Opus 4.7 measured |
| LMArena Text: creative writing | 1486 | Not measured | Only Claude Opus 4.7 measured |
| LMArena Vision | 1317 | Not measured | Only Claude Opus 4.7 measured |
| LMArena Text: English | 1496 | Not measured | Only Claude Opus 4.7 measured |
| LMArena Text: non-English | 1480 | Not measured | Only Claude Opus 4.7 measured |
| LMArena Text: Chinese | 1531 | Not measured | Only Claude Opus 4.7 measured |
| LMArena Text: German | 1495 | Not measured | Only Claude Opus 4.7 measured |
| LMArena Text: Japanese | 1474 | Not measured | Only Claude Opus 4.7 measured |
| LMArena Text: Korean | 1464 | Not measured | Only Claude Opus 4.7 measured |
| LMArena Text: French | 1503 | Not measured | Only Claude Opus 4.7 measured |
| LMArena Text: Spanish | 1494 | Not measured | Only Claude Opus 4.7 measured |
| LMArena Text: Russian | 1494 | Not measured | Only Claude Opus 4.7 measured |
| LMArena Text: Polish | 1489 | Not measured | Only Claude Opus 4.7 measured |
| LMArena Text: multi-turn | 1505 | Not measured | Only Claude Opus 4.7 measured |
| LMArena Text: longer queries | 1505 | Not measured | Only Claude Opus 4.7 measured |
| LMArena Text: writing and language | 1492 | Not measured | Only Claude Opus 4.7 measured |
| LMArena Text: entertainment and media | 1474 | Not measured | Only Claude Opus 4.7 measured |
| LMArena Vision: English | 1322 | Not measured | Only Claude Opus 4.7 measured |
| LMArena Vision: Chinese | 1371 | Not measured | Only Claude Opus 4.7 measured |
| LMArena Vision: reading text | 1327 | Not measured | Only Claude Opus 4.7 measured |
| LMArena Vision: humor | 1309 | Not measured | Only Claude Opus 4.7 measured |
| LMArena Vision: recognizing things | 1278 | Not measured | Only Claude Opus 4.7 measured |
| LMArena Vision: creative writing | 1326 | Not measured | Only Claude Opus 4.7 measured |
| LMArena Document | 1495 | Not measured | Only 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
| Benchmark | Claude Opus 4.7 | Grok 4.20 | 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
Grok 4.20 costs less
Repository review
50K input + 3K output tokens
Grok 4.20 costs less
Agent loop
200K input + 10K output tokens
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.
| Specification | Anthropic Claude Opus 4.7 | SpaceXAI Grok 4.20 |
|---|---|---|
| Maker | Anthropic | xAI |
| Weights | No public weights listed | No public weights listed |
| Released | April 16, 2026 | March 31, 2026 |
| Context window | 1M | 2M |
| Input $/Mtok | $5.00 | $1.25 |
| Output $/Mtok | $25.00 | $2.50 |
| Coding index | 67.5 | 33.3 |
| Independent measurements behind it | 4 | 2 |
| Cost per solved task | $2.95 | $0.72 |
| Source | OpenRouter listing | OpenRouter 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.