Enter opens the highlighted result. Esc closes.

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.8Anthropic
Coding
65.0
Overall
69.8
Output $/M
$25.00
59
Grok 4.7xAI
Coding
66.7
Overall
66.6
Output $/M
$6.00
28
vs boards won of 87 shared

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.

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.

Boards won, where both have a result
CategoryClaude Opus 4.8BarsGrok 4.7Ties
Coding49
Intelligence11
Agentic work37
Reasoning111
Math60
Knowledge52
Web design34
General264
All shared boards5928
CodingLike-for-likeSix of these boards feed the Vibe Coding Index49
Coding benchmarks for Claude Opus 4.8 and Grok 4.7
BenchmarkClaude Opus 4.8Grok 4.7Leader
LiveBench coding77.3%84.5%Grok 4.7
LMArena WebDev15561637Grok 4.7
AA Coding Index74.3Not measuredOnly Claude Opus 4.8 measured
LiveCodeBench (Vals AI)87.8%Not measuredOnly Claude Opus 4.8 measured
SWE-bench Verified (Vals AI)88.6%Not measuredOnly 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 measured57.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 measured42.9%Only Grok 4.7 measured
SkillsBench (Vals AI)59.2%Not measuredOnly Claude Opus 4.8 measured
CyberBench (Vals AI)Not measured69.5%Only Grok 4.7 measured
SciCode54.4%57.8%Grok 4.7
Terminal-Bench Hard (Artificial Analysis run)58.3%Not measuredOnly Claude Opus 4.8 measured
FrontierCode46.5%47.6%Grok 4.7
FrontierSWENot measured29.5%Only Grok 4.7 measured
GSO-Bench47.1%Not measuredOnly Claude Opus 4.8 measured
WeirdML82.9%Not measuredOnly Claude Opus 4.8 measured
LMArena Text: coding14901432Claude Opus 4.8
LMArena Text: software and IT14881421Claude Opus 4.8
LMArena WebDev: React15571663Grok 4.7
LMArena WebDev: HTML15431627Grok 4.7
LMArena WebDev: from an imageNot measured1586Only Grok 4.7 measured
SciCode12.3%Not measuredOnly 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
Intelligence benchmarks for Claude Opus 4.8 and Grok 4.7
BenchmarkClaude Opus 4.8Grok 4.7Leader
AA Intelligence Index41.846.4Grok 4.7
Epoch Capabilities Index159.0154.4Claude Opus 4.8
Agentic workLike-for-likePublic boards, shown as published, kept out of the index37
Agentic work benchmarks for Claude Opus 4.8 and Grok 4.7
BenchmarkClaude Opus 4.8Grok 4.7Leader
AA Agentic Index41.9Not measuredOnly Claude Opus 4.8 measured
Design Arena: agents building web apps1233Not measuredOnly Claude Opus 4.8 measured
Design Arena: agents building full-stack apps1249Not measuredOnly Claude Opus 4.8 measured
Design Arena: agents building mobile apps1222Not measuredOnly Claude Opus 4.8 measured
Design Arena: agents building Android apps1233Not measuredOnly Claude Opus 4.8 measured
Design Arena: agents building Godot games1231Not measuredOnly Claude Opus 4.8 measured
Design Arena: agents building games1239Not measuredOnly Claude Opus 4.8 measured
Design Arena: HTML slides1171Not measuredOnly Claude Opus 4.8 measured
Design Arena: PowerPoint slides1202Not measuredOnly Claude Opus 4.8 measured
Design Arena: spreadsheets1303Not measuredOnly Claude Opus 4.8 measured
LiveBench research81.8%86.4%Grok 4.7
LiveBench browser96.0%60.0%Claude Opus 4.8
LiveBench long agentic48.3%50.1%Grok 4.7
SREBench (Vals AI)Not measured3.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 measured18.3%Only Grok 4.7 measured
Excel Modeling Benchmark (Vals AI)69.4%67.0%Claude Opus 4.8
BioMysteryBench (Vals AI)Not measured69.3%Only Grok 4.7 measured
Terminal-Bench-Science (Vals AI)4.3%10.0%Grok 4.7
Vals Science IndexNot measured34.8%Only Grok 4.7 measured
Time Horizon Index (Vals AI)11.8%Not measuredOnly Claude Opus 4.8 measured
Robo-bench (Vals AI)Not measured0.2%Only Grok 4.7 measured
τ²-Bench Telecom94.4%Not measuredOnly Claude Opus 4.8 measured
APEX-Agents48.9%54.6%Grok 4.7
Remote Labor Index8.3%Not measuredOnly Claude Opus 4.8 measured
OSWorld 2.020.6%Not measuredOnly Claude Opus 4.8 measured
DeepResearch Bench50.2%Not measuredOnly Claude Opus 4.8 measured
PostTrainBench33.8%Not measuredOnly Claude Opus 4.8 measured
Vending-Bench 2$5,787$10,537Grok 4.7
LMArena Search1204Not measuredOnly 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
Reasoning benchmarks for Claude Opus 4.8 and Grok 4.7
BenchmarkClaude Opus 4.8Grok 4.7Leader
GPQA Diamond92.4%Not measuredOnly Claude Opus 4.8 measured
LiveBench reasoning89.2%82.7%Claude Opus 4.8
MysteryMechanism (Vals AI)Not measured25.2%Only Grok 4.7 measured
MMMU Pro (Vals AI)86.6%Not measuredOnly Claude Opus 4.8 measured
GPQA Diamond (Artificial Analysis run)92.0%Not measuredOnly 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-AGI92.5%90.2%Claude Opus 4.8
ARC-AGI-272.1%61.4%Claude Opus 4.8
SimpleBench64.8%Not measuredOnly Claude Opus 4.8 measured
Chess puzzles52.0%41.0%Claude Opus 4.8
Mystery game puzzles36.0%29.0%Claude Opus 4.8
EBR-bench28.6%Not measuredOnly Claude Opus 4.8 measured
LMArena Text: hard prompts14821415Claude Opus 4.8
LMArena Text: expert15031439Claude Opus 4.8
LMArena Text: hard prompts in English14871427Claude Opus 4.8
LMArena Vision: diagrams13151254Claude Opus 4.8
LMArena Vision: homework13371309Claude Opus 4.8
Kagi LLM Benchmark88.8%Not measuredOnly 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
Math benchmarks for Claude Opus 4.8 and Grok 4.7
BenchmarkClaude Opus 4.8Grok 4.7Leader
OTIS Mock AIME98.3%98.1%Claude Opus 4.8
FrontierMath, tiers 1 to 380.0%53.0%Claude Opus 4.8
FrontierMath, tier 456.1%17.1%Claude Opus 4.8
ProofBench69.0%26.0%Claude Opus 4.8
LMArena Text: math14861414Claude Opus 4.8
LMArena Text: mathematical work14971435Claude 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
Knowledge benchmarks for Claude Opus 4.8 and Grok 4.7
BenchmarkClaude Opus 4.8Grok 4.7Leader
MMLU Pro89.6%Not measuredOnly Claude Opus 4.8 measured
LegalBench (Vals AI)83.6%84.4%Grok 4.7
CorpFin (Vals AI)66.7%Not measuredOnly Claude Opus 4.8 measured
TaxEval (Vals AI)75.6%Not measuredOnly Claude Opus 4.8 measured
MortgageTax (Vals AI)69.9%Not measuredOnly Claude Opus 4.8 measured
MedCode (Vals AI)53.2%49.5%Claude Opus 4.8
SimpleQA Verified53.0%56.0%Grok 4.7
LMArena Text: science14771419Claude Opus 4.8
LMArena Text: medicine and healthcare14641395Claude Opus 4.8
LMArena Text: legal and government14771423Claude Opus 4.8
LMArena Text: business and finance14581389Claude Opus 4.8
FACTS Benchmark Suite53.5%Not measuredOnly 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
Web design benchmarks for Claude Opus 4.8 and Grok 4.7
BenchmarkClaude Opus 4.8Grok 4.7Leader
Design Arena: websites12581255Claude Opus 4.8
Design Arena: UI components12551275Grok 4.7
Design Arena: game dev12641314Grok 4.7
Design Arena: data viz12401238Claude Opus 4.8
Design Arena: 3D12221274Grok 4.7
Design Arena: all code categories12551273Grok 4.7
Design Arena: SVG1195Not measuredOnly Claude Opus 4.8 measured
Design Arena: ASCII art1277Not measuredOnly Claude Opus 4.8 measured
LiveBench design78.8%78.0%Claude Opus 4.8
GeneralLike-for-likePublic boards, shown as published, kept out of the index264
General benchmarks for Claude Opus 4.8 and Grok 4.7
BenchmarkClaude Opus 4.8Grok 4.7Leader
Vals IndexNot measured58.6%Only Grok 4.7 measured
LiveBench data analysis66.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 Index70.9%Not measuredOnly Claude Opus 4.8 measured
IFBench62.2%Not measuredOnly Claude Opus 4.8 measured
Long context reasoning (AA-LCR)77.7%80.0%Grok 4.7
DTBench94.9%96.0%Grok 4.7
LMCA57.5%49.4%Claude Opus 4.8
Surface Evolver Bench87.5%Not measuredOnly Claude Opus 4.8 measured
Furniture assembly42.5%20.8%Claude Opus 4.8
LMArena Text14611399Claude Opus 4.8
LMArena Text: instruction following14761406Claude Opus 4.8
LMArena Text: creative writing14541381Claude Opus 4.8
LMArena Vision12941231Claude Opus 4.8
LMArena Text: English14681411Claude Opus 4.8
LMArena Text: non-English14501386Claude Opus 4.8
LMArena Text: Chinese15061449Claude Opus 4.8
LMArena Text: German14721366Claude Opus 4.8
LMArena Text: Japanese14421359Claude Opus 4.8
LMArena Text: Korean14311383Claude Opus 4.8
LMArena Text: French14811431Claude Opus 4.8
LMArena Text: Spanish14651406Claude Opus 4.8
LMArena Text: Russian14741399Claude Opus 4.8
LMArena Text: Polish14591420Claude Opus 4.8
LMArena Text: multi-turn14761394Claude Opus 4.8
LMArena Text: longer queries14831416Claude Opus 4.8
LMArena Text: writing and language14611394Claude Opus 4.8
LMArena Text: entertainment and media14401376Claude Opus 4.8
LMArena Vision: English12931229Claude Opus 4.8
LMArena Vision: Chinese13461250Claude Opus 4.8
LMArena Vision: reading text13031241Claude Opus 4.8
LMArena Vision: humor1282Not measuredOnly Claude Opus 4.8 measured
LMArena Vision: creative writing13011217Claude Opus 4.8
LMArena Document1475Not measuredOnly 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
Image generation benchmarks for Claude Opus 4.8 and Grok 4.7
BenchmarkClaude Opus 4.8Grok 4.7Leader
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.8$0.018Fits in one request
Grok 4.7$0.0050Fits in one request

Grok 4.7 costs less

Repository review

50K input + 3K output tokens

Claude Opus 4.8$0.325Fits in one request
Grok 4.7$0.118Fits in one request

Grok 4.7 costs less

Agent loop

200K input + 10K output tokens

Claude Opus 4.8$1.25Fits in one request
Grok 4.7$0.460Fits in one request

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.

Specifications of Claude Opus 4.8 and Grok 4.7
SpecificationAnthropic Claude Opus 4.8SpaceXAI Grok 4.7
MakerAnthropicxAI
WeightsNo public weights listedNo public weights listed
ReleasedMay 27, 2026September 21, 2026
Context window1M500K
Input $/Mtok$5.00$2.00
Output $/Mtok$25.00$6.00
Coding index65.066.7
Independent measurements behind it65
Cost per solved task$2.17Not computable
SourceOpenRouter listingOpenRouter 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.

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-8-vs-grok-4-7" title="Claude Opus 4.8 vs Grok 4.7, 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-8-vs-grok-4-7">LLMBenchmark.ai, Claude Opus 4.8 vs Grok 4.7</a></p>