Enter opens the highlighted result. Esc closes.

GPT-5.4 vs Grok 4.20

GPT-5.4 leads Grok 4.20 on coding, 64.4 to 33.3 on the Vibe Coding Index, and Grok 4.20 costs 6.0x less per output token ($2.50 vs $15.00 per million). Updated October 21, 2026; 48 benchmarks have a result for both.

GPT-5.4OpenAI
Coding
64.4
Overall
69.6
Output $/M
$15.00
34
Grok 4.20xAI
Coding
33.3
Overall
41.0
Output $/M
$2.50
14
vs boards won of 48 shared

GPT-5.4 or Grok 4.20: which to pick

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

Pick Grok 4.20 for output tokens 6.0x cheaper ($2.50 vs $15.00 per million) and a lower cost per solved task ($0.72 against $1.02).

Shared results
48
GPT-5.4 only
62
Grok 4.20 only
7
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.

At a glance

Coding index
GPT-5.4 64.4 from 3 benchmarks, Grok 4.20 33.3 from 2 benchmarks.
Widest category
Coding, 24.8 points apart on average over 7 shared benchmarks.
Widest single gap
Vibe Code Bench (Vals AI): GPT-5.4 67.4% against Grok 4.20 4.1%, 63.4 points apart on a 0 to 100 scale.
Output price
GPT-5.4 $15.00 against Grok 4.20 $2.50 per million output tokens, 6.0x apart.
Context window
GPT-5.4 takes 1.05M 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.4BarsGrok 4.20Ties
Coding61
Intelligence20
Agentic work25
Reasoning61
Math10
Knowledge71
Web design35
General71
All shared boards3414
CodingLike-for-likeSix of these boards feed the Vibe Coding Index61
Coding benchmarks for GPT-5.4 and Grok 4.20
BenchmarkGPT-5.4Grok 4.20Leader
LMArena WebDev1464Not measuredOnly GPT-5.4 measured
AA Coding Index71.1Not measuredOnly GPT-5.4 measured
LiveCodeBench (Vals AI)84.1%84.3%Grok 4.20
SWE-bench Verified (Vals AI)78.2%72.2%GPT-5.4
Vibe Code Bench (Vals AI)67.4%4.1%GPT-5.4
Code migration (Vals AI)35.0%0.3%GPT-5.4
ProgramBench (Vals AI)0.5%Not measuredOnly GPT-5.4 measured
Terminal-Bench 2.1 (Vals AI)Not measured44.2%Only Grok 4.20 measured
SkillsBench (Vals AI)51.7%Not measuredOnly GPT-5.4 measured
Terminal-Bench Hard (Artificial Analysis run)57.6%37.9%GPT-5.4
Terminal-Bench81.8%57.3%GPT-5.4
GSO-Bench31.4%Not measuredOnly GPT-5.4 measured
WeirdML77.7%52.3%GPT-5.4
MirrorCode15.6%Not measuredOnly GPT-5.4 measured
ALE-Bench1607.0Not measuredOnly GPT-5.4 measured
LMArena Text: coding1496Not measuredOnly GPT-5.4 measured
LMArena Text: software and IT1491Not measuredOnly GPT-5.4 measured
LMArena WebDev: React1454Not measuredOnly GPT-5.4 measured
LMArena WebDev: HTML1478Not measuredOnly GPT-5.4 measured
LMArena WebDev: from an image1436Not measuredOnly GPT-5.4 measured
Neither model has a result on the other 19 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for GPT-5.4 and Grok 4.20
BenchmarkGPT-5.4Grok 4.20Leader
AA Intelligence Index39.025.7GPT-5.4
Epoch Capabilities Index157.3152.1GPT-5.4
Agentic workLike-for-likePublic boards, shown as published, kept out of the index25
Agentic work benchmarks for GPT-5.4 and Grok 4.20
BenchmarkGPT-5.4Grok 4.20Leader
Design Arena: agents building web apps10591144Grok 4.20
Design Arena: agents building full-stack apps10171054Grok 4.20
Design Arena: agents building mobile apps10871090Grok 4.20
Design Arena: agents building Android apps10301052Grok 4.20
Design Arena: agents building Godot games11351089GPT-5.4
Design Arena: HTML slidesNot measured1180Only Grok 4.20 measured
Finance Agent (Vals AI)Not measured28.5%Only Grok 4.20 measured
Tax Agent Bench (Vals AI)Not measured7.0%Only Grok 4.20 measured
Legal Research Bench (Vals AI)Not measured13.9%Only Grok 4.20 measured
Excel Modeling Benchmark (Vals AI)Not measured11.7%Only Grok 4.20 measured
τ²-Bench Telecom87.1%93.0%Grok 4.20
APEX-Agents52.4%Not measuredOnly GPT-5.4 measured
METR time horizons74.3%Not measuredOnly GPT-5.4 measured
DeepResearch Bench35.1%Not measuredOnly GPT-5.4 measured
PostTrainBench19.0%Not measuredOnly GPT-5.4 measured
Vending-Bench 2$6,144$4,663GPT-5.4
Neither model has a result on the other 25 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index61
Reasoning benchmarks for GPT-5.4 and Grok 4.20
BenchmarkGPT-5.4Grok 4.20Leader
GPQA Diamond91.7%88.6%GPT-5.4
MMMU Pro (Vals AI)87.5%83.5%GPT-5.4
GPQA Diamond (Artificial Analysis run)92.0%91.1%GPT-5.4
Humanity's Last Exam (Artificial Analysis run)43.7%34.5%GPT-5.4
GPQA Diamond (Epoch AI run)93.3%Not measuredOnly GPT-5.4 measured
ARC-AGI93.7%89.5%GPT-5.4
ARC-AGI-274.0%65.1%GPT-5.4
Chess puzzles48.0%Not measuredOnly GPT-5.4 measured
Mystery game puzzles37.0%Not measuredOnly GPT-5.4 measured
EBR-bench25.4%Not measuredOnly GPT-5.4 measured
LMArena Text: hard prompts1485Not measuredOnly GPT-5.4 measured
LMArena Text: expert1507Not measuredOnly GPT-5.4 measured
LMArena Text: hard prompts in English1479Not measuredOnly GPT-5.4 measured
LMArena Vision: diagrams1327Not measuredOnly GPT-5.4 measured
LMArena Vision: homework1336Not measuredOnly GPT-5.4 measured
Kagi LLM Benchmark63.8%75.0%Grok 4.20
Neither model has a result on the other 6 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index10
Math benchmarks for GPT-5.4 and Grok 4.20
BenchmarkGPT-5.4Grok 4.20Leader
AIME96.7%96.5%GPT-5.4
OTIS Mock AIME97.8%Not measuredOnly GPT-5.4 measured
FrontierMath, tiers 1 to 378.6%Not measuredOnly GPT-5.4 measured
FrontierMath, tier 449.0%Not measuredOnly GPT-5.4 measured
ProofBench56.0%Not measuredOnly GPT-5.4 measured
LMArena Text: math1488Not measuredOnly GPT-5.4 measured
LMArena Text: mathematical work1497Not measuredOnly GPT-5.4 measured
Neither model has a result on the other 6 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index71
Knowledge benchmarks for GPT-5.4 and Grok 4.20
BenchmarkGPT-5.4Grok 4.20Leader
MMLU Pro87.5%86.3%GPT-5.4
LegalBench (Vals AI)86.0%77.7%GPT-5.4
CaseLaw (Vals AI)63.8%54.4%GPT-5.4
CorpFin (Vals AI)65.3%63.7%GPT-5.4
TaxEval (Vals AI)74.0%74.1%Grok 4.20
MortgageTax (Vals AI)68.3%45.4%GPT-5.4
MedQA (Vals AI)96.1%94.5%GPT-5.4
MedCode (Vals AI)41.3%32.2%GPT-5.4
SimpleQA Verified45.1%Not measuredOnly GPT-5.4 measured
LMArena Text: science1479Not measuredOnly GPT-5.4 measured
LMArena Text: medicine and healthcare1458Not measuredOnly GPT-5.4 measured
LMArena Text: legal and government1486Not measuredOnly GPT-5.4 measured
LMArena Text: business and finance1474Not measuredOnly GPT-5.4 measured
Neither model has a result on the other 5 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index35
Web design benchmarks for GPT-5.4 and Grok 4.20
BenchmarkGPT-5.4Grok 4.20Leader
Design Arena: websites11991229Grok 4.20
Design Arena: UI components12151199GPT-5.4
Design Arena: game dev11951192GPT-5.4
Design Arena: data viz11961217Grok 4.20
Design Arena: 3D10661193Grok 4.20
Design Arena: all code categories11801221Grok 4.20
Design Arena: SVG11421164Grok 4.20
Design Arena: ASCII art11881174GPT-5.4
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index71
General benchmarks for GPT-5.4 and Grok 4.20
BenchmarkGPT-5.4Grok 4.20Leader
SAGE (Vals AI)43.3%38.2%GPT-5.4
MedScribe (Vals AI)77.5%63.4%GPT-5.4
Vals Multimodal IndexNot measured39.1%Only Grok 4.20 measured
IFBench73.9%81.2%Grok 4.20
Long context reasoning (AA-LCR)82.0%69.0%GPT-5.4
DTBench94.4%90.1%GPT-5.4
LMCA52.0%38.7%GPT-5.4
CL-bench27.9%22.2%GPT-5.4
Furniture assembly37.5%Not measuredOnly GPT-5.4 measured
CL-bench Life21.7%11.9%GPT-5.4
LMArena Text1469Not measuredOnly GPT-5.4 measured
LMArena Text: instruction following1469Not measuredOnly GPT-5.4 measured
LMArena Text: creative writing1439Not measuredOnly GPT-5.4 measured
LMArena Vision1303Not measuredOnly GPT-5.4 measured
LMArena Text: English1467Not measuredOnly GPT-5.4 measured
LMArena Text: non-English1465Not measuredOnly GPT-5.4 measured
LMArena Text: Chinese1520Not measuredOnly GPT-5.4 measured
LMArena Text: German1472Not measuredOnly GPT-5.4 measured
LMArena Text: Japanese1485Not measuredOnly GPT-5.4 measured
LMArena Text: Korean1449Not measuredOnly GPT-5.4 measured
LMArena Text: French1493Not measuredOnly GPT-5.4 measured
LMArena Text: Spanish1452Not measuredOnly GPT-5.4 measured
LMArena Text: Russian1480Not measuredOnly GPT-5.4 measured
LMArena Text: Polish1472Not measuredOnly GPT-5.4 measured
LMArena Text: multi-turn1482Not measuredOnly GPT-5.4 measured
LMArena Text: longer queries1473Not measuredOnly GPT-5.4 measured
LMArena Text: writing and language1458Not measuredOnly GPT-5.4 measured
LMArena Text: entertainment and media1438Not measuredOnly GPT-5.4 measured
LMArena Vision: English1301Not measuredOnly GPT-5.4 measured
LMArena Vision: Chinese1354Not measuredOnly GPT-5.4 measured
LMArena Vision: reading text1312Not measuredOnly GPT-5.4 measured
LMArena Vision: humor1284Not measuredOnly GPT-5.4 measured
LMArena Vision: recognizing things1251Not measuredOnly GPT-5.4 measured
LMArena Vision: creative writing1283Not measuredOnly GPT-5.4 measured
LMArena Document1471Not measuredOnly GPT-5.4 measured
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
Image generation benchmarks for GPT-5.4 and Grok 4.20
BenchmarkGPT-5.4Grok 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$0.010Fits in one request
Grok 4.20$0.0025Fits in one request

Grok 4.20 costs less

Repository review

50K input + 3K output tokens

GPT-5.4$0.170Fits in one request
Grok 4.20$0.070Fits in one request

Grok 4.20 costs less

Agent loop

200K input + 10K output tokens

GPT-5.4$0.650Fits in one request
Grok 4.20$0.275Fits in one request

Grok 4.20 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 and Grok 4.20
SpecificationOpenAI GPT-5.4SpaceXAI Grok 4.20
MakerOpenAIxAI
WeightsNo public weights listedNo public weights listed
ReleasedMarch 5, 2026March 31, 2026
Context window1.05M2M
Input $/Mtok$2.50$1.25
Output $/Mtok$15.00$2.50
Coding index64.433.3
Independent measurements behind it32
Cost per solved task$1.02$0.72
SourceOpenRouter listingOpenRouter listing

Questions

Is GPT-5.4 better than Grok 4.20 for coding?

Pick GPT-5.4 for coding: it scores 64.4 on the Vibe Coding Index against 33.3 for Grok 4.20. Pick Grok 4.20 for output tokens 6.0x cheaper ($2.50 vs $15.00 per million) and a lower cost per solved task ($0.72 against $1.02).

Which is cheaper, GPT-5.4 or Grok 4.20?

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

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

Grok 4.20, with 2M tokens against 1.05M.

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

48 benchmarks have a result for both models as of October 21, 2026. GPT-5.4's coding index rests on 3 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-vs-grok-4-20" title="GPT-5.4 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-vs-grok-4-20">LLMBenchmark.ai, GPT-5.4 vs Grok 4.20</a></p>