Claude Opus 4.8 vs Grok 4.7
Grok 4.7 leads Claude Opus 4.8 on coding, 66.7 to 65.0 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 22, 2026; 87 benchmarks have a result for both.
Claude Opus 4.8 or Grok 4.7: which to pick
Claude Opus 4.8 and Grok 4.7 are level for coding, 65.0 against 66.7 on the Vibe Coding Index, so price and context decide.
Pick Claude Opus 4.8 for a larger context window (1M against 500K tokens) and work measured by Code migration (Vals AI) or ProgramBench (Vals AI), where it leads. Pick Grok 4.7 for output tokens 4.2x cheaper ($6.00 vs $25.00 per million) and work measured by LiveBench coding or LMArena WebDev, where it leads.
- Shared results
- 87
- Claude Opus 4.8 only
- 43
- Grok 4.7 only
- 12
- 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.
Coding
Vibe Coding Index, six public coding benchmarks
No call
Level: 65.0 against 66.7, inside 2 points.
6 and 5 benchmarks behind the scores
Intelligence
AA Intelligence Index
Grok 4.7
Grok 4.7 leads, 46.4 against 41.8.
Same board, both measured
Agentic work
AA Agentic Index
No call
Only Claude Opus 4.8 has a AA Agentic Index result, 41.9.
Directional only
Reasoning
GPQA Diamond
No call
Only Claude Opus 4.8 has a GPQA Diamond result, 92.4%.
Directional only
Knowledge
MMLU Pro
No call
Only Claude Opus 4.8 has a MMLU Pro result, 89.6%.
Directional only
Web design
Design Arena: websites
Claude Opus 4.8
Claude Opus 4.8 leads, 1258 against 1255.
Same board, both measured
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.8
Claude Opus 4.8 takes 1M tokens against 500K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Grok 4.7
Claude Opus 4.8 $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.8 has the number, $2.17.
Directional only
At a glance
- Coding index
- Claude Opus 4.8 65.0 from 6 benchmarks, Grok 4.7 66.7 from 5 benchmarks.
- Widest category
- Math, 22.0 points apart on average over 6 shared benchmarks.
- Widest single gap
- ProofBench: Claude Opus 4.8 69.0% against Grok 4.7 26.0%, 43.0 points apart on a 0 to 100 scale.
- Output price
- Claude Opus 4.8 $25.00 against Grok 4.7 $6.00 per million output tokens, 4.2x apart.
- Context window
- Claude Opus 4.8 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.8 | Bars | Grok 4.7 | Ties |
|---|---|---|---|---|
| Coding | 4 | 9 | ||
| Intelligence | 1 | 1 | ||
| Agentic work | 3 | 7 | ||
| Reasoning | 11 | 1 | ||
| Math | 6 | 0 | ||
| Knowledge | 5 | 2 | ||
| Web design | 3 | 4 | ||
| General | 26 | 4 | ||
| All shared boards | 59 | 28 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index49
| Benchmark | Claude Opus 4.8 | Grok 4.7 | Leader |
|---|---|---|---|
| LiveBench coding | 77.3% | 84.5% | Grok 4.7 |
| LMArena WebDev | 1556 | 1637 | Grok 4.7 |
| AA Coding Index | 74.3 | Not measured | Only Claude Opus 4.8 measured |
| LiveCodeBench (Vals AI) | 87.8% | Not measured | Only Claude Opus 4.8 measured |
| SWE-bench Verified (Vals AI) | 88.6% | Not measured | Only Claude Opus 4.8 measured |
| Terminal-Bench 4 (Vals AI) | 23.2% | 28.8% | Grok 4.7 |
| Vibe Code Bench (Vals AI) | 82.7% | 86.2% | Grok 4.7 |
| Code migration (Vals AI) | 47.3% | 44.8% | Claude Opus 4.8 |
| ProgramBench (Vals AI) | 1.0% | 0.5% | Claude Opus 4.8 |
| IOI (Vals AI) | Not measured | 57.7% | Only Grok 4.7 measured |
| Terminal-Bench 2.1 (Vals AI) | 71.9% | 73.4% | Grok 4.7 |
| SWE-bench Multimodal (Vals AI) | Not measured | 42.9% | Only Grok 4.7 measured |
| SkillsBench (Vals AI) | 59.2% | Not measured | Only Claude Opus 4.8 measured |
| CyberBench (Vals AI) | Not measured | 69.5% | Only Grok 4.7 measured |
| SciCode | 54.4% | 57.8% | Grok 4.7 |
| Terminal-Bench Hard (Artificial Analysis run) | 58.3% | Not measured | Only Claude Opus 4.8 measured |
| FrontierCode | 46.5% | 47.6% | Grok 4.7 |
| FrontierSWE | Not measured | 29.5% | Only Grok 4.7 measured |
| GSO-Bench | 47.1% | Not measured | Only Claude Opus 4.8 measured |
| WeirdML | 82.9% | Not measured | Only Claude Opus 4.8 measured |
| LMArena Text: coding | 1490 | 1432 | Claude Opus 4.8 |
| LMArena Text: software and IT | 1488 | 1421 | Claude Opus 4.8 |
| LMArena WebDev: React | 1557 | 1663 | Grok 4.7 |
| LMArena WebDev: HTML | 1543 | 1627 | Grok 4.7 |
| LMArena WebDev: from an image | Not measured | 1586 | Only Grok 4.7 measured |
| SciCode | 12.3% | Not measured | Only Claude Opus 4.8 measured |
| 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.8 | Grok 4.7 | Leader |
|---|---|---|---|
| AA Intelligence Index | 41.8 | 46.4 | Grok 4.7 |
| Epoch Capabilities Index | 159.0 | 154.4 | Claude Opus 4.8 |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index37
| Benchmark | Claude Opus 4.8 | Grok 4.7 | Leader |
|---|---|---|---|
| AA Agentic Index | 41.9 | Not measured | Only Claude Opus 4.8 measured |
| Design Arena: agents building web apps | 1233 | Not measured | Only Claude Opus 4.8 measured |
| Design Arena: agents building full-stack apps | 1249 | Not measured | Only Claude Opus 4.8 measured |
| Design Arena: agents building mobile apps | 1222 | Not measured | Only Claude Opus 4.8 measured |
| Design Arena: agents building Android apps | 1233 | Not measured | Only Claude Opus 4.8 measured |
| Design Arena: agents building Godot games | 1231 | Not measured | Only Claude Opus 4.8 measured |
| Design Arena: agents building games | 1239 | Not measured | Only Claude Opus 4.8 measured |
| Design Arena: HTML slides | 1171 | Not measured | Only Claude Opus 4.8 measured |
| Design Arena: PowerPoint slides | 1202 | Not measured | Only Claude Opus 4.8 measured |
| Design Arena: spreadsheets | 1303 | Not measured | Only Claude Opus 4.8 measured |
| LiveBench research | 81.8% | 86.4% | Grok 4.7 |
| LiveBench browser | 96.0% | 60.0% | Claude Opus 4.8 |
| LiveBench long agentic | 48.3% | 50.1% | Grok 4.7 |
| SREBench (Vals AI) | Not measured | 3.8% | Only Grok 4.7 measured |
| Finance Agent (Vals AI) | 53.9% | 52.3% | Claude Opus 4.8 |
| Tax Agent Bench (Vals AI) | 30.0% | 34.2% | Grok 4.7 |
| Legal Research Bench (Vals AI) | 43.8% | 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) | 69.4% | 67.0% | Claude Opus 4.8 |
| BioMysteryBench (Vals AI) | Not measured | 69.3% | Only Grok 4.7 measured |
| Terminal-Bench-Science (Vals AI) | 4.3% | 10.0% | Grok 4.7 |
| Vals Science Index | Not measured | 34.8% | Only Grok 4.7 measured |
| Time Horizon Index (Vals AI) | 11.8% | Not measured | Only Claude Opus 4.8 measured |
| Robo-bench (Vals AI) | Not measured | 0.2% | Only Grok 4.7 measured |
| τ²-Bench Telecom | 94.4% | Not measured | Only Claude Opus 4.8 measured |
| APEX-Agents | 48.9% | 54.6% | Grok 4.7 |
| Remote Labor Index | 8.3% | Not measured | Only Claude Opus 4.8 measured |
| OSWorld 2.0 | 20.6% | Not measured | Only Claude Opus 4.8 measured |
| DeepResearch Bench | 50.2% | Not measured | Only Claude Opus 4.8 measured |
| PostTrainBench | 33.8% | Not measured | Only Claude Opus 4.8 measured |
| Vending-Bench 2 | $5,787 | $10,537 | Grok 4.7 |
| LMArena Search | 1204 | Not measured | Only Claude Opus 4.8 measured |
| Neither model has a result on the other 9 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index111
| Benchmark | Claude Opus 4.8 | Grok 4.7 | Leader |
|---|---|---|---|
| GPQA Diamond | 92.4% | Not measured | Only Claude Opus 4.8 measured |
| LiveBench reasoning | 89.2% | 82.7% | Claude Opus 4.8 |
| MysteryMechanism (Vals AI) | Not measured | 25.2% | Only Grok 4.7 measured |
| MMMU Pro (Vals AI) | 86.6% | Not measured | Only Claude Opus 4.8 measured |
| GPQA Diamond (Artificial Analysis run) | 92.0% | Not measured | Only Claude Opus 4.8 measured |
| Humanity's Last Exam (Artificial Analysis run) | 48.7% | 43.1% | Claude Opus 4.8 |
| GPQA Diamond (Epoch AI run) | 91.0% | 92.7% | Grok 4.7 |
| ARC-AGI | 92.5% | 90.2% | Claude Opus 4.8 |
| ARC-AGI-2 | 72.1% | 61.4% | Claude Opus 4.8 |
| SimpleBench | 64.8% | Not measured | Only Claude Opus 4.8 measured |
| Chess puzzles | 52.0% | 41.0% | Claude Opus 4.8 |
| Mystery game puzzles | 36.0% | 29.0% | Claude Opus 4.8 |
| EBR-bench | 28.6% | Not measured | Only Claude Opus 4.8 measured |
| LMArena Text: hard prompts | 1482 | 1415 | Claude Opus 4.8 |
| LMArena Text: expert | 1503 | 1439 | Claude Opus 4.8 |
| LMArena Text: hard prompts in English | 1487 | 1427 | Claude Opus 4.8 |
| LMArena Vision: diagrams | 1315 | 1254 | Claude Opus 4.8 |
| LMArena Vision: homework | 1337 | 1309 | Claude Opus 4.8 |
| Kagi LLM Benchmark | 88.8% | Not measured | Only Claude Opus 4.8 measured |
| Neither model has a result on the other 3 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index60
| Benchmark | Claude Opus 4.8 | Grok 4.7 | Leader |
|---|---|---|---|
| OTIS Mock AIME | 98.3% | 98.1% | Claude Opus 4.8 |
| FrontierMath, tiers 1 to 3 | 80.0% | 53.0% | Claude Opus 4.8 |
| FrontierMath, tier 4 | 56.1% | 17.1% | Claude Opus 4.8 |
| ProofBench | 69.0% | 26.0% | Claude Opus 4.8 |
| LMArena Text: math | 1486 | 1414 | Claude Opus 4.8 |
| LMArena Text: mathematical work | 1497 | 1435 | Claude Opus 4.8 |
| Neither model has a result on the other 7 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index52
| Benchmark | Claude Opus 4.8 | Grok 4.7 | Leader |
|---|---|---|---|
| MMLU Pro | 89.6% | Not measured | Only Claude Opus 4.8 measured |
| LegalBench (Vals AI) | 83.6% | 84.4% | Grok 4.7 |
| CorpFin (Vals AI) | 66.7% | Not measured | Only Claude Opus 4.8 measured |
| TaxEval (Vals AI) | 75.6% | Not measured | Only Claude Opus 4.8 measured |
| MortgageTax (Vals AI) | 69.9% | Not measured | Only Claude Opus 4.8 measured |
| MedCode (Vals AI) | 53.2% | 49.5% | Claude Opus 4.8 |
| SimpleQA Verified | 53.0% | 56.0% | Grok 4.7 |
| LMArena Text: science | 1477 | 1419 | Claude Opus 4.8 |
| LMArena Text: medicine and healthcare | 1464 | 1395 | Claude Opus 4.8 |
| LMArena Text: legal and government | 1477 | 1423 | Claude Opus 4.8 |
| LMArena Text: business and finance | 1458 | 1389 | Claude Opus 4.8 |
| FACTS Benchmark Suite | 53.5% | Not measured | Only Claude Opus 4.8 measured |
| Neither model has a result on the other 6 boards here | |||
Web designLike-for-likePublic boards, shown as published, kept out of the index34
| Benchmark | Claude Opus 4.8 | Grok 4.7 | Leader |
|---|---|---|---|
| Design Arena: websites | 1258 | 1255 | Claude Opus 4.8 |
| Design Arena: UI components | 1255 | 1275 | Grok 4.7 |
| Design Arena: game dev | 1264 | 1314 | Grok 4.7 |
| Design Arena: data viz | 1240 | 1238 | Claude Opus 4.8 |
| Design Arena: 3D | 1222 | 1274 | Grok 4.7 |
| Design Arena: all code categories | 1255 | 1273 | Grok 4.7 |
| Design Arena: SVG | 1195 | Not measured | Only Claude Opus 4.8 measured |
| Design Arena: ASCII art | 1277 | Not measured | Only Claude Opus 4.8 measured |
| LiveBench design | 78.8% | 78.0% | Claude Opus 4.8 |
GeneralLike-for-likePublic boards, shown as published, kept out of the index264
| Benchmark | Claude Opus 4.8 | Grok 4.7 | Leader |
|---|---|---|---|
| Vals Index | Not measured | 58.6% | Only Grok 4.7 measured |
| LiveBench data analysis | 66.0% | 76.9% | Grok 4.7 |
| Public Benefits Bench (Vals AI) | 68.1% | 65.6% | Claude Opus 4.8 |
| SAGE (Vals AI) | 54.8% | 40.8% | Claude Opus 4.8 |
| MedScribe (Vals AI) | 85.8% | 89.4% | Grok 4.7 |
| Vals Multimodal Index | 70.9% | Not measured | Only Claude Opus 4.8 measured |
| IFBench | 62.2% | Not measured | Only Claude Opus 4.8 measured |
| Long context reasoning (AA-LCR) | 77.7% | 80.0% | Grok 4.7 |
| DTBench | 94.9% | 96.0% | Grok 4.7 |
| LMCA | 57.5% | 49.4% | Claude Opus 4.8 |
| Surface Evolver Bench | 87.5% | Not measured | Only Claude Opus 4.8 measured |
| Furniture assembly | 42.5% | 20.8% | Claude Opus 4.8 |
| LMArena Text | 1461 | 1399 | Claude Opus 4.8 |
| LMArena Text: instruction following | 1476 | 1406 | Claude Opus 4.8 |
| LMArena Text: creative writing | 1454 | 1381 | Claude Opus 4.8 |
| LMArena Vision | 1294 | 1231 | Claude Opus 4.8 |
| LMArena Text: English | 1468 | 1411 | Claude Opus 4.8 |
| LMArena Text: non-English | 1450 | 1386 | Claude Opus 4.8 |
| LMArena Text: Chinese | 1506 | 1449 | Claude Opus 4.8 |
| LMArena Text: German | 1472 | 1366 | Claude Opus 4.8 |
| LMArena Text: Japanese | 1442 | 1359 | Claude Opus 4.8 |
| LMArena Text: Korean | 1431 | 1383 | Claude Opus 4.8 |
| LMArena Text: French | 1481 | 1431 | Claude Opus 4.8 |
| LMArena Text: Spanish | 1465 | 1406 | Claude Opus 4.8 |
| LMArena Text: Russian | 1474 | 1399 | Claude Opus 4.8 |
| LMArena Text: Polish | 1459 | 1420 | Claude Opus 4.8 |
| LMArena Text: multi-turn | 1476 | 1394 | Claude Opus 4.8 |
| LMArena Text: longer queries | 1483 | 1416 | Claude Opus 4.8 |
| LMArena Text: writing and language | 1461 | 1394 | Claude Opus 4.8 |
| LMArena Text: entertainment and media | 1440 | 1376 | Claude Opus 4.8 |
| LMArena Vision: English | 1293 | 1229 | Claude Opus 4.8 |
| LMArena Vision: Chinese | 1346 | 1250 | Claude Opus 4.8 |
| LMArena Vision: reading text | 1303 | 1241 | Claude Opus 4.8 |
| LMArena Vision: humor | 1282 | Not measured | Only Claude Opus 4.8 measured |
| LMArena Vision: creative writing | 1301 | 1217 | Claude Opus 4.8 |
| LMArena Document | 1475 | Not measured | Only Claude Opus 4.8 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.8 | 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.8 | SpaceXAI Grok 4.7 |
|---|---|---|
| Maker | Anthropic | xAI |
| Weights | No public weights listed | No public weights listed |
| Released | May 27, 2026 | September 21, 2026 |
| Context window | 1M | 500K |
| Input $/Mtok | $5.00 | $2.00 |
| Output $/Mtok | $25.00 | $6.00 |
| Coding index | 65.0 | 66.7 |
| Independent measurements behind it | 6 | 5 |
| Cost per solved task | $2.17 | Not computable |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is Claude Opus 4.8 better than Grok 4.7 for coding?
Claude Opus 4.8 and Grok 4.7 are level for coding, 65.0 against 66.7 on the Vibe Coding Index, so price and context decide. Pick Claude Opus 4.8 for a larger context window (1M against 500K tokens) and work measured by Code migration (Vals AI) or ProgramBench (Vals AI), where it leads. Pick Grok 4.7 for output tokens 4.2x cheaper ($6.00 vs $25.00 per million) and work measured by LiveBench coding or LMArena WebDev, where it leads.
Which is cheaper, Claude Opus 4.8 or Grok 4.7?
Claude Opus 4.8 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.8 only.
Which has the bigger context window, Claude Opus 4.8 or Grok 4.7?
Claude Opus 4.8, with 1M tokens against 500K.
How many benchmarks is the Claude Opus 4.8 vs Grok 4.7 comparison based on?
87 benchmarks have a result for both models as of October 22, 2026. Claude Opus 4.8's coding index rests on 6 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.