GPT-5.4 vs Grok 4.7
Grok 4.7 leads GPT-5.4 on coding, 66.7 to 64.4 on the Vibe Coding Index, and Grok 4.7 costs 2.5x less per output token ($6.00 vs $15.00 per million). Updated October 22, 2026; 71 benchmarks have a result for both.
GPT-5.4 or Grok 4.7: which to pick
Pick Grok 4.7 for coding: it scores 66.7 on the Vibe Coding Index against 64.4 for GPT-5.4.
Pick GPT-5.4 for a larger context window (1.05M against 500K tokens) and work measured by LMArena Text: coding or LMArena Text: software and IT, where it leads.
- Shared results
- 71
- GPT-5.4 only
- 39
- Grok 4.7 only
- 28
- 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
Grok 4.7
Grok 4.7 scores 66.7 against 64.4.
3 and 5 benchmarks behind the scores
Intelligence
AA Intelligence Index
Grok 4.7
Grok 4.7 leads, 46.4 against 39.0.
Same board, both measured
Reasoning
GPQA Diamond
No call
Only GPT-5.4 has a GPQA Diamond result, 91.7%.
Directional only
Math
AIME
No call
Only GPT-5.4 has a AIME result, 96.7%.
Directional only
Knowledge
MMLU Pro
No call
Only GPT-5.4 has a MMLU Pro result, 87.5%.
Directional only
Web design
Design Arena: websites
Grok 4.7
Grok 4.7 leads, 1255 against 1198.
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
GPT-5.4
GPT-5.4 takes 1.05M tokens against 500K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
Grok 4.7
GPT-5.4 $0.010, Grok 4.7 $0.0050 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
No call
Only GPT-5.4 has the number, $1.02.
Directional only
At a glance
- Coding index
- GPT-5.4 64.4 from 3 benchmarks, Grok 4.7 66.7 from 5 benchmarks.
- Widest category
- Math, 18.4 points apart on average over 6 shared benchmarks.
- Widest single gap
- FrontierMath, tier 4: GPT-5.4 49.0% against Grok 4.7 17.1%, 31.9 points apart on a 0 to 100 scale.
- Output price
- GPT-5.4 $15.00 against Grok 4.7 $6.00 per million output tokens, 2.5x apart.
- Context window
- GPT-5.4 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-5.4 | Bars | Grok 4.7 | Ties |
|---|---|---|---|---|
| Coding | 2 | 6 | 1 tie | |
| Intelligence | 1 | 1 | ||
| Agentic work | 0 | 2 | ||
| Reasoning | 11 | 0 | ||
| Math | 5 | 1 | ||
| Knowledge | 5 | 2 | ||
| Web design | 0 | 6 | ||
| General | 26 | 2 | ||
| All shared boards | 50 | 20 | 1 tie |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index26
| Benchmark | GPT-5.4 | Grok 4.7 | Leader |
|---|---|---|---|
| LiveBench coding | Not measured | 84.5% | Only Grok 4.7 measured |
| LMArena WebDev | 1464 | 1637 | Grok 4.7 |
| AA Coding Index | 71.1 | Not measured | Only GPT-5.4 measured |
| LiveCodeBench (Vals AI) | 84.1% | Not measured | Only GPT-5.4 measured |
| SWE-bench Verified (Vals AI) | 78.2% | Not measured | Only GPT-5.4 measured |
| Terminal-Bench 4 (Vals AI) | Not measured | 28.8% | Only Grok 4.7 measured |
| Vibe Code Bench (Vals AI) | 67.4% | 86.2% | Grok 4.7 |
| Code migration (Vals AI) | 35.0% | 44.8% | Grok 4.7 |
| ProgramBench (Vals AI) | 0.5% | 0.5% | Tie |
| IOI (Vals AI) | Not measured | 57.7% | Only Grok 4.7 measured |
| Terminal-Bench 2.1 (Vals AI) | Not measured | 73.4% | Only Grok 4.7 measured |
| SWE-bench Multimodal (Vals AI) | Not measured | 42.9% | Only Grok 4.7 measured |
| SkillsBench (Vals AI) | 51.7% | Not measured | Only GPT-5.4 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) | 57.6% | Not measured | Only GPT-5.4 measured |
| Terminal-Bench | 81.8% | Not measured | Only GPT-5.4 measured |
| FrontierCode | Not measured | 47.6% | Only Grok 4.7 measured |
| FrontierSWE | Not measured | 29.5% | Only Grok 4.7 measured |
| GSO-Bench | 31.4% | Not measured | Only GPT-5.4 measured |
| WeirdML | 77.7% | Not measured | Only GPT-5.4 measured |
| MirrorCode | 15.6% | Not measured | Only GPT-5.4 measured |
| ALE-Bench | 1607.0 | Not measured | Only GPT-5.4 measured |
| LMArena Text: coding | 1496 | 1432 | GPT-5.4 |
| LMArena Text: software and IT | 1491 | 1421 | GPT-5.4 |
| LMArena WebDev: React | 1454 | 1663 | Grok 4.7 |
| LMArena WebDev: HTML | 1478 | 1627 | Grok 4.7 |
| LMArena WebDev: from an image | 1436 | 1586 | Grok 4.7 |
| Neither model has a result on the other 11 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index11
| Benchmark | GPT-5.4 | Grok 4.7 | Leader |
|---|---|---|---|
| AA Intelligence Index | 39.0 | 46.4 | Grok 4.7 |
| Epoch Capabilities Index | 157.3 | 154.4 | GPT-5.4 |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index02
| Benchmark | GPT-5.4 | Grok 4.7 | Leader |
|---|---|---|---|
| Design Arena: agents building web apps | 1059 | Not measured | Only GPT-5.4 measured |
| Design Arena: agents building full-stack apps | 1017 | Not measured | Only GPT-5.4 measured |
| Design Arena: agents building mobile apps | 1087 | Not measured | Only GPT-5.4 measured |
| Design Arena: agents building Android apps | 1031 | Not measured | Only GPT-5.4 measured |
| Design Arena: agents building Godot games | 1135 | Not measured | Only GPT-5.4 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) | Not measured | 52.3% | Only Grok 4.7 measured |
| Tax Agent Bench (Vals AI) | Not measured | 34.2% | Only Grok 4.7 measured |
| Legal Research Bench (Vals AI) | Not measured | 47.1% | Only Grok 4.7 measured |
| Harvey's Legal Agent Benchmark (Vals AI) | Not measured | 18.3% | Only Grok 4.7 measured |
| Excel Modeling Benchmark (Vals AI) | Not measured | 67.0% | Only Grok 4.7 measured |
| 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 | 87.1% | Not measured | Only GPT-5.4 measured |
| APEX-Agents | 52.4% | 54.6% | Grok 4.7 |
| METR time horizons | 74.3% | Not measured | Only GPT-5.4 measured |
| DeepResearch Bench | 35.1% | Not measured | Only GPT-5.4 measured |
| PostTrainBench | 19.0% | Not measured | Only GPT-5.4 measured |
| Vending-Bench 2 | $6,144 | $10,537 | Grok 4.7 |
| Neither model has a result on the other 17 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index110
| Benchmark | GPT-5.4 | Grok 4.7 | Leader |
|---|---|---|---|
| GPQA Diamond | 91.7% | Not measured | Only GPT-5.4 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) | 87.5% | Not measured | Only GPT-5.4 measured |
| GPQA Diamond (Artificial Analysis run) | 92.0% | Not measured | Only GPT-5.4 measured |
| Humanity's Last Exam (Artificial Analysis run) | 43.7% | 43.1% | GPT-5.4 |
| GPQA Diamond (Epoch AI run) | 93.3% | 92.7% | GPT-5.4 |
| ARC-AGI | 93.7% | 90.2% | GPT-5.4 |
| ARC-AGI-2 | 74.0% | 61.4% | GPT-5.4 |
| Chess puzzles | 48.0% | 41.0% | GPT-5.4 |
| Mystery game puzzles | 37.0% | 29.0% | GPT-5.4 |
| EBR-bench | 25.4% | Not measured | Only GPT-5.4 measured |
| LMArena Text: hard prompts | 1485 | 1415 | GPT-5.4 |
| LMArena Text: expert | 1507 | 1439 | GPT-5.4 |
| LMArena Text: hard prompts in English | 1479 | 1427 | GPT-5.4 |
| LMArena Vision: diagrams | 1327 | 1254 | GPT-5.4 |
| LMArena Vision: homework | 1336 | 1309 | GPT-5.4 |
| Kagi LLM Benchmark | 63.8% | Not measured | Only GPT-5.4 measured |
| Neither model has a result on the other 4 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index51
| Benchmark | GPT-5.4 | Grok 4.7 | Leader |
|---|---|---|---|
| AIME | 96.7% | Not measured | Only GPT-5.4 measured |
| OTIS Mock AIME | 97.8% | 98.1% | Grok 4.7 |
| FrontierMath, tiers 1 to 3 | 78.6% | 53.0% | GPT-5.4 |
| FrontierMath, tier 4 | 49.0% | 17.1% | GPT-5.4 |
| ProofBench | 56.0% | 26.0% | GPT-5.4 |
| LMArena Text: math | 1488 | 1414 | GPT-5.4 |
| LMArena Text: mathematical work | 1497 | 1435 | GPT-5.4 |
| Neither model has a result on the other 6 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index52
| Benchmark | GPT-5.4 | Grok 4.7 | Leader |
|---|---|---|---|
| MMLU Pro | 87.5% | Not measured | Only GPT-5.4 measured |
| LegalBench (Vals AI) | 86.0% | 84.4% | GPT-5.4 |
| CaseLaw (Vals AI) | 63.8% | Not measured | Only GPT-5.4 measured |
| CorpFin (Vals AI) | 65.3% | Not measured | Only GPT-5.4 measured |
| TaxEval (Vals AI) | 74.0% | Not measured | Only GPT-5.4 measured |
| MortgageTax (Vals AI) | 68.3% | Not measured | Only GPT-5.4 measured |
| MedQA (Vals AI) | 96.1% | Not measured | Only GPT-5.4 measured |
| MedCode (Vals AI) | 41.3% | 49.5% | Grok 4.7 |
| SimpleQA Verified | 45.1% | 56.0% | Grok 4.7 |
| LMArena Text: science | 1479 | 1419 | GPT-5.4 |
| LMArena Text: medicine and healthcare | 1458 | 1395 | GPT-5.4 |
| LMArena Text: legal and government | 1486 | 1423 | GPT-5.4 |
| LMArena Text: business and finance | 1474 | 1389 | GPT-5.4 |
| Neither model has a result on the other 5 boards here | |||
Web designLike-for-likePublic boards, shown as published, kept out of the index06
| Benchmark | GPT-5.4 | Grok 4.7 | Leader |
|---|---|---|---|
| Design Arena: websites | 1198 | 1255 | Grok 4.7 |
| Design Arena: UI components | 1212 | 1275 | Grok 4.7 |
| Design Arena: game dev | 1194 | 1314 | Grok 4.7 |
| Design Arena: data viz | 1196 | 1238 | Grok 4.7 |
| Design Arena: 3D | 1065 | 1274 | Grok 4.7 |
| Design Arena: all code categories | 1179 | 1273 | Grok 4.7 |
| Design Arena: SVG | 1141 | Not measured | Only GPT-5.4 measured |
| Design Arena: ASCII art | 1188 | Not measured | Only GPT-5.4 measured |
| LiveBench design | Not measured | 78.0% | Only Grok 4.7 measured |
GeneralLike-for-likePublic boards, shown as published, kept out of the index262
| Benchmark | GPT-5.4 | 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) | 43.3% | 40.8% | GPT-5.4 |
| MedScribe (Vals AI) | 77.5% | 89.4% | Grok 4.7 |
| IFBench | 73.9% | Not measured | Only GPT-5.4 measured |
| Long context reasoning (AA-LCR) | 82.0% | 80.0% | GPT-5.4 |
| DTBench | 94.4% | 96.0% | Grok 4.7 |
| LMCA | 52.0% | 49.4% | GPT-5.4 |
| CL-bench | 27.9% | Not measured | Only GPT-5.4 measured |
| Furniture assembly | 37.5% | 20.8% | GPT-5.4 |
| CL-bench Life | 21.7% | Not measured | Only GPT-5.4 measured |
| LMArena Text | 1469 | 1399 | GPT-5.4 |
| LMArena Text: instruction following | 1469 | 1406 | GPT-5.4 |
| LMArena Text: creative writing | 1439 | 1381 | GPT-5.4 |
| LMArena Vision | 1303 | 1231 | GPT-5.4 |
| LMArena Text: English | 1467 | 1411 | GPT-5.4 |
| LMArena Text: non-English | 1465 | 1386 | GPT-5.4 |
| LMArena Text: Chinese | 1520 | 1449 | GPT-5.4 |
| LMArena Text: German | 1472 | 1366 | GPT-5.4 |
| LMArena Text: Japanese | 1485 | 1359 | GPT-5.4 |
| LMArena Text: Korean | 1449 | 1383 | GPT-5.4 |
| LMArena Text: French | 1493 | 1431 | GPT-5.4 |
| LMArena Text: Spanish | 1452 | 1406 | GPT-5.4 |
| LMArena Text: Russian | 1480 | 1399 | GPT-5.4 |
| LMArena Text: Polish | 1472 | 1420 | GPT-5.4 |
| LMArena Text: multi-turn | 1482 | 1394 | GPT-5.4 |
| LMArena Text: longer queries | 1473 | 1416 | GPT-5.4 |
| LMArena Text: writing and language | 1458 | 1394 | GPT-5.4 |
| LMArena Text: entertainment and media | 1438 | 1376 | GPT-5.4 |
| LMArena Vision: English | 1301 | 1229 | GPT-5.4 |
| LMArena Vision: Chinese | 1354 | 1250 | GPT-5.4 |
| LMArena Vision: reading text | 1312 | 1241 | GPT-5.4 |
| LMArena Vision: humor | 1284 | Not measured | Only GPT-5.4 measured |
| LMArena Vision: recognizing things | 1251 | Not measured | Only GPT-5.4 measured |
| LMArena Vision: creative writing | 1283 | 1217 | GPT-5.4 |
| LMArena Document | 1471 | Not measured | Only GPT-5.4 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 | GPT-5.4 | 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 | OpenAI GPT-5.4 | SpaceXAI Grok 4.7 |
|---|---|---|
| Maker | OpenAI | xAI |
| Weights | No public weights listed | No public weights listed |
| Released | March 5, 2026 | September 21, 2026 |
| Context window | 1.05M | 500K |
| Input $/Mtok | $2.50 | $2.00 |
| Output $/Mtok | $15.00 | $6.00 |
| Coding index | 64.4 | 66.7 |
| Independent measurements behind it | 3 | 5 |
| Cost per solved task | $1.02 | Not computable |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is GPT-5.4 better than Grok 4.7 for coding?
Pick Grok 4.7 for coding: it scores 66.7 on the Vibe Coding Index against 64.4 for GPT-5.4. Pick GPT-5.4 for a larger context window (1.05M against 500K tokens) and work measured by LMArena Text: coding or LMArena Text: software and IT, where it leads.
Which is cheaper, GPT-5.4 or Grok 4.7?
GPT-5.4 costs $2.50 per million input tokens and $15.00 per million output tokens; Grok 4.7 costs $2.00 and $6.00. Cost per solved task is known for GPT-5.4 only.
Which has the bigger context window, GPT-5.4 or Grok 4.7?
GPT-5.4, with 1.05M tokens against 500K.
How many benchmarks is the GPT-5.4 vs Grok 4.7 comparison based on?
71 benchmarks have a result for both models as of October 22, 2026. GPT-5.4's coding index rests on 3 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.