GPT-5.4 Mini vs Grok 4.7
Grok 4.7 leads GPT-5.4 Mini on coding, 66.7 to 35.8 on the Vibe Coding Index, and GPT-5.4 Mini costs 1.3x less per output token ($4.50 vs $6.00 per million). Updated October 22, 2026; 66 benchmarks have a result for both.
GPT-5.4 Mini or Grok 4.7: which to pick
Pick Grok 4.7 for coding: it scores 66.7 on the Vibe Coding Index against 35.8 for GPT-5.4 Mini.
Pick GPT-5.4 Mini for output tokens 1.3x cheaper ($4.50 vs $6.00 per million) and work measured by LMArena Text: coding or LMArena Text: software and IT, where it leads.
- Shared results
- 66
- GPT-5.4 Mini only
- 23
- Grok 4.7 only
- 33
- Like-for-like categories
- 7 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 35.8.
5 benchmarks behind each score
Intelligence
AA Intelligence Index
Grok 4.7
Grok 4.7 leads, 46.4 against 24.1.
Same board, both measured
Agentic work
AA Agentic Index
No call
Only GPT-5.4 Mini has a AA Agentic Index result, 17.9.
Directional only
Reasoning
GPQA Diamond
No call
Only GPT-5.4 Mini has a GPQA Diamond result, 83.1%.
Directional only
Math
AIME
No call
Only GPT-5.4 Mini has a AIME result, 95.6%.
Directional only
Knowledge
MMLU Pro
No call
Only GPT-5.4 Mini has a MMLU Pro result, 84.5%.
Directional only
Web design
Design Arena: websites
No call
Only Grok 4.7 has a Design Arena: websites result, 1255.
Directional only
General
Vals Index
No call
Only Grok 4.7 has a Vals Index result, 58.6%.
Directional only
Long documents
Listed context window
Grok 4.7
Grok 4.7 takes 500K tokens against 400K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
GPT-5.4 Mini
GPT-5.4 Mini $0.0030, 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 Mini has the number, $0.70.
Directional only
At a glance
- Coding index
- GPT-5.4 Mini 35.8 from 5 benchmarks, Grok 4.7 66.7 from 5 benchmarks.
- Widest category
- Agentic work, 22.1 points apart on average over 4 shared benchmarks.
- Widest single gap
- ARC-AGI-2: GPT-5.4 Mini 18.9% against Grok 4.7 61.4%, 42.5 points apart on a 0 to 100 scale.
- Output price
- GPT-5.4 Mini $4.50 against Grok 4.7 $6.00 per million output tokens, 1.3x apart.
- Context window
- GPT-5.4 Mini takes 400K 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 Mini | Bars | Grok 4.7 | Ties |
|---|---|---|---|---|
| Coding | 2 | 10 | ||
| Intelligence | 0 | 2 | ||
| Agentic work | 0 | 4 | ||
| Reasoning | 2 | 9 | ||
| Math | 1 | 5 | ||
| Knowledge | 1 | 4 | ||
| General | 14 | 12 | ||
| All shared boards | 20 | 46 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index210
| Benchmark | GPT-5.4 Mini | Grok 4.7 | Leader |
|---|---|---|---|
| LiveBench coding | Not measured | 84.5% | Only Grok 4.7 measured |
| LMArena WebDev | 1397 | 1637 | Grok 4.7 |
| AA Coding Index | 56.1 | Not measured | Only GPT-5.4 Mini measured |
| LiveCodeBench (Vals AI) | 81.5% | Not measured | Only GPT-5.4 Mini measured |
| SWE-bench Verified (Vals AI) | 73.0% | Not measured | Only GPT-5.4 Mini measured |
| Terminal-Bench 4 (Vals AI) | 2.5% | 28.8% | Grok 4.7 |
| Vibe Code Bench (Vals AI) | 48.0% | 86.2% | Grok 4.7 |
| Code migration (Vals AI) | 12.9% | 44.8% | Grok 4.7 |
| ProgramBench (Vals AI) | 0.0% | 0.5% | Grok 4.7 |
| IOI (Vals AI) | Not measured | 57.7% | Only Grok 4.7 measured |
| Terminal-Bench 2.1 (Vals AI) | 54.7% | 73.4% | Grok 4.7 |
| SWE-bench Multimodal (Vals AI) | Not measured | 42.9% | Only Grok 4.7 measured |
| CyberBench (Vals AI) | Not measured | 69.5% | Only Grok 4.7 measured |
| SciCode | 52.1% | 57.8% | Grok 4.7 |
| Terminal-Bench Hard (Artificial Analysis run) | 52.3% | Not measured | Only GPT-5.4 Mini measured |
| FrontierCode | 27.0% | 47.6% | Grok 4.7 |
| FrontierSWE | Not measured | 29.5% | Only Grok 4.7 measured |
| WeirdML | 60.3% | Not measured | Only GPT-5.4 Mini measured |
| ALE-Bench | 1188.6 | Not measured | Only GPT-5.4 Mini measured |
| LMArena Text: coding | 1438 | 1432 | GPT-5.4 Mini |
| LMArena Text: software and IT | 1436 | 1421 | GPT-5.4 Mini |
| LMArena WebDev: React | 1386 | 1663 | Grok 4.7 |
| LMArena WebDev: HTML | 1419 | 1627 | Grok 4.7 |
| LMArena WebDev: from an image | Not measured | 1586 | Only Grok 4.7 measured |
| Neither model has a result on the other 15 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
| Benchmark | GPT-5.4 Mini | Grok 4.7 | Leader |
|---|---|---|---|
| AA Intelligence Index | 24.1 | 46.4 | Grok 4.7 |
| Epoch Capabilities Index | 148.7 | 154.4 | Grok 4.7 |
Agentic workLike-for-likePublic boards, shown as published, kept out of the index04
| Benchmark | GPT-5.4 Mini | Grok 4.7 | Leader |
|---|---|---|---|
| AA Agentic Index | 17.9 | Not measured | Only GPT-5.4 Mini 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) | 45.4% | 52.3% | Grok 4.7 |
| Tax Agent Bench (Vals AI) | 8.8% | 34.2% | Grok 4.7 |
| Legal Research Bench (Vals AI) | 12.5% | 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) | 45.4% | 67.0% | Grok 4.7 |
| 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 | 83.3% | Not measured | Only GPT-5.4 Mini measured |
| APEX-Agents | Not measured | 54.6% | Only Grok 4.7 measured |
| DeepResearch Bench | 36.3% | Not measured | Only GPT-5.4 Mini measured |
| Vending-Bench 2 | Not measured | $10,537 | Only Grok 4.7 measured |
| Neither model has a result on the other 23 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index29
| Benchmark | GPT-5.4 Mini | Grok 4.7 | Leader |
|---|---|---|---|
| GPQA Diamond | 83.1% | Not measured | Only GPT-5.4 Mini 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) | 79.3% | Not measured | Only GPT-5.4 Mini measured |
| GPQA Diamond (Artificial Analysis run) | 87.5% | Not measured | Only GPT-5.4 Mini measured |
| Humanity's Last Exam (Artificial Analysis run) | 28.1% | 43.1% | Grok 4.7 |
| GPQA Diamond (Epoch AI run) | 86.9% | 92.7% | Grok 4.7 |
| ARC-AGI | 63.7% | 90.2% | Grok 4.7 |
| ARC-AGI-2 | 18.9% | 61.4% | Grok 4.7 |
| Chess puzzles | 23.0% | 41.0% | Grok 4.7 |
| Mystery game puzzles | 11.0% | 29.0% | Grok 4.7 |
| LMArena Text: hard prompts | 1424 | 1415 | GPT-5.4 Mini |
| LMArena Text: expert | 1435 | 1439 | Grok 4.7 |
| LMArena Text: hard prompts in English | 1420 | 1427 | Grok 4.7 |
| LMArena Vision: diagrams | 1266 | 1254 | GPT-5.4 Mini |
| LMArena Vision: homework | 1285 | 1309 | Grok 4.7 |
| Kagi LLM Benchmark | 37.9% | Not measured | Only GPT-5.4 Mini measured |
| Neither model has a result on the other 5 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index15
| Benchmark | GPT-5.4 Mini | Grok 4.7 | Leader |
|---|---|---|---|
| AIME | 95.6% | Not measured | Only GPT-5.4 Mini measured |
| OTIS Mock AIME | 88.9% | 98.1% | Grok 4.7 |
| FrontierMath, tiers 1 to 3 | 51.2% | 53.0% | Grok 4.7 |
| FrontierMath, tier 4 | 9.8% | 17.1% | Grok 4.7 |
| ProofBench | 21.0% | 26.0% | Grok 4.7 |
| LMArena Text: math | 1418 | 1414 | GPT-5.4 Mini |
| LMArena Text: mathematical work | 1429 | 1435 | Grok 4.7 |
| Neither model has a result on the other 6 boards here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index14
| Benchmark | GPT-5.4 Mini | Grok 4.7 | Leader |
|---|---|---|---|
| MMLU Pro | 84.5% | Not measured | Only GPT-5.4 Mini measured |
| LegalBench (Vals AI) | Not measured | 84.4% | Only Grok 4.7 measured |
| CaseLaw (Vals AI) | 51.7% | Not measured | Only GPT-5.4 Mini measured |
| CorpFin (Vals AI) | 60.9% | Not measured | Only GPT-5.4 Mini measured |
| TaxEval (Vals AI) | 71.2% | Not measured | Only GPT-5.4 Mini measured |
| MortgageTax (Vals AI) | 63.5% | Not measured | Only GPT-5.4 Mini measured |
| MedCode (Vals AI) | Not measured | 49.5% | Only Grok 4.7 measured |
| SimpleQA Verified | 29.4% | 56.0% | Grok 4.7 |
| LMArena Text: science | 1417 | 1419 | Grok 4.7 |
| LMArena Text: medicine and healthcare | 1395 | 1395 | Grok 4.7 |
| LMArena Text: legal and government | 1414 | 1423 | Grok 4.7 |
| LMArena Text: business and finance | 1418 | 1389 | GPT-5.4 Mini |
| Neither model has a result on the other 6 boards here | |||
Web designDirectional onlyPublic boards, shown as published, kept out of the index7 boards, none shared
| Benchmark | GPT-5.4 Mini | Grok 4.7 | Leader |
|---|---|---|---|
| Design Arena: websites | Not measured | 1255 | Only Grok 4.7 measured |
| Design Arena: UI components | Not measured | 1275 | Only Grok 4.7 measured |
| Design Arena: game dev | Not measured | 1314 | Only Grok 4.7 measured |
| Design Arena: data viz | Not measured | 1238 | Only Grok 4.7 measured |
| Design Arena: 3D | Not measured | 1274 | Only Grok 4.7 measured |
| Design Arena: all code categories | Not measured | 1273 | Only Grok 4.7 measured |
| LiveBench design | Not measured | 78.0% | Only Grok 4.7 measured |
| Neither model has a result on the other 2 boards here | |||
GeneralLike-for-likePublic boards, shown as published, kept out of the index1412
| Benchmark | GPT-5.4 Mini | 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) | 50.8% | 40.8% | GPT-5.4 Mini |
| MedScribe (Vals AI) | Not measured | 89.4% | Only Grok 4.7 measured |
| Vals Multimodal Index | 54.2% | Not measured | Only GPT-5.4 Mini measured |
| IFBench | 73.3% | Not measured | Only GPT-5.4 Mini measured |
| Long context reasoning (AA-LCR) | 77.0% | 80.0% | Grok 4.7 |
| DTBench | 80.0% | 96.0% | Grok 4.7 |
| LMCA | 40.8% | 49.4% | Grok 4.7 |
| Furniture assembly | Not measured | 20.8% | Only Grok 4.7 measured |
| LMArena Text | 1412 | 1399 | GPT-5.4 Mini |
| LMArena Text: instruction following | 1405 | 1406 | Grok 4.7 |
| LMArena Text: creative writing | 1370 | 1381 | Grok 4.7 |
| LMArena Vision | 1245 | 1231 | GPT-5.4 Mini |
| LMArena Text: English | 1412 | 1411 | GPT-5.4 Mini |
| LMArena Text: non-English | 1405 | 1386 | GPT-5.4 Mini |
| LMArena Text: Chinese | 1446 | 1449 | Grok 4.7 |
| LMArena Text: German | 1408 | 1366 | GPT-5.4 Mini |
| LMArena Text: Japanese | 1375 | 1359 | GPT-5.4 Mini |
| LMArena Text: Korean | 1370 | 1383 | Grok 4.7 |
| LMArena Text: French | 1441 | 1431 | GPT-5.4 Mini |
| LMArena Text: Spanish | 1405 | 1406 | Grok 4.7 |
| LMArena Text: Russian | 1417 | 1399 | GPT-5.4 Mini |
| LMArena Text: Polish | 1415 | 1420 | Grok 4.7 |
| LMArena Text: multi-turn | 1429 | 1394 | GPT-5.4 Mini |
| LMArena Text: longer queries | 1408 | 1416 | Grok 4.7 |
| LMArena Text: writing and language | 1393 | 1394 | Grok 4.7 |
| LMArena Text: entertainment and media | 1373 | 1376 | Grok 4.7 |
| LMArena Vision: English | 1244 | 1229 | GPT-5.4 Mini |
| LMArena Vision: Chinese | 1286 | 1250 | GPT-5.4 Mini |
| LMArena Vision: reading text | 1253 | 1241 | GPT-5.4 Mini |
| LMArena Vision: humor | 1235 | Not measured | Only GPT-5.4 Mini measured |
| LMArena Vision: recognizing things | 1218 | Not measured | Only GPT-5.4 Mini measured |
| LMArena Vision: creative writing | 1222 | 1217 | GPT-5.4 Mini |
| Neither model has a result on the other 11 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | GPT-5.4 Mini | 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-5.4 Mini costs less
Repository review
50K input + 3K output tokens
GPT-5.4 Mini costs less
Agent loop
200K input + 10K output tokens
GPT-5.4 Mini 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 Mini | SpaceXAI Grok 4.7 |
|---|---|---|
| Maker | OpenAI | xAI |
| Weights | No public weights listed | No public weights listed |
| Released | March 17, 2026 | September 21, 2026 |
| Context window | 400K | 500K |
| Input $/Mtok | $0.75 | $2.00 |
| Output $/Mtok | $4.50 | $6.00 |
| Coding index | 35.8 | 66.7 |
| Independent measurements behind it | 5 | 5 |
| Cost per solved task | $0.70 | Not computable |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is GPT-5.4 Mini better than Grok 4.7 for coding?
Pick Grok 4.7 for coding: it scores 66.7 on the Vibe Coding Index against 35.8 for GPT-5.4 Mini. Pick GPT-5.4 Mini for output tokens 1.3x cheaper ($4.50 vs $6.00 per million) and work measured by LMArena Text: coding or LMArena Text: software and IT, where it leads.
Which is cheaper, GPT-5.4 Mini or Grok 4.7?
GPT-5.4 Mini costs $0.75 per million input tokens and $4.50 per million output tokens; Grok 4.7 costs $2.00 and $6.00. Cost per solved task is known for GPT-5.4 Mini only.
Which has the bigger context window, GPT-5.4 Mini or Grok 4.7?
Grok 4.7, with 500K tokens against 400K.
How many benchmarks is the GPT-5.4 Mini vs Grok 4.7 comparison based on?
66 benchmarks have a result for both models as of October 22, 2026. GPT-5.4 Mini's coding index rests on 5 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.