Claude Opus 4.7 vs Grok 4.7
Claude Opus 4.7 leads Grok 4.7 on coding, 67.5 to 66.7 on the Vibe Coding Index, and Grok 4.7 costs 4.2x less per output token ($6.00 vs $25.00 per million). Updated October 21, 2026; 71 benchmarks have a result for both.
Claude Opus 4.7 or Grok 4.7: which to pick
Claude Opus 4.7 and Grok 4.7 are level for coding, 67.5 against 66.7 on the Vibe Coding Index, so price and context decide.
Pick Grok 4.7 for output tokens 4.2x cheaper ($6.00 vs $25.00 per million) and work measured by LMArena WebDev or Vibe Code Bench (Vals AI), where it leads. Pick Claude Opus 4.7 for a larger context window (1M against 500K tokens) and work measured by LMArena Text: coding or LMArena Text: software and IT, where it leads.
- Shared results
- 71
- Claude Opus 4.7 only
- 32
- Grok 4.7 only
- 28
- 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
No call
Level: 67.5 against 66.7, inside 2 points.
4 and 5 benchmarks behind the scores
Intelligence
AA Intelligence Index
Grok 4.7
Grok 4.7 leads, 46.4 against 40.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
No call
Only Claude Opus 4.7 has a GPQA Diamond result, 90.2%.
Directional only
Math
AIME
No call
Only Claude Opus 4.7 has a AIME result, 96.3%.
Directional only
Knowledge
MMLU Pro
No call
Only Claude Opus 4.7 has a MMLU Pro result, 89.9%.
Directional only
Web design
Design Arena: websites
No call
Only Grok 4.7 has a Design Arena: websites result, 1254.
Directional only
General
Vals Index
No call
Only Grok 4.7 has a Vals Index result, 58.6%.
Directional only
Long documents
Listed context window
Claude Opus 4.7
Claude Opus 4.7 takes 1M tokens against 500K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Grok 4.7
Claude Opus 4.7 $0.018, Grok 4.7 $0.0050 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
No call
Only Claude Opus 4.7 has the number, $2.95.
Directional only
At a glance
- Coding index
- Claude Opus 4.7 67.5 from 4 benchmarks, Grok 4.7 66.7 from 5 benchmarks.
- Widest category
- Math, 14.4 points apart on average over 6 shared benchmarks.
- Widest single gap
- ProofBench: Claude Opus 4.7 54.0% against Grok 4.7 26.0%, 28.0 points apart on a 0 to 100 scale.
- Output price
- Claude Opus 4.7 $25.00 against Grok 4.7 $6.00 per million output tokens, 4.2x apart.
- Context window
- Claude Opus 4.7 takes 1M 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 Opus 4.7 | Bars | Grok 4.7 | Ties |
|---|---|---|---|---|
| Coding | 2 | 9 | ||
| Intelligence | 1 | 1 | ||
| Agentic work | 1 | 5 | ||
| Reasoning | 7 | 3 | 1 tie | |
| Math | 5 | 1 | ||
| Knowledge | 6 | 1 | ||
| General | 25 | 3 | ||
| All shared boards | 47 | 23 | 1 tie |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index29
| Benchmark | Claude Opus 4.7 | Grok 4.7 | Leader |
|---|---|---|---|
| LiveBench coding | Not measured | 84.5% | Only Grok 4.7 measured |
| LMArena WebDev | 1558 | 1637 | Grok 4.7 |
| AA Coding Index | 73.6 | Not measured | Only Claude Opus 4.7 measured |
| LiveCodeBench (Vals AI) | 85.1% | Not measured | Only Claude Opus 4.7 measured |
| SWE-bench Verified (Vals AI) | 82.0% | Not measured | Only Claude Opus 4.7 measured |
| Terminal-Bench 4 (Vals AI) | Not measured | 28.8% | Only Grok 4.7 measured |
| Vibe Code Bench (Vals AI) | 71.0% | 86.2% | Grok 4.7 |
| Code migration (Vals AI) | 43.9% | 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) | 68.5% | 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 Hard (Artificial Analysis run) | 54.5% | Not measured | Only Claude Opus 4.7 measured |
| Terminal-Bench | 80.2% | Not measured | Only Claude Opus 4.7 measured |
| FrontierCode | 38.5% | 47.6% | Grok 4.7 |
| FrontierSWE | Not measured | 29.5% | Only Grok 4.7 measured |
| GSO-Bench | 44.1% | Not measured | Only Claude Opus 4.7 measured |
| WeirdML | 76.4% | Not measured | Only Claude Opus 4.7 measured |
| MirrorCode | 31.1% | Not measured | Only Claude Opus 4.7 measured |
| LMArena Text: coding | 1519 | 1432 | Claude Opus 4.7 |
| LMArena Text: software and IT | 1516 | 1421 | Claude Opus 4.7 |
| LMArena WebDev: React | 1560 | 1663 | Grok 4.7 |
| LMArena WebDev: HTML | 1554 | 1627 | Grok 4.7 |
| LMArena WebDev: from an image | 1577 | 1586 | Grok 4.7 |
| Neither model has a result on the other 13 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index11
| Benchmark | Claude Opus 4.7 | Grok 4.7 | Leader |
|---|---|---|---|
| AA Intelligence Index | 40.7 | 46.4 | Grok 4.7 |
| Epoch Capabilities Index | 156.8 | 154.4 | Claude Opus 4.7 |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index15
| Benchmark | Claude Opus 4.7 | Grok 4.7 | Leader |
|---|---|---|---|
| AA Agentic Index | 38.6 | Not measured | Only Claude Opus 4.7 measured |
| LiveBench research | Not measured | 86.4% | Only Grok 4.7 measured |
| LiveBench browser | Not measured | 60.0% | Only Grok 4.7 measured |
| LiveBench long agentic | Not measured | 50.1% | Only Grok 4.7 measured |
| SREBench (Vals AI) | Not measured | 3.8% | Only Grok 4.7 measured |
| Finance Agent (Vals AI) | 51.5% | 52.3% | Grok 4.7 |
| Tax Agent Bench (Vals AI) | 23.7% | 34.2% | Grok 4.7 |
| Legal Research Bench (Vals AI) | 38.5% | 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) | 63.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 |
| τ²-Bench Telecom | 88.6% | Not measured | Only Claude Opus 4.7 measured |
| APEX-Agents | 49.2% | 54.6% | Grok 4.7 |
| 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 | $10,537 | Claude Opus 4.7 |
| LMArena Search | 1230 | Not measured | Only Claude Opus 4.7 measured |
| Neither model has a result on the other 21 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index73
| Benchmark | Claude Opus 4.7 | Grok 4.7 | Leader |
|---|---|---|---|
| GPQA Diamond | 90.2% | Not measured | Only Claude Opus 4.7 measured |
| LiveBench reasoning | Not measured | 82.7% | Only Grok 4.7 measured |
| MysteryMechanism (Vals AI) | Not measured | 25.2% | Only Grok 4.7 measured |
| MMMU Pro (Vals AI) | 85.5% | Not measured | Only Claude Opus 4.7 measured |
| GPQA Diamond (Artificial Analysis run) | 91.4% | Not measured | Only Claude Opus 4.7 measured |
| Humanity's Last Exam (Artificial Analysis run) | 42.3% | 43.1% | Grok 4.7 |
| GPQA Diamond (Epoch AI run) | 90.2% | 92.7% | Grok 4.7 |
| ARC-AGI | 93.5% | 90.2% | Claude Opus 4.7 |
| ARC-AGI-2 | 75.8% | 61.4% | Claude Opus 4.7 |
| SimpleBench | 61.7% | Not measured | Only Claude Opus 4.7 measured |
| Chess puzzles | 41.0% | 41.0% | Tie |
| Mystery game puzzles | 28.0% | 29.0% | Grok 4.7 |
| EBR-bench | 19.0% | Not measured | Only Claude Opus 4.7 measured |
| LMArena Text: hard prompts | 1506 | 1415 | Claude Opus 4.7 |
| LMArena Text: expert | 1521 | 1439 | Claude Opus 4.7 |
| LMArena Text: hard prompts in English | 1508 | 1427 | Claude Opus 4.7 |
| LMArena Vision: diagrams | 1336 | 1254 | Claude Opus 4.7 |
| LMArena Vision: homework | 1337 | 1309 | Claude Opus 4.7 |
| Kagi LLM Benchmark | 80.7% | Not measured | Only Claude Opus 4.7 measured |
| Neither model has a result on the other 3 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index51
| Benchmark | Claude Opus 4.7 | Grok 4.7 | Leader |
|---|---|---|---|
| AIME | 96.3% | Not measured | Only Claude Opus 4.7 measured |
| OTIS Mock AIME | 97.8% | 98.1% | Grok 4.7 |
| FrontierMath, tiers 1 to 3 | 70.2% | 53.0% | Claude Opus 4.7 |
| FrontierMath, tier 4 | 31.7% | 17.1% | Claude Opus 4.7 |
| ProofBench | 54.0% | 26.0% | Claude Opus 4.7 |
| LMArena Text: math | 1498 | 1414 | Claude Opus 4.7 |
| LMArena Text: mathematical work | 1509 | 1435 | Claude Opus 4.7 |
| Neither model has a result on the other 6 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index61
| Benchmark | Claude Opus 4.7 | Grok 4.7 | Leader |
|---|---|---|---|
| MMLU Pro | 89.9% | Not measured | Only Claude Opus 4.7 measured |
| LegalBench (Vals AI) | 85.3% | 84.4% | Claude Opus 4.7 |
| CaseLaw (Vals AI) | 68.4% | Not measured | Only Claude Opus 4.7 measured |
| CorpFin (Vals AI) | 66.1% | Not measured | Only Claude Opus 4.7 measured |
| TaxEval (Vals AI) | 75.3% | Not measured | Only Claude Opus 4.7 measured |
| MortgageTax (Vals AI) | 70.3% | Not measured | Only Claude Opus 4.7 measured |
| MedCode (Vals AI) | 54.9% | 49.5% | Claude Opus 4.7 |
| SimpleQA Verified | 51.7% | 56.0% | Grok 4.7 |
| LMArena Text: science | 1508 | 1419 | Claude Opus 4.7 |
| LMArena Text: medicine and healthcare | 1495 | 1395 | Claude Opus 4.7 |
| LMArena Text: legal and government | 1504 | 1423 | Claude Opus 4.7 |
| LMArena Text: business and finance | 1490 | 1389 | Claude Opus 4.7 |
| FACTS Benchmark Suite | 45.5% | Not measured | Only Claude Opus 4.7 measured |
| Neither model has a result on the other 5 boards here | |||
Web designDirectional onlyPublic boards, shown as published, kept out of the index7 boards, none shared
| Benchmark | Claude Opus 4.7 | Grok 4.7 | Leader |
|---|---|---|---|
| Design Arena: websites | Not measured | 1254 | Only Grok 4.7 measured |
| Design Arena: UI components | Not measured | 1275 | Only Grok 4.7 measured |
| Design Arena: game dev | Not measured | 1313 | Only Grok 4.7 measured |
| Design Arena: data viz | Not measured | 1235 | Only Grok 4.7 measured |
| Design Arena: 3D | Not measured | 1270 | Only Grok 4.7 measured |
| Design Arena: all code categories | Not measured | 1271 | Only Grok 4.7 measured |
| LiveBench design | Not measured | 78.0% | Only Grok 4.7 measured |
| Neither model has a result on the other 2 boards here | |||
GeneralLike-for-likePublic boards, shown as published, kept out of the index253
| Benchmark | Claude Opus 4.7 | Grok 4.7 | Leader |
|---|---|---|---|
| Vals Index | Not measured | 58.6% | Only Grok 4.7 measured |
| LiveBench data analysis | Not measured | 76.9% | Only Grok 4.7 measured |
| Public Benefits Bench (Vals AI) | Not measured | 65.6% | Only Grok 4.7 measured |
| SAGE (Vals AI) | 56.1% | 40.8% | Claude Opus 4.7 |
| MedScribe (Vals AI) | 83.0% | 89.4% | Grok 4.7 |
| Vals Multimodal Index | 67.4% | Not measured | Only Claude Opus 4.7 measured |
| IFBench | 58.6% | Not measured | Only Claude Opus 4.7 measured |
| Long context reasoning (AA-LCR) | 78.7% | 80.0% | Grok 4.7 |
| DTBench | 94.7% | 96.0% | Grok 4.7 |
| LMCA | 52.2% | 49.4% | Claude Opus 4.7 |
| Furniture assembly | 33.3% | 20.8% | Claude Opus 4.7 |
| ExploitBench | 26.5% | Not measured | Only Claude Opus 4.7 measured |
| LMArena Text | 1490 | 1399 | Claude Opus 4.7 |
| LMArena Text: instruction following | 1498 | 1406 | Claude Opus 4.7 |
| LMArena Text: creative writing | 1486 | 1381 | Claude Opus 4.7 |
| LMArena Vision | 1317 | 1231 | Claude Opus 4.7 |
| LMArena Text: English | 1496 | 1411 | Claude Opus 4.7 |
| LMArena Text: non-English | 1480 | 1386 | Claude Opus 4.7 |
| LMArena Text: Chinese | 1531 | 1449 | Claude Opus 4.7 |
| LMArena Text: German | 1495 | 1366 | Claude Opus 4.7 |
| LMArena Text: Japanese | 1474 | 1359 | Claude Opus 4.7 |
| LMArena Text: Korean | 1464 | 1383 | Claude Opus 4.7 |
| LMArena Text: French | 1503 | 1431 | Claude Opus 4.7 |
| LMArena Text: Spanish | 1494 | 1406 | Claude Opus 4.7 |
| LMArena Text: Russian | 1494 | 1399 | Claude Opus 4.7 |
| LMArena Text: Polish | 1489 | 1420 | Claude Opus 4.7 |
| LMArena Text: multi-turn | 1505 | 1394 | Claude Opus 4.7 |
| LMArena Text: longer queries | 1505 | 1416 | Claude Opus 4.7 |
| LMArena Text: writing and language | 1492 | 1394 | Claude Opus 4.7 |
| LMArena Text: entertainment and media | 1474 | 1376 | Claude Opus 4.7 |
| LMArena Vision: English | 1322 | 1229 | Claude Opus 4.7 |
| LMArena Vision: Chinese | 1371 | 1250 | Claude Opus 4.7 |
| LMArena Vision: reading text | 1327 | 1241 | Claude Opus 4.7 |
| 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 | 1217 | Claude Opus 4.7 |
| LMArena Document | 1495 | Not measured | Only Claude Opus 4.7 measured |
| Neither model has a result on the other 9 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | Claude Opus 4.7 | 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
Grok 4.7 costs less
Repository review
50K input + 3K output tokens
Grok 4.7 costs less
Agent loop
200K input + 10K output tokens
Grok 4.7 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.7 |
|---|---|---|
| Maker | Anthropic | xAI |
| Weights | No public weights listed | No public weights listed |
| Released | April 16, 2026 | September 21, 2026 |
| Context window | 1M | 500K |
| Input $/Mtok | $5.00 | $2.00 |
| Output $/Mtok | $25.00 | $6.00 |
| Coding index | 67.5 | 66.7 |
| Independent measurements behind it | 4 | 5 |
| Cost per solved task | $2.95 | Not computable |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Claude Opus 4.7 better than Grok 4.7 for coding?
Claude Opus 4.7 and Grok 4.7 are level for coding, 67.5 against 66.7 on the Vibe Coding Index, so price and context decide. Pick Grok 4.7 for output tokens 4.2x cheaper ($6.00 vs $25.00 per million) and work measured by LMArena WebDev or Vibe Code Bench (Vals AI), where it leads. Pick Claude Opus 4.7 for a larger context window (1M against 500K tokens) and work measured by LMArena Text: coding or LMArena Text: software and IT, where it leads.
Which is cheaper, Claude Opus 4.7 or Grok 4.7?
Claude Opus 4.7 costs $5.00 per million input tokens and $25.00 per million output tokens; Grok 4.7 costs $2.00 and $6.00. Cost per solved task is known for Claude Opus 4.7 only.
Which has the bigger context window, Claude Opus 4.7 or Grok 4.7?
Claude Opus 4.7, with 1M tokens against 500K.
How many benchmarks is the Claude Opus 4.7 vs Grok 4.7 comparison based on?
71 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.7's on 5. Where only one model has a result, the page says so instead of naming a winner.