GPT-4.1 Nano vs Grok 4.7
Grok 4.7 leads GPT-4.1 Nano on the Artificial Analysis Intelligence Index, 46.4 to 7.8, and GPT-4.1 Nano costs 15.0x less per output token ($0.40 vs $6.00 per million). Updated October 22, 2026; 45 benchmarks have a result for both.
GPT-4.1 Nano 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 Nano has none, so the two cannot be ranked on coding.
Pick GPT-4.1 Nano for output tokens 15.0x cheaper ($0.40 vs $6.00 per million) and a larger context window (1.05M against 500K tokens).
- Shared results
- 45
- GPT-4.1 Nano only
- 26
- Grok 4.7 only
- 54
- 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 7.8.
Same board, both measured
Reasoning
GPQA Diamond
No call
Only GPT-4.1 Nano has a GPQA Diamond result, 50.8%.
Directional only
Math
AIME
No call
Only GPT-4.1 Nano has a AIME result, 26.5%.
Directional only
Knowledge
MMLU Pro
No call
Only GPT-4.1 Nano has a MMLU Pro result, 63.5%.
Directional only
Web design
Design Arena: websites
Grok 4.7
Grok 4.7 leads, 1255 against 972.
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 Nano
GPT-4.1 Nano takes 1.05M tokens against 500K.
Listed by OpenRouter
Everyday cost
1K input + 500 output tokens
GPT-4.1 Nano
GPT-4.1 Nano $0.0003, Grok 4.7 $0.0050 per turn.
List prices
At a glance
- Coding index
- GPT-4.1 Nano not benchmarked, Grok 4.7 66.7 from 5 benchmarks.
- Widest category
- Reasoning, 43.4 points apart on average over 8 shared benchmarks.
- Widest single gap
- ARC-AGI: GPT-4.1 Nano 0.0% against Grok 4.7 90.2%, 90.2 points apart on a 0 to 100 scale.
- Output price
- GPT-4.1 Nano $0.40 against Grok 4.7 $6.00 per million output tokens, 15.0x apart.
- Context window
- GPT-4.1 Nano 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 Nano | Bars | Grok 4.7 | Ties |
|---|---|---|---|---|
| Coding | 0 | 2 | ||
| Intelligence | 0 | 2 | ||
| Reasoning | 0 | 8 | ||
| Math | 0 | 3 | ||
| Knowledge | 0 | 6 | ||
| Web design | 0 | 6 | ||
| General | 0 | 18 | ||
| All shared boards | 0 | 45 |
CodingLike-for-likeSix of these boards feed the Vibe Coding Index02
| Benchmark | GPT-4.1 Nano | Grok 4.7 | Leader |
|---|---|---|---|
| Aider polyglot | 8.9% | Not measured | Only GPT-4.1 Nano 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 | 11.1 | Not measured | Only GPT-4.1 Nano measured |
| LiveCodeBench (Vals AI) | 42.7% | Not measured | Only GPT-4.1 Nano 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) | 32.6% | Not measured | Only GPT-4.1 Nano measured |
| SciCode | Not measured | 57.8% | Only Grok 4.7 measured |
| Terminal-Bench Hard (Artificial Analysis run) | 3.8% | Not measured | Only GPT-4.1 Nano measured |
| FrontierCode | Not measured | 47.6% | Only Grok 4.7 measured |
| FrontierSWE | Not measured | 29.5% | Only Grok 4.7 measured |
| WeirdML | 19.0% | Not measured | Only GPT-4.1 Nano measured |
| LMArena Text: coding | 1306 | 1432 | Grok 4.7 |
| LMArena Text: software and IT | 1305 | 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 15 boards here | |||
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
| Benchmark | GPT-4.1 Nano | Grok 4.7 | Leader |
|---|---|---|---|
| AA Intelligence Index | 7.8 | 46.4 | Grok 4.7 |
| Epoch Capabilities Index | 129.5 | 154.4 | Grok 4.7 |
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index17 boards, none shared
| Benchmark | GPT-4.1 Nano | 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 | 17.3% | Not measured | Only GPT-4.1 Nano 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) | 33.1% | Not measured | Only GPT-4.1 Nano measured |
| Neither model has a result on the other 24 boards here | |||
ReasoningLike-for-likePublic boards, shown as published, kept out of the index08
| Benchmark | GPT-4.1 Nano | Grok 4.7 | Leader |
|---|---|---|---|
| GPQA Diamond | 50.8% | Not measured | Only GPT-4.1 Nano 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) | 55.0% | Not measured | Only GPT-4.1 Nano measured |
| GPQA Diamond (Artificial Analysis run) | 51.2% | Not measured | Only GPT-4.1 Nano measured |
| Humanity's Last Exam (Artificial Analysis run) | 3.8% | 43.1% | Grok 4.7 |
| GPQA Diamond (Epoch AI run) | 48.9% | 92.7% | Grok 4.7 |
| ARC-AGI | 0.0% | 90.2% | Grok 4.7 |
| ARC-AGI-2 | 0.0% | 61.4% | Grok 4.7 |
| Chess puzzles | 0.0% | 41.0% | Grok 4.7 |
| Mystery game puzzles | Not measured | 29.0% | Only Grok 4.7 measured |
| LMArena Text: hard prompts | 1286 | 1415 | Grok 4.7 |
| LMArena Text: expert | 1271 | 1439 | Grok 4.7 |
| LMArena Text: hard prompts in English | 1293 | 1427 | Grok 4.7 |
| LMArena Vision: diagrams | Not measured | 1254 | Only Grok 4.7 measured |
| LMArena Vision: homework | Not measured | 1309 | Only Grok 4.7 measured |
| Kagi LLM Benchmark | 33.3% | Not measured | Only GPT-4.1 Nano measured |
| Neither model has a result on the other 5 boards here | |||
MathLike-for-likePublic boards, shown as published, kept out of the index03
| Benchmark | GPT-4.1 Nano | Grok 4.7 | Leader |
|---|---|---|---|
| AIME | 26.5% | Not measured | Only GPT-4.1 Nano measured |
| MATH 500 (Vals AI) | 80.2% | Not measured | Only GPT-4.1 Nano measured |
| MGSM (Vals AI) | 69.3% | Not measured | Only GPT-4.1 Nano measured |
| AA Math Index | 24.0 | Not measured | Only GPT-4.1 Nano measured |
| AIME 2025 (Artificial Analysis run) | 24.0% | Not measured | Only GPT-4.1 Nano measured |
| OTIS Mock AIME | 28.9% | 98.1% | Grok 4.7 |
| FrontierMath, tiers 1 to 3 | Not measured | 53.0% | Only Grok 4.7 measured |
| 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 | 70.0% | Not measured | Only GPT-4.1 Nano measured |
| LMArena Text: math | 1274 | 1414 | Grok 4.7 |
| LMArena Text: mathematical work | 1274 | 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 Nano | Grok 4.7 | Leader |
|---|---|---|---|
| MMLU Pro | 63.5% | Not measured | Only GPT-4.1 Nano measured |
| LegalBench (Vals AI) | 61.1% | 84.4% | Grok 4.7 |
| CorpFin (Vals AI) | 42.1% | Not measured | Only GPT-4.1 Nano measured |
| TaxEval (Vals AI) | 60.8% | Not measured | Only GPT-4.1 Nano measured |
| MortgageTax (Vals AI) | 52.8% | Not measured | Only GPT-4.1 Nano measured |
| MedQA (Vals AI) | 68.2% | Not measured | Only GPT-4.1 Nano measured |
| MedCode (Vals AI) | Not measured | 49.5% | Only Grok 4.7 measured |
| MMLU Pro (Artificial Analysis run) | 65.7% | Not measured | Only GPT-4.1 Nano measured |
| SimpleQA Verified | 6.0% | 56.0% | Grok 4.7 |
| LMArena Text: science | 1297 | 1419 | Grok 4.7 |
| LMArena Text: medicine and healthcare | 1276 | 1395 | Grok 4.7 |
| LMArena Text: legal and government | 1300 | 1423 | Grok 4.7 |
| LMArena Text: business and finance | 1267 | 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 Nano | Grok 4.7 | Leader |
|---|---|---|---|
| Design Arena: websites | 972 | 1255 | Grok 4.7 |
| Design Arena: UI components | 913 | 1275 | Grok 4.7 |
| Design Arena: game dev | 970 | 1314 | Grok 4.7 |
| Design Arena: data viz | 891 | 1238 | Grok 4.7 |
| Design Arena: 3D | 924 | 1274 | Grok 4.7 |
| Design Arena: all code categories | 962 | 1273 | 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 index018
| Benchmark | GPT-4.1 Nano | 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 | 32.0% | Not measured | Only GPT-4.1 Nano measured |
| Long context reasoning (AA-LCR) | 20.3% | 80.0% | Grok 4.7 |
| DTBench | 52.5% | 96.0% | Grok 4.7 |
| LMCA | 5.5% | 49.4% | Grok 4.7 |
| Fiction.LiveBench | 25.0% | Not measured | Only GPT-4.1 Nano measured |
| Furniture assembly | Not measured | 20.8% | Only Grok 4.7 measured |
| LMArena Text | 1285 | 1399 | Grok 4.7 |
| LMArena Text: instruction following | 1266 | 1406 | Grok 4.7 |
| LMArena Text: creative writing | 1260 | 1381 | Grok 4.7 |
| LMArena Vision | 1063 | 1231 | Grok 4.7 |
| LMArena Text: English | 1303 | 1411 | Grok 4.7 |
| LMArena Text: non-English | 1260 | 1386 | Grok 4.7 |
| LMArena Text: Chinese | 1270 | 1449 | Grok 4.7 |
| LMArena Text: German | 1288 | 1366 | Grok 4.7 |
| LMArena Text: Japanese | 1198 | 1359 | Grok 4.7 |
| LMArena Text: Korean | Not measured | 1383 | Only Grok 4.7 measured |
| LMArena Text: French | Not measured | 1431 | Only Grok 4.7 measured |
| LMArena Text: Spanish | Not measured | 1406 | Only Grok 4.7 measured |
| LMArena Text: Russian | 1261 | 1399 | Grok 4.7 |
| LMArena Text: Polish | Not measured | 1420 | Only Grok 4.7 measured |
| LMArena Text: multi-turn | 1277 | 1394 | Grok 4.7 |
| LMArena Text: longer queries | 1283 | 1416 | Grok 4.7 |
| LMArena Text: writing and language | 1261 | 1394 | Grok 4.7 |
| LMArena Text: entertainment and media | 1243 | 1376 | Grok 4.7 |
| LMArena Vision: English | 1101 | 1229 | Grok 4.7 |
| LMArena Vision: Chinese | Not measured | 1250 | Only Grok 4.7 measured |
| LMArena Vision: reading text | Not measured | 1241 | Only Grok 4.7 measured |
| LMArena Vision: creative writing | Not measured | 1217 | Only Grok 4.7 measured |
| Neither model has a result on the other 13 boards here | |||
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
| Benchmark | GPT-4.1 Nano | 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 Nano costs less
Repository review
50K input + 3K output tokens
GPT-4.1 Nano costs less
Agent loop
200K input + 10K output tokens
GPT-4.1 Nano 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 Nano | 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.10 | $2.00 |
| Output $/Mtok | $0.40 | $6.00 |
| Coding index | Not benchmarked | 66.7 |
| Independent measurements behind it | 0 | 5 |
| Cost per solved task | Not computable | Not computable |
| Source | OpenRouter listing | OpenRouter listing |
Questions
Is GPT-4.1 Nano 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 Nano has none, so the two cannot be ranked on coding. Pick GPT-4.1 Nano for output tokens 15.0x cheaper ($0.40 vs $6.00 per million) and a larger context window (1.05M against 500K tokens).
Which is cheaper, GPT-4.1 Nano or Grok 4.7?
GPT-4.1 Nano costs $0.10 per million input tokens and $0.40 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-4.1 Nano or Grok 4.7?
GPT-4.1 Nano, with 1.05M tokens against 500K.
How many benchmarks is the GPT-4.1 Nano vs Grok 4.7 comparison based on?
45 benchmarks have a result for both models as of October 22, 2026. GPT-4.1 Nano'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.