GPT-4.1 Mini vs Grok 4.7
Grok 4.7 leads GPT-4.1 Mini on the Artificial Analysis Intelligence Index, 46.4 to 10.2, and GPT-4.1 Mini costs 3.8x less per output token ($1.60 vs $6.00 per million). Updated October 21, 2026; 56 benchmarks have a result for both.
GPT-4.1 Mini or Grok 4.7: which to pick
Only Grok 4.7 has a coding score, 66.7 on the Vibe Coding Index; GPT-4.1 Mini has none, so the two cannot be ranked on coding.
Pick GPT-4.1 Mini for output tokens 3.8x cheaper ($1.60 vs $6.00 per million) and a larger context window (1.05M against 500K tokens).
- Shared results
- 56
- GPT-4.1 Mini only
- 30
- Grok 4.7 only
- 43
- 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
No call
Only Grok 4.7 has a coding score, so no call is made.
One side not measured
Intelligence
AA Intelligence Index
Grok 4.7
Grok 4.7 leads, 46.4 against 10.2.
Same board, both measured
Reasoning
GPQA Diamond
No call
Only GPT-4.1 Mini has a GPQA Diamond result, 67.9%.
Directional only
Math
AIME
No call
Only GPT-4.1 Mini has a AIME result, 49.4%.
Directional only
Knowledge
MMLU Pro
No call
Only GPT-4.1 Mini has a MMLU Pro result, 77.2%.
Directional only
Web design
Design Arena: websites
Grok 4.7
Grok 4.7 leads, 1254 against 997.
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-4.1 Mini
GPT-4.1 Mini takes 1.05M tokens against 500K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
GPT-4.1 Mini
GPT-4.1 Mini $0.0012, Grok 4.7 $0.0050 per turn.
List prices
Cost per solved task
One SWE-bench Verified task, solved
No call
Only GPT-4.1 Mini has the number, $1.818.
Directional only
At a glance
- Coding index
- GPT-4.1 Mini not benchmarked, Grok 4.7 66.7 from 5 benchmarks.
- Widest category
- Web design, 35.9 points apart on average over 6 shared benchmarks.
- Widest single gap
- ARC-AGI: GPT-4.1 Mini 3.5% against Grok 4.7 90.2%, 86.7 points apart on a 0 to 100 scale.
- Output price
- GPT-4.1 Mini $1.60 against Grok 4.7 $6.00 per million output tokens, 3.8x apart.
- Context window
- GPT-4.1 Mini 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-4.1 Mini | Bars | Grok 4.7 | Ties |
|---|---|---|---|---|
| Coding | 0 | 2 | ||
| Intelligence | 0 | 2 | ||
| Reasoning | 0 | 11 | ||
| Math | 0 | 4 | ||
| Knowledge | 0 | 6 | ||
| Web design | 0 | 6 | ||
| General | 0 | 25 | ||
| All shared boards | 0 | 56 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index02
| Benchmark | GPT-4.1 Mini | Grok 4.7 | Leader |
|---|---|---|---|
| Aider polyglot | 32.4% | Not measured | Only GPT-4.1 Mini measured |
| SWE-bench Verified | 23.9% | Not measured | Only GPT-4.1 Mini measured |
| LiveBench coding | Not measured | 84.5% | Only Grok 4.7 measured |
| LMArena WebDev | Not measured | 1637 | Only Grok 4.7 measured |
| AA Coding Index | 20.2 | Not measured | Only GPT-4.1 Mini measured |
| LiveCodeBench (Vals AI) | 58.2% | Not measured | Only GPT-4.1 Mini measured |
| Terminal-Bench 4 (Vals AI) | Not measured | 28.8% | Only Grok 4.7 measured |
| Vibe Code Bench (Vals AI) | Not measured | 86.2% | Only Grok 4.7 measured |
| Code migration (Vals AI) | Not measured | 44.8% | Only Grok 4.7 measured |
| ProgramBench (Vals AI) | Not measured | 0.5% | Only Grok 4.7 measured |
| 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 |
| CyberBench (Vals AI) | Not measured | 69.5% | Only Grok 4.7 measured |
| LiveCodeBench (Artificial Analysis run) | 48.3% | Not measured | Only GPT-4.1 Mini measured |
| SciCode | Not measured | 57.8% | Only Grok 4.7 measured |
| Terminal-Bench Hard (Artificial Analysis run) | 7.6% | Not measured | Only GPT-4.1 Mini measured |
| FrontierCode | Not measured | 47.6% | Only Grok 4.7 measured |
| FrontierSWE | Not measured | 29.5% | Only Grok 4.7 measured |
| WeirdML | 37.6% | Not measured | Only GPT-4.1 Mini measured |
| LMArena Text: coding | 1367 | 1432 | Grok 4.7 |
| LMArena Text: software and IT | 1360 | 1421 | Grok 4.7 |
| LMArena WebDev: React | Not measured | 1663 | Only Grok 4.7 measured |
| LMArena WebDev: HTML | Not measured | 1627 | Only Grok 4.7 measured |
| LMArena WebDev: from an image | Not measured | 1586 | Only Grok 4.7 measured |
| Neither model has a result on the other 14 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
| Benchmark | GPT-4.1 Mini | Grok 4.7 | Leader |
|---|---|---|---|
| AA Intelligence Index | 10.2 | 46.4 | Grok 4.7 |
| Epoch Capabilities Index | 134.9 | 154.4 | Grok 4.7 |
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index17 boards, none shared
| Benchmark | GPT-4.1 Mini | Grok 4.7 | Leader |
|---|---|---|---|
| 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 | 52.9% | Not measured | Only GPT-4.1 Mini measured |
| APEX-Agents | Not measured | 54.6% | Only Grok 4.7 measured |
| Vending-Bench 2 | Not measured | $10,537 | Only Grok 4.7 measured |
| Berkeley Function Calling Leaderboard (BFCL) | 50.4% | Not measured | Only GPT-4.1 Mini measured |
| Neither model has a result on the other 24 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index011
| Benchmark | GPT-4.1 Mini | Grok 4.7 | Leader |
|---|---|---|---|
| GPQA Diamond | 67.9% | Not measured | Only GPT-4.1 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) | 70.5% | Not measured | Only GPT-4.1 Mini measured |
| GPQA Diamond (Artificial Analysis run) | 66.4% | Not measured | Only GPT-4.1 Mini measured |
| Humanity's Last Exam (Artificial Analysis run) | 5.0% | 43.1% | Grok 4.7 |
| GPQA Diamond (Epoch AI run) | 65.8% | 92.7% | Grok 4.7 |
| ARC-AGI | 3.5% | 90.2% | Grok 4.7 |
| ARC-AGI-2 | 0.0% | 61.4% | Grok 4.7 |
| Chess puzzles | 1.0% | 41.0% | Grok 4.7 |
| Mystery game puzzles | 7.0% | 29.0% | Grok 4.7 |
| LMArena Text: hard prompts | 1349 | 1415 | Grok 4.7 |
| LMArena Text: expert | 1338 | 1439 | Grok 4.7 |
| LMArena Text: hard prompts in English | 1362 | 1427 | Grok 4.7 |
| LMArena Vision: diagrams | 1182 | 1254 | Grok 4.7 |
| LMArena Vision: homework | 1214 | 1309 | Grok 4.7 |
| Kagi LLM Benchmark | 48.6% | Not measured | Only GPT-4.1 Mini measured |
| Neither model has a result on the other 5 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index04
| Benchmark | GPT-4.1 Mini | Grok 4.7 | Leader |
|---|---|---|---|
| AIME | 49.4% | Not measured | Only GPT-4.1 Mini measured |
| MATH 500 (Vals AI) | 88.0% | Not measured | Only GPT-4.1 Mini measured |
| MGSM (Vals AI) | 87.8% | Not measured | Only GPT-4.1 Mini measured |
| AA Math Index | 46.3 | Not measured | Only GPT-4.1 Mini measured |
| AIME 2025 (Artificial Analysis run) | 46.3% | Not measured | Only GPT-4.1 Mini measured |
| OTIS Mock AIME | 44.7% | 98.1% | Grok 4.7 |
| FrontierMath, tiers 1 to 3 | 6.7% | 53.0% | Grok 4.7 |
| FrontierMath, tier 4 | Not measured | 17.1% | Only Grok 4.7 measured |
| ProofBench | Not measured | 26.0% | Only Grok 4.7 measured |
| MATH level 5 | 87.3% | Not measured | Only GPT-4.1 Mini measured |
| LMArena Text: math | 1343 | 1414 | Grok 4.7 |
| LMArena Text: mathematical work | 1347 | 1435 | Grok 4.7 |
| Neither model has a result on the other 1 board here | |||
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index06
| Benchmark | GPT-4.1 Mini | Grok 4.7 | Leader |
|---|---|---|---|
| MMLU Pro | 77.2% | Not measured | Only GPT-4.1 Mini measured |
| LegalBench (Vals AI) | 78.0% | 84.4% | Grok 4.7 |
| CorpFin (Vals AI) | 57.9% | Not measured | Only GPT-4.1 Mini measured |
| TaxEval (Vals AI) | 71.9% | Not measured | Only GPT-4.1 Mini measured |
| MortgageTax (Vals AI) | 65.5% | Not measured | Only GPT-4.1 Mini measured |
| MedQA (Vals AI) | 84.6% | Not measured | Only GPT-4.1 Mini measured |
| MedCode (Vals AI) | Not measured | 49.5% | Only Grok 4.7 measured |
| MMLU Pro (Artificial Analysis run) | 78.1% | Not measured | Only GPT-4.1 Mini measured |
| SimpleQA Verified | 12.7% | 56.0% | Grok 4.7 |
| LMArena Text: science | 1328 | 1419 | Grok 4.7 |
| LMArena Text: medicine and healthcare | 1324 | 1395 | Grok 4.7 |
| LMArena Text: legal and government | 1343 | 1423 | Grok 4.7 |
| LMArena Text: business and finance | 1322 | 1389 | Grok 4.7 |
| 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-4.1 Mini | Grok 4.7 | Leader |
|---|---|---|---|
| Design Arena: websites | 997 | 1254 | Grok 4.7 |
| Design Arena: UI components | 961 | 1275 | Grok 4.7 |
| Design Arena: game dev | 1071 | 1313 | Grok 4.7 |
| Design Arena: data viz | 1034 | 1235 | Grok 4.7 |
| Design Arena: 3D | 837 | 1270 | Grok 4.7 |
| Design Arena: all code categories | 994 | 1271 | Grok 4.7 |
| 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 index025
| Benchmark | GPT-4.1 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) | Not measured | 40.8% | Only Grok 4.7 measured |
| MedScribe (Vals AI) | Not measured | 89.4% | Only Grok 4.7 measured |
| IFBench | 38.3% | Not measured | Only GPT-4.1 Mini measured |
| Long context reasoning (AA-LCR) | 44.0% | 80.0% | Grok 4.7 |
| DTBench | 68.8% | 96.0% | Grok 4.7 |
| LMCA | 21.1% | 49.4% | Grok 4.7 |
| Fiction.LiveBench | 44.4% | Not measured | Only GPT-4.1 Mini measured |
| Furniture assembly | Not measured | 20.8% | Only Grok 4.7 measured |
| LMArena Text | 1341 | 1399 | Grok 4.7 |
| LMArena Text: instruction following | 1333 | 1406 | Grok 4.7 |
| LMArena Text: creative writing | 1299 | 1381 | Grok 4.7 |
| LMArena Vision | 1181 | 1231 | Grok 4.7 |
| LMArena Text: English | 1356 | 1411 | Grok 4.7 |
| LMArena Text: non-English | 1318 | 1386 | Grok 4.7 |
| LMArena Text: Chinese | 1329 | 1449 | Grok 4.7 |
| LMArena Text: German | 1350 | 1366 | Grok 4.7 |
| LMArena Text: Japanese | 1290 | 1359 | Grok 4.7 |
| LMArena Text: Korean | 1298 | 1383 | Grok 4.7 |
| LMArena Text: French | 1358 | 1431 | Grok 4.7 |
| LMArena Text: Spanish | 1319 | 1406 | Grok 4.7 |
| LMArena Text: Russian | 1324 | 1399 | Grok 4.7 |
| LMArena Text: Polish | 1326 | 1420 | Grok 4.7 |
| LMArena Text: multi-turn | 1354 | 1394 | Grok 4.7 |
| LMArena Text: longer queries | 1344 | 1416 | Grok 4.7 |
| LMArena Text: writing and language | 1319 | 1394 | Grok 4.7 |
| LMArena Text: entertainment and media | 1300 | 1376 | Grok 4.7 |
| LMArena Vision: English | 1191 | 1229 | Grok 4.7 |
| LMArena Vision: Chinese | 1186 | 1250 | Grok 4.7 |
| LMArena Vision: reading text | 1188 | 1241 | Grok 4.7 |
| LMArena Vision: humor | 1182 | Not measured | Only GPT-4.1 Mini measured |
| LMArena Vision: captioning | 1174 | Not measured | Only GPT-4.1 Mini measured |
| LMArena Vision: recognizing things | 1187 | Not measured | Only GPT-4.1 Mini measured |
| LMArena Vision: creative writing | 1182 | 1217 | Grok 4.7 |
| 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
| Benchmark | GPT-4.1 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-4.1 Mini costs less
Repository review
50K input + 3K output tokens
GPT-4.1 Mini costs less
Agent loop
200K input + 10K output tokens
GPT-4.1 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-4.1 Mini | SpaceXAI Grok 4.7 |
|---|---|---|
| Maker | OpenAI | xAI |
| Weights | No public weights listed | No public weights listed |
| Released | April 14, 2025 | September 21, 2026 |
| Context window | 1.05M | 500K |
| Input $/Mtok | $0.40 | $2.00 |
| Output $/Mtok | $1.60 | $6.00 |
| Coding index | Not benchmarked | 66.7 |
| Independent measurements behind it | 0 | 5 |
| Cost per solved task | $1.818 | Not computable |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is GPT-4.1 Mini better than Grok 4.7 for coding?
Only Grok 4.7 has a coding score, 66.7 on the Vibe Coding Index; GPT-4.1 Mini has none, so the two cannot be ranked on coding. Pick GPT-4.1 Mini for output tokens 3.8x cheaper ($1.60 vs $6.00 per million) and a larger context window (1.05M against 500K tokens).
Which is cheaper, GPT-4.1 Mini or Grok 4.7?
GPT-4.1 Mini costs $0.40 per million input tokens and $1.60 per million output tokens; Grok 4.7 costs $2.00 and $6.00. Cost per solved task is known for GPT-4.1 Mini only.
Which has the bigger context window, GPT-4.1 Mini or Grok 4.7?
GPT-4.1 Mini, with 1.05M tokens against 500K.
How many benchmarks is the GPT-4.1 Mini vs Grok 4.7 comparison based on?
56 benchmarks have a result for both models as of October 21, 2026. GPT-4.1 Mini's coding index rests on 0 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.