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.
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.
Coding
Vibe Coding Index, four public coding benchmarks
Grok 4.7
Grok 4.7 scores 75.0 against 71.4.
2 benchmarks behind each score
Intelligence
AA Intelligence Index
Grok 4.7
Grok 4.7 leads, 46.4 against 38.1.
Same board, both measured
Web design
Design Arena: websites
GPT-6 Luna
GPT-6 Luna leads, 1272 against 1255.
Same board, both measured
General
Vals Index
Grok 4.7
Grok 4.7 leads, 58.6% against 52.3%.
Same board, both measured
Long documents
Listed context window
GPT-6 Luna
GPT-6 Luna takes 1.05M tokens against 500K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
GPT-6 Luna
GPT-6 Luna $0.0003, Grok 4.7 $0.0050 per turn.
List prices
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.
| Category | GPT-6 Luna | Bars | Grok 4.7 | Ties |
|---|---|---|---|---|
| Coding | 3 | 12 | 2 ties | |
| Intelligence | 1 | 1 | ||
| Agentic work | 2 | 11 | ||
| Reasoning | 1 | 12 | ||
| Math | 4 | 2 | ||
| Knowledge | 0 | 6 | ||
| Web design | 3 | 3 | 1 tie | |
| General | 7 | 24 | ||
| All shared boards | 21 | 71 | 3 ties |
CodingLike-for-likeFour of these boards feed the Vibe Coding Index312
| Benchmark | GPT-6 Luna | Grok 4.7 | Leader |
|---|---|---|---|
| LiveBench coding | 84.5% | 84.5% | Tie |
| LMArena WebDev | 1578 | 1637 | Grok 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 |
| SciCode | 54.6% | 57.8% | Grok 4.7 |
| FrontierCode | 42.4% | 47.6% | Grok 4.7 |
| FrontierSWE | Not measured | 29.5% | Only Grok 4.7 measured |
| ALE-Bench | 1576.9 | Not measured | Only GPT-6 Luna measured |
| LMArena Text: coding | 1437 | 1432 | GPT-6 Luna |
| LMArena Text: software and IT | 1423 | 1421 | GPT-6 Luna |
| LMArena WebDev: React | 1573 | 1663 | Grok 4.7 |
| LMArena WebDev: HTML | 1595 | 1627 | Grok 4.7 |
| LMArena WebDev: from an image | 1571 | 1586 | Grok 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
| Benchmark | GPT-6 Luna | Grok 4.7 | Leader |
|---|---|---|---|
| AA Intelligence Index | 38.1 | 46.4 | Grok 4.7 |
| Epoch Capabilities Index | 156.8 | 154.4 | GPT-6 Luna |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index211
| Benchmark | GPT-6 Luna | Grok 4.7 | Leader |
|---|---|---|---|
| Design Arena: agents building web apps | 1189 | Not measured | Only GPT-6 Luna measured |
| Design Arena: agents building full-stack apps | 1158 | Not measured | Only GPT-6 Luna measured |
| Design Arena: agents building mobile apps | 1133 | Not measured | Only GPT-6 Luna measured |
| LiveBench research | 43.5% | 86.4% | Grok 4.7 |
| LiveBench browser | 72.0% | 60.0% | GPT-6 Luna |
| LiveBench long agentic | 48.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 Index | 28.4% | 34.8% | Grok 4.7 |
| Robo-bench (Vals AI) | Not measured | 0.2% | Only Grok 4.7 measured |
| APEX-Agents | 44.3% | 54.6% | Grok 4.7 |
| SpireClimb | 0.0% | Not measured | Only GPT-6 Luna measured |
| Vending-Bench 2 | Not measured | $10,537 | Only 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
| Benchmark | GPT-6 Luna | Grok 4.7 | Leader |
|---|---|---|---|
| LiveBench reasoning | 81.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-AGI | 86.7% | 90.2% | Grok 4.7 |
| ARC-AGI-2 | 59.3% | 61.4% | Grok 4.7 |
| Chess puzzles | 36.0% | 41.0% | Grok 4.7 |
| Mystery game puzzles | 7.0% | 29.0% | Grok 4.7 |
| LMArena Text: hard prompts | 1410 | 1415 | Grok 4.7 |
| LMArena Text: expert | 1442 | 1439 | GPT-6 Luna |
| LMArena Text: hard prompts in English | 1410 | 1427 | Grok 4.7 |
| LMArena Vision: diagrams | 1245 | 1254 | Grok 4.7 |
| LMArena Vision: homework | 1261 | 1309 | Grok 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
| Benchmark | GPT-6 Luna | Grok 4.7 | Leader |
|---|---|---|---|
| OTIS Mock AIME | 98.9% | 98.1% | GPT-6 Luna |
| FrontierMath, tiers 1 to 3 | 78.9% | 53.0% | GPT-6 Luna |
| FrontierMath, tier 4 | 56.1% | 17.1% | GPT-6 Luna |
| ProofBench | 64.0% | 26.0% | GPT-6 Luna |
| LMArena Text: math | 1409 | 1414 | Grok 4.7 |
| LMArena Text: mathematical work | 1427 | 1435 | Grok 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
| Benchmark | GPT-6 Luna | Grok 4.7 | Leader |
|---|---|---|---|
| LegalBench (Vals AI) | Not measured | 84.4% | Only Grok 4.7 measured |
| MedCode (Vals AI) | 44.7% | 49.5% | Grok 4.7 |
| SimpleQA Verified | 41.4% | 56.0% | Grok 4.7 |
| LMArena Text: science | 1386 | 1419 | Grok 4.7 |
| LMArena Text: medicine and healthcare | 1352 | 1395 | Grok 4.7 |
| LMArena Text: legal and government | 1400 | 1423 | Grok 4.7 |
| LMArena Text: business and finance | 1388 | 1389 | Grok 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
| Benchmark | GPT-6 Luna | Grok 4.7 | Leader |
|---|---|---|---|
| Design Arena: websites | 1272 | 1255 | GPT-6 Luna |
| Design Arena: UI components | 1297 | 1271 | GPT-6 Luna |
| Design Arena: game dev | 1259 | 1314 | Grok 4.7 |
| Design Arena: data viz | 1215 | 1227 | Grok 4.7 |
| Design Arena: 3D | 1217 | 1269 | Grok 4.7 |
| Design Arena: all code categories | 1271 | 1271 | Tie |
| Design Arena: SVG | 1253 | Not measured | Only GPT-6 Luna measured |
| Design Arena: ASCII art | 1156 | Not measured | Only GPT-6 Luna measured |
| LiveBench design | 82.5% | 78.0% | GPT-6 Luna |
GeneralLike-for-likePublic boards, shown as published, kept out of the index724
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | GPT-6 Luna | 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
GPT-6 Luna costs less
Repository review
50K input + 3K output tokens
GPT-6 Luna costs less
Agent loop
200K input + 10K output tokens
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.
| Specification | OpenAI GPT-6 Luna | SpaceXAI Grok 4.7 |
|---|---|---|
| Maker | OpenAI | xAI |
| Weights | No public weights listed | No public weights listed |
| Released | September 22, 2026 | September 21, 2026 |
| Context window | 1.05M | 500K |
| Input $/Mtok | $0.10 | $2.00 |
| Output $/Mtok | $0.50 | $6.00 |
| Coding index | 71.4 | 75.0 |
| Independent measurements behind it | 2 | 2 |
| Cost per solved task | Not computable | Not computable |
| Source | OpenRouter listing | OpenRouter 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.