Enter opens the highlighted result. Esc closes.

GPT-5.4 Nano vs Grok 4.20

GPT-5.4 Nano leads Grok 4.20 on coding, 44.8 to 33.3 on the Vibe Coding Index, and GPT-5.4 Nano costs 2.0x less per output token ($1.25 vs $2.50 per million). Updated October 22, 2026; 36 benchmarks have a result for both.

GPT-5.4 NanoOpenAI
Coding
44.8
Overall
45.7
Output $/M
$1.25
11
Grok 4.20xAI
Coding
33.3
Overall
41.0
Output $/M
$2.50
25
vs boards won of 36 shared

GPT-5.4 Nano or Grok 4.20: which to pick

Pick GPT-5.4 Nano for coding: it scores 44.8 on the Vibe Coding Index against 33.3 for Grok 4.20.

Pick Grok 4.20 for a larger context window (2M against 400K tokens) and work measured by LiveCodeBench (Vals AI) or SWE-bench Verified (Vals AI), where it leads.

Shared results
36
GPT-5.4 Nano only
49
Grok 4.20 only
19
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.

At a glance

Coding index
GPT-5.4 Nano 44.8 from 2 benchmarks, Grok 4.20 33.3 from 2 benchmarks.
Widest category
Reasoning, 24.2 points apart on average over 7 shared benchmarks.
Widest single gap
ARC-AGI-2: GPT-5.4 Nano 5.7% against Grok 4.20 65.1%, 59.5 points apart on a 0 to 100 scale.
Output price
GPT-5.4 Nano $1.25 against Grok 4.20 $2.50 per million output tokens, 2.0x apart.
Context window
GPT-5.4 Nano takes 400K tokens, Grok 4.20 2M.

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.

Boards won, where both have a result
CategoryGPT-5.4 NanoBarsGrok 4.20Ties
Coding34
Intelligence02
Agentic work23
Reasoning07
Math01
Knowledge34
General34
All shared boards1125
CodingLike-for-likeSix of these boards feed the Vibe Coding Index34
Coding benchmarks for GPT-5.4 Nano and Grok 4.20
BenchmarkGPT-5.4 NanoGrok 4.20Leader
AA Coding Index56.1Not measuredOnly GPT-5.4 Nano measured
LiveCodeBench (Vals AI)84.0%84.3%Grok 4.20
SWE-bench Verified (Vals AI)69.8%72.2%Grok 4.20
Vibe Code Bench (Vals AI)26.1%4.1%GPT-5.4 Nano
Code migration (Vals AI)14.5%0.3%GPT-5.4 Nano
Terminal-Bench 2.1 (Vals AI)41.6%44.2%Grok 4.20
SciCode47.2%Not measuredOnly GPT-5.4 Nano measured
Terminal-Bench Hard (Artificial Analysis run)42.4%37.9%GPT-5.4 Nano
Terminal-BenchNot measured57.3%Only Grok 4.20 measured
WeirdML49.2%52.3%Grok 4.20
ALE-Bench1004.5Not measuredOnly GPT-5.4 Nano measured
LMArena Text: coding1404Not measuredOnly GPT-5.4 Nano measured
LMArena Text: software and IT1402Not measuredOnly GPT-5.4 Nano measured
Neither model has a result on the other 26 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
Intelligence benchmarks for GPT-5.4 Nano and Grok 4.20
BenchmarkGPT-5.4 NanoGrok 4.20Leader
AA Intelligence Index20.725.7Grok 4.20
Epoch Capabilities Index146.0152.1Grok 4.20
Agentic workLike-for-likePublic boards, shown as published, kept out of the index23
Agentic work benchmarks for GPT-5.4 Nano and Grok 4.20
BenchmarkGPT-5.4 NanoGrok 4.20Leader
AA Agentic Index16.0Not measuredOnly GPT-5.4 Nano measured
Design Arena: agents building web appsNot measured1144Only Grok 4.20 measured
Design Arena: agents building full-stack appsNot measured1054Only Grok 4.20 measured
Design Arena: agents building mobile appsNot measured1090Only Grok 4.20 measured
Design Arena: agents building Android appsNot measured1045Only Grok 4.20 measured
Design Arena: agents building Godot gamesNot measured1089Only Grok 4.20 measured
Design Arena: HTML slidesNot measured1180Only Grok 4.20 measured
Finance Agent (Vals AI)38.2%28.5%GPT-5.4 Nano
Tax Agent Bench (Vals AI)5.0%7.0%Grok 4.20
Legal Research Bench (Vals AI)6.3%13.9%Grok 4.20
Excel Modeling Benchmark (Vals AI)44.8%11.7%GPT-5.4 Nano
τ²-Bench Telecom76.0%93.0%Grok 4.20
Vending-Bench 2Not measured$4,663Only Grok 4.20 measured
Neither model has a result on the other 28 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index07
Reasoning benchmarks for GPT-5.4 Nano and Grok 4.20
BenchmarkGPT-5.4 NanoGrok 4.20Leader
GPQA Diamond77.5%88.6%Grok 4.20
MMMU Pro (Vals AI)73.6%83.5%Grok 4.20
GPQA Diamond (Artificial Analysis run)81.7%91.1%Grok 4.20
Humanity's Last Exam (Artificial Analysis run)28.3%34.5%Grok 4.20
GPQA Diamond (Epoch AI run)78.5%Not measuredOnly GPT-5.4 Nano measured
ARC-AGI51.5%89.5%Grok 4.20
ARC-AGI-25.7%65.1%Grok 4.20
Chess puzzles45.0%Not measuredOnly GPT-5.4 Nano measured
Mystery game puzzles9.0%Not measuredOnly GPT-5.4 Nano measured
LMArena Text: hard prompts1381Not measuredOnly GPT-5.4 Nano measured
LMArena Text: expert1396Not measuredOnly GPT-5.4 Nano measured
LMArena Text: hard prompts in English1387Not measuredOnly GPT-5.4 Nano measured
LMArena Vision: diagrams1210Not measuredOnly GPT-5.4 Nano measured
LMArena Vision: homework1225Not measuredOnly GPT-5.4 Nano measured
Kagi LLM Benchmark39.7%75.0%Grok 4.20
Neither model has a result on the other 7 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index01
Math benchmarks for GPT-5.4 Nano and Grok 4.20
BenchmarkGPT-5.4 NanoGrok 4.20Leader
AIME88.8%96.5%Grok 4.20
OTIS Mock AIME87.8%Not measuredOnly GPT-5.4 Nano measured
FrontierMath, tiers 1 to 344.9%Not measuredOnly GPT-5.4 Nano measured
FrontierMath, tier 412.2%Not measuredOnly GPT-5.4 Nano measured
ProofBench5.0%Not measuredOnly GPT-5.4 Nano measured
LMArena Text: math1405Not measuredOnly GPT-5.4 Nano measured
LMArena Text: mathematical work1409Not measuredOnly GPT-5.4 Nano measured
Neither model has a result on the other 6 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index34
Knowledge benchmarks for GPT-5.4 Nano and Grok 4.20
BenchmarkGPT-5.4 NanoGrok 4.20Leader
MMLU Pro77.2%86.3%Grok 4.20
LegalBench (Vals AI)77.9%77.7%GPT-5.4 Nano
CaseLaw (Vals AI)51.9%54.4%Grok 4.20
CorpFin (Vals AI)61.2%63.7%Grok 4.20
TaxEval (Vals AI)67.4%74.1%Grok 4.20
MortgageTax (Vals AI)59.1%45.4%GPT-5.4 Nano
MedQA (Vals AI)Not measured94.5%Only Grok 4.20 measured
MedCode (Vals AI)41.0%32.2%GPT-5.4 Nano
SimpleQA Verified11.7%Not measuredOnly GPT-5.4 Nano measured
LMArena Text: science1374Not measuredOnly GPT-5.4 Nano measured
LMArena Text: medicine and healthcare1369Not measuredOnly GPT-5.4 Nano measured
LMArena Text: legal and government1368Not measuredOnly GPT-5.4 Nano measured
LMArena Text: business and finance1366Not measuredOnly GPT-5.4 Nano measured
Neither model has a result on the other 5 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index8 boards, none shared
Web design benchmarks for GPT-5.4 Nano and Grok 4.20
BenchmarkGPT-5.4 NanoGrok 4.20Leader
Design Arena: websitesNot measured1229Only Grok 4.20 measured
Design Arena: UI componentsNot measured1200Only Grok 4.20 measured
Design Arena: game devNot measured1193Only Grok 4.20 measured
Design Arena: data vizNot measured1217Only Grok 4.20 measured
Design Arena: 3DNot measured1193Only Grok 4.20 measured
Design Arena: all code categoriesNot measured1221Only Grok 4.20 measured
Design Arena: SVGNot measured1165Only Grok 4.20 measured
Design Arena: ASCII artNot measured1175Only Grok 4.20 measured
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index34
General benchmarks for GPT-5.4 Nano and Grok 4.20
BenchmarkGPT-5.4 NanoGrok 4.20Leader
SAGE (Vals AI)38.1%38.2%Grok 4.20
MedScribe (Vals AI)77.1%63.4%GPT-5.4 Nano
Vals Multimodal Index47.6%39.1%GPT-5.4 Nano
IFBench75.9%81.2%Grok 4.20
Long context reasoning (AA-LCR)76.7%69.0%GPT-5.4 Nano
DTBench80.3%90.1%Grok 4.20
LMCA36.9%38.7%Grok 4.20
CL-benchNot measured22.2%Only Grok 4.20 measured
CL-bench LifeNot measured11.9%Only Grok 4.20 measured
LMArena Text1372Not measuredOnly GPT-5.4 Nano measured
LMArena Text: instruction following1362Not measuredOnly GPT-5.4 Nano measured
LMArena Text: creative writing1315Not measuredOnly GPT-5.4 Nano measured
LMArena Vision1196Not measuredOnly GPT-5.4 Nano measured
LMArena Text: English1381Not measuredOnly GPT-5.4 Nano measured
LMArena Text: non-English1359Not measuredOnly GPT-5.4 Nano measured
LMArena Text: Chinese1391Not measuredOnly GPT-5.4 Nano measured
LMArena Text: German1368Not measuredOnly GPT-5.4 Nano measured
LMArena Text: Japanese1343Not measuredOnly GPT-5.4 Nano measured
LMArena Text: Korean1321Not measuredOnly GPT-5.4 Nano measured
LMArena Text: French1395Not measuredOnly GPT-5.4 Nano measured
LMArena Text: Spanish1371Not measuredOnly GPT-5.4 Nano measured
LMArena Text: Russian1363Not measuredOnly GPT-5.4 Nano measured
LMArena Text: Polish1366Not measuredOnly GPT-5.4 Nano measured
LMArena Text: multi-turn1382Not measuredOnly GPT-5.4 Nano measured
LMArena Text: longer queries1365Not measuredOnly GPT-5.4 Nano measured
LMArena Text: writing and language1338Not measuredOnly GPT-5.4 Nano measured
LMArena Text: entertainment and media1325Not measuredOnly GPT-5.4 Nano measured
LMArena Vision: English1202Not measuredOnly GPT-5.4 Nano measured
LMArena Vision: Chinese1232Not measuredOnly GPT-5.4 Nano measured
LMArena Vision: reading text1204Not measuredOnly GPT-5.4 Nano measured
LMArena Vision: humor1161Not measuredOnly GPT-5.4 Nano measured
LMArena Vision: recognizing things1141Not measuredOnly GPT-5.4 Nano measured
LMArena Vision: creative writing1159Not measuredOnly GPT-5.4 Nano 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
Image generation benchmarks for GPT-5.4 Nano and Grok 4.20
BenchmarkGPT-5.4 NanoGrok 4.20Leader
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 Nano$0.0008Fits in one request
Grok 4.20$0.0025Fits in one request

GPT-5.4 Nano costs less

Repository review

50K input + 3K output tokens

GPT-5.4 Nano$0.014Fits in one request
Grok 4.20$0.070Fits in one request

GPT-5.4 Nano costs less

Agent loop

200K input + 10K output tokens

GPT-5.4 Nano$0.052Fits in one request
Grok 4.20$0.275Fits in one request

GPT-5.4 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.

Specifications of GPT-5.4 Nano and Grok 4.20
SpecificationOpenAI GPT-5.4 NanoSpaceXAI Grok 4.20
MakerOpenAIxAI
WeightsNo public weights listedNo public weights listed
ReleasedMarch 17, 2026March 31, 2026
Context window400K2M
Input $/Mtok$0.20$1.25
Output $/Mtok$1.25$2.50
Coding index44.833.3
Independent measurements behind it22
Cost per solved task$0.14$0.72
SourceOpenRouter listingOpenRouter listing

Questions

Is GPT-5.4 Nano better than Grok 4.20 for coding?

Pick GPT-5.4 Nano for coding: it scores 44.8 on the Vibe Coding Index against 33.3 for Grok 4.20. Pick Grok 4.20 for a larger context window (2M against 400K tokens) and work measured by LiveCodeBench (Vals AI) or SWE-bench Verified (Vals AI), where it leads.

Which is cheaper, GPT-5.4 Nano or Grok 4.20?

GPT-5.4 Nano costs $0.20 per million input tokens and $1.25 per million output tokens; Grok 4.20 costs $1.25 and $2.50. Per solved SWE-bench Verified task, GPT-5.4 Nano costs $0.14 and Grok 4.20 $0.72.

Which has the bigger context window, GPT-5.4 Nano or Grok 4.20?

Grok 4.20, with 2M tokens against 400K.

How many benchmarks is the GPT-5.4 Nano vs Grok 4.20 comparison based on?

36 benchmarks have a result for both models as of October 22, 2026. GPT-5.4 Nano's coding index rests on 2 independent benchmarks and Grok 4.20's on 2. Where only one model has a result, the page says so instead of naming a winner.

Compare next

Embed this comparison on your site

Free under CC BY 4.0, while the source link stays visible. Preview the frame · Terms and other embeds

<iframe src="https://llmbenchmark.ai/embed/compare/gpt-5-4-nano-vs-grok-4-20" title="GPT-5.4 Nano vs Grok 4.20, LLMBenchmark.ai" width="100%" height="360" style="border:0;max-width:100%" loading="lazy"></iframe>
<p style="font:13px/1.4 sans-serif;margin:6px 0 0">Source: <a href="https://llmbenchmark.ai/compare/gpt-5-4-nano-vs-grok-4-20">LLMBenchmark.ai, GPT-5.4 Nano vs Grok 4.20</a></p>