LLMBenchmark.ai

Enter opens the highlighted result. Esc closes.

GPT-6 Luna vs Grok 4.7

Updated October 21, 2026. 95 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.

GPT-6 LunaOpenAI
Coding
71.4
Overall
38.1
Output $/M
$0.50
21
Grok 4.7xAI
Coding
75.0
Overall
46.4
Output $/M
$6.00
71
vs boards won of 95 shared, 3 tied

Decision reading

Pick Grok 4.7 for coding: it scores 75.0 on the Vibe Coding Index against 71.4 for GPT-6 Luna.

Pick GPT-6 Luna when output tokens cost 12.0x less, or when the context window is larger, 1.05M against 500K tokens.

Shared results
95
GPT-6 Luna only
7
Grok 4.7 only
4
Like-for-like categories
8 of 9

Shared results can support a head-to-head reading. Results only one model has describe coverage, not superiority.

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
GPT-6 Luna 71.4 from 2 benchmarks, Grok 4.7 75.0 from 2 benchmarks.
Widest category
Math, 17.7 points apart on average over 6 shared benchmarks.
Widest single gap
LiveBench research: GPT-6 Luna 43.5% against Grok 4.7 86.4%, 42.9 points apart on a 0 to 100 scale.
Output price
GPT-6 Luna $0.50 against Grok 4.7 $6.00 per million output tokens, 12.0x apart.
Context window
GPT-6 Luna takes 1.05M 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
CategoryGPT-6 LunaBarsGrok 4.7Ties
Coding3122 ties
Intelligence11
Agentic work211
Reasoning112
Math42
Knowledge06
Web design331 tie
General724
All shared boards21713 ties
CodingLike-for-likeFour of these boards feed the Vibe Coding Index312
Coding benchmarks for GPT-6 Luna and Grok 4.7
BenchmarkGPT-6 LunaGrok 4.7Leader
LiveBench coding84.5%84.5%Tie
LMArena WebDev15781637Grok 4.7
Terminal-Bench 4 (Vals AI)13.6%28.8%Grok 4.7
Vibe Code Bench (Vals AI)81.7%86.2%Grok 4.7
Code migration (Vals AI)42.5%44.8%Grok 4.7
ProgramBench (Vals AI)0.5%0.5%Tie
IOI (Vals AI)55.6%57.7%Grok 4.7
Terminal-Bench 2.1 (Vals AI)73.0%73.4%Grok 4.7
SWE-bench Multimodal (Vals AI)37.5%42.9%Grok 4.7
CyberBench (Vals AI)76.3%69.5%GPT-6 Luna
SciCode54.6%57.8%Grok 4.7
FrontierCode42.4%47.6%Grok 4.7
FrontierSWENot measured29.5%Only Grok 4.7 measured
ALE-Bench1576.9Not measuredOnly GPT-6 Luna measured
LMArena Text: coding14371432GPT-6 Luna
LMArena Text: software and IT14231421GPT-6 Luna
LMArena WebDev: React15731663Grok 4.7
LMArena WebDev: HTML15951627Grok 4.7
LMArena WebDev: from an image15711586Grok 4.7
Neither model has a result on the other 19 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index11
Intelligence benchmarks for GPT-6 Luna and Grok 4.7
BenchmarkGPT-6 LunaGrok 4.7Leader
AA Intelligence Index38.146.4Grok 4.7
Epoch Capabilities Index156.8154.4GPT-6 Luna
Agentic workLike-for-likePublic boards, shown as published, kept out of the index211
Agentic work benchmarks for GPT-6 Luna and Grok 4.7
BenchmarkGPT-6 LunaGrok 4.7Leader
Design Arena: agents building web apps1189Not measuredOnly GPT-6 Luna measured
Design Arena: agents building full-stack apps1158Not measuredOnly GPT-6 Luna measured
Design Arena: agents building mobile apps1133Not measuredOnly GPT-6 Luna measured
LiveBench research43.5%86.4%Grok 4.7
LiveBench browser72.0%60.0%GPT-6 Luna
LiveBench long agentic48.1%50.1%Grok 4.7
SREBench (Vals AI)2.7%3.8%Grok 4.7
Finance Agent (Vals AI)49.9%52.3%Grok 4.7
Tax Agent Bench (Vals AI)19.9%34.2%Grok 4.7
Legal Research Bench (Vals AI)30.3%47.1%Grok 4.7
Harvey's Legal Agent Benchmark (Vals AI)4.2%18.3%Grok 4.7
Excel Modeling Benchmark (Vals AI)68.5%67.0%GPT-6 Luna
BioMysteryBench (Vals AI)61.5%69.3%Grok 4.7
Terminal-Bench-Science (Vals AI)4.3%10.0%Grok 4.7
Vals Science Index28.4%34.8%Grok 4.7
Robo-bench (Vals AI)Not measured0.2%Only Grok 4.7 measured
APEX-Agents44.3%54.6%Grok 4.7
SpireClimb0.0%Not measuredOnly GPT-6 Luna measured
Vending-Bench 2Not measured$10,537Only Grok 4.7 measured
Neither model has a result on the other 20 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index112
Reasoning benchmarks for GPT-6 Luna and Grok 4.7
BenchmarkGPT-6 LunaGrok 4.7Leader
LiveBench reasoning81.8%82.7%Grok 4.7
MysteryMechanism (Vals AI)19.4%25.2%Grok 4.7
Humanity's Last Exam (Artificial Analysis run)38.5%43.1%Grok 4.7
GPQA Diamond (Epoch AI run)90.5%92.7%Grok 4.7
ARC-AGI86.7%90.2%Grok 4.7
ARC-AGI-259.3%61.4%Grok 4.7
Chess puzzles36.0%41.0%Grok 4.7
Mystery game puzzles7.0%29.0%Grok 4.7
LMArena Text: hard prompts14101415Grok 4.7
LMArena Text: expert14421439GPT-6 Luna
LMArena Text: hard prompts in English14101427Grok 4.7
LMArena Vision: diagrams12451254Grok 4.7
LMArena Vision: homework12611309Grok 4.7
Neither model has a result on the other 8 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index42
Math benchmarks for GPT-6 Luna and Grok 4.7
BenchmarkGPT-6 LunaGrok 4.7Leader
OTIS Mock AIME98.9%98.1%GPT-6 Luna
FrontierMath, tiers 1 to 378.9%53.0%GPT-6 Luna
FrontierMath, tier 456.1%17.1%GPT-6 Luna
ProofBench64.0%26.0%GPT-6 Luna
LMArena Text: math14091414Grok 4.7
LMArena Text: mathematical work14271435Grok 4.7
Neither model has a result on the other 7 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index06
Knowledge benchmarks for GPT-6 Luna and Grok 4.7
BenchmarkGPT-6 LunaGrok 4.7Leader
LegalBench (Vals AI)Not measured84.4%Only Grok 4.7 measured
MedCode (Vals AI)44.7%49.5%Grok 4.7
SimpleQA Verified41.4%56.0%Grok 4.7
LMArena Text: science13861419Grok 4.7
LMArena Text: medicine and healthcare13521395Grok 4.7
LMArena Text: legal and government14001423Grok 4.7
LMArena Text: business and finance13881389Grok 4.7
Neither model has a result on the other 10 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index33
Web design benchmarks for GPT-6 Luna and Grok 4.7
BenchmarkGPT-6 LunaGrok 4.7Leader
Design Arena: websites12721255GPT-6 Luna
Design Arena: UI components12971271GPT-6 Luna
Design Arena: game dev12591314Grok 4.7
Design Arena: data viz12151227Grok 4.7
Design Arena: 3D12171269Grok 4.7
Design Arena: all code categories12711271Tie
Design Arena: SVG1253Not measuredOnly GPT-6 Luna measured
Design Arena: ASCII art1156Not measuredOnly GPT-6 Luna measured
LiveBench design82.5%78.0%GPT-6 Luna
GeneralLike-for-likePublic boards, shown as published, kept out of the index724
General benchmarks for GPT-6 Luna and Grok 4.7
BenchmarkGPT-6 LunaGrok 4.7Leader
Vals Index52.3%58.6%Grok 4.7
LiveBench data analysis73.4%76.9%Grok 4.7
Public Benefits Bench (Vals AI)57.6%65.6%Grok 4.7
SAGE (Vals AI)48.1%40.8%GPT-6 Luna
MedScribe (Vals AI)83.7%89.4%Grok 4.7
Long context reasoning (AA-LCR)83.3%80.0%GPT-6 Luna
DTBench90.1%96.0%Grok 4.7
LMCA44.5%49.4%Grok 4.7
Furniture assembly44.2%20.8%GPT-6 Luna
LMArena Text13891399Grok 4.7
LMArena Text: instruction following14081406GPT-6 Luna
LMArena Text: creative writing13631381Grok 4.7
LMArena Vision12161231Grok 4.7
LMArena Text: English13931411Grok 4.7
LMArena Text: non-English13811386Grok 4.7
LMArena Text: Chinese14271449Grok 4.7
LMArena Text: German13761366GPT-6 Luna
LMArena Text: Japanese13691359GPT-6 Luna
LMArena Text: Korean13591383Grok 4.7
LMArena Text: French14081431Grok 4.7
LMArena Text: Spanish13911406Grok 4.7
LMArena Text: Russian13921399Grok 4.7
LMArena Text: Polish13831420Grok 4.7
LMArena Text: multi-turn13921394Grok 4.7
LMArena Text: longer queries14081416Grok 4.7
LMArena Text: writing and language13841394Grok 4.7
LMArena Text: entertainment and media13641376Grok 4.7
LMArena Vision: English12041229Grok 4.7
LMArena Vision: Chinese12661250GPT-6 Luna
LMArena Vision: reading text12251241Grok 4.7
LMArena Vision: creative writing12051217Grok 4.7
Neither model has a result on the other 15 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for GPT-6 Luna and Grok 4.7
BenchmarkGPT-6 LunaGrok 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

GPT-6 Luna$0.0003Fits in one request
Grok 4.7$0.0050Fits in one request

GPT-6 Luna costs less

Repository review

50K input + 3K output tokens

GPT-6 Luna$0.0065Fits in one request
Grok 4.7$0.118Fits in one request

GPT-6 Luna costs less

Agent loop

200K input + 10K output tokens

GPT-6 Luna$0.025Fits in one request
Grok 4.7$0.460Fits in one request

GPT-6 Luna 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 GPT-6 Luna and Grok 4.7
SpecificationOpenAI GPT-6 LunaSpaceXAI Grok 4.7
MakerOpenAIxAI
WeightsNo public weights listedNo public weights listed
ReleasedSeptember 22, 2026September 21, 2026
Context window1.05M500K
Input $/Mtok$0.10$2.00
Output $/Mtok$0.50$6.00
Coding index71.475.0
Independent measurements behind it22
Cost per solved taskNot computableNot computable
SourceOpenRouter listingOpenRouter listing

Questions

Is GPT-6 Luna better than Grok 4.7 for coding?

Pick Grok 4.7 for coding: it scores 75.0 on the Vibe Coding Index against 71.4 for GPT-6 Luna. Pick GPT-6 Luna when output tokens cost 12.0x less, or when the context window is larger, 1.05M against 500K tokens.

Which is cheaper, GPT-6 Luna or Grok 4.7?

GPT-6 Luna costs $0.10 per million input tokens and $0.50 per million output tokens; Grok 4.7 costs $2.00 and $6.00. Cost per solved task is known for neither of them.

Which has the bigger context window, GPT-6 Luna or Grok 4.7?

GPT-6 Luna, with 1.05M tokens against 500K.

How many benchmarks is the GPT-6 Luna vs Grok 4.7 comparison based on?

95 benchmarks have a result for both models as of October 21, 2026. GPT-6 Luna's coding index rests on 2 independent benchmarks and Grok 4.7'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/gpt-6-luna-vs-grok-4-7" title="GPT-6 Luna 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/gpt-6-luna-vs-grok-4-7">LLMBenchmark.ai, GPT-6 Luna vs Grok 4.7</a></p>