Enter opens the highlighted result. Esc closes.

GPT-5.4 vs Grok 4.7

Grok 4.7 leads GPT-5.4 on coding, 66.7 to 64.4 on the Vibe Coding Index, and Grok 4.7 costs 2.5x less per output token ($6.00 vs $15.00 per million). Updated October 22, 2026; 71 benchmarks have a result for both.

GPT-5.4OpenAI
Coding
64.4
Overall
69.6
Output $/M
$15.00
50
Grok 4.7xAI
Coding
66.7
Overall
66.6
Output $/M
$6.00
20
vs boards won of 71 shared, 1 tied

GPT-5.4 or Grok 4.7: which to pick

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

Pick GPT-5.4 for a larger context window (1.05M against 500K tokens) and work measured by LMArena Text: coding or LMArena Text: software and IT, where it leads.

Shared results
71
GPT-5.4 only
39
Grok 4.7 only
28
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.7 66.7 from 5 benchmarks.
Widest category
Math, 18.4 points apart on average over 6 shared benchmarks.
Widest single gap
FrontierMath, tier 4: GPT-5.4 49.0% against Grok 4.7 17.1%, 31.9 points apart on a 0 to 100 scale.
Output price
GPT-5.4 $15.00 against Grok 4.7 $6.00 per million output tokens, 2.5x apart.
Context window
GPT-5.4 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.

Boards won, where both have a result
CategoryGPT-5.4BarsGrok 4.7Ties
Coding261 tie
Intelligence11
Agentic work02
Reasoning110
Math51
Knowledge52
Web design06
General262
All shared boards50201 tie
CodingLike-for-likeSix of these boards feed the Vibe Coding Index26
Coding benchmarks for GPT-5.4 and Grok 4.7
BenchmarkGPT-5.4Grok 4.7Leader
LiveBench codingNot measured84.5%Only Grok 4.7 measured
LMArena WebDev14641637Grok 4.7
AA Coding Index71.1Not measuredOnly GPT-5.4 measured
LiveCodeBench (Vals AI)84.1%Not measuredOnly GPT-5.4 measured
SWE-bench Verified (Vals AI)78.2%Not measuredOnly GPT-5.4 measured
Terminal-Bench 4 (Vals AI)Not measured28.8%Only Grok 4.7 measured
Vibe Code Bench (Vals AI)67.4%86.2%Grok 4.7
Code migration (Vals AI)35.0%44.8%Grok 4.7
ProgramBench (Vals AI)0.5%0.5%Tie
IOI (Vals AI)Not measured57.7%Only Grok 4.7 measured
Terminal-Bench 2.1 (Vals AI)Not measured73.4%Only Grok 4.7 measured
SWE-bench Multimodal (Vals AI)Not measured42.9%Only Grok 4.7 measured
SkillsBench (Vals AI)51.7%Not measuredOnly GPT-5.4 measured
CyberBench (Vals AI)Not measured69.5%Only Grok 4.7 measured
SciCodeNot measured57.8%Only Grok 4.7 measured
Terminal-Bench Hard (Artificial Analysis run)57.6%Not measuredOnly GPT-5.4 measured
Terminal-Bench81.8%Not measuredOnly GPT-5.4 measured
FrontierCodeNot measured47.6%Only Grok 4.7 measured
FrontierSWENot measured29.5%Only Grok 4.7 measured
GSO-Bench31.4%Not measuredOnly GPT-5.4 measured
WeirdML77.7%Not measuredOnly GPT-5.4 measured
MirrorCode15.6%Not measuredOnly GPT-5.4 measured
ALE-Bench1607.0Not measuredOnly GPT-5.4 measured
LMArena Text: coding14961432GPT-5.4
LMArena Text: software and IT14911421GPT-5.4
LMArena WebDev: React14541663Grok 4.7
LMArena WebDev: HTML14781627Grok 4.7
LMArena WebDev: from an image14361586Grok 4.7
Neither model has a result on the other 11 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index11
Intelligence benchmarks for GPT-5.4 and Grok 4.7
BenchmarkGPT-5.4Grok 4.7Leader
AA Intelligence Index39.046.4Grok 4.7
Epoch Capabilities Index157.3154.4GPT-5.4
Agentic workLike-for-likePublic boards, shown as published, kept out of the index02
Agentic work benchmarks for GPT-5.4 and Grok 4.7
BenchmarkGPT-5.4Grok 4.7Leader
Design Arena: agents building web apps1059Not measuredOnly GPT-5.4 measured
Design Arena: agents building full-stack apps1017Not measuredOnly GPT-5.4 measured
Design Arena: agents building mobile apps1087Not measuredOnly GPT-5.4 measured
Design Arena: agents building Android apps1031Not measuredOnly GPT-5.4 measured
Design Arena: agents building Godot games1135Not measuredOnly GPT-5.4 measured
LiveBench researchNot measured86.4%Only Grok 4.7 measured
LiveBench browserNot measured60.0%Only Grok 4.7 measured
LiveBench long agenticNot measured50.1%Only Grok 4.7 measured
SREBench (Vals AI)Not measured3.8%Only Grok 4.7 measured
Finance Agent (Vals AI)Not measured52.3%Only Grok 4.7 measured
Tax Agent Bench (Vals AI)Not measured34.2%Only Grok 4.7 measured
Legal Research Bench (Vals AI)Not measured47.1%Only Grok 4.7 measured
Harvey's Legal Agent Benchmark (Vals AI)Not measured18.3%Only Grok 4.7 measured
Excel Modeling Benchmark (Vals AI)Not measured67.0%Only Grok 4.7 measured
BioMysteryBench (Vals AI)Not measured69.3%Only Grok 4.7 measured
Terminal-Bench-Science (Vals AI)Not measured10.0%Only Grok 4.7 measured
Vals Science IndexNot measured34.8%Only Grok 4.7 measured
Robo-bench (Vals AI)Not measured0.2%Only Grok 4.7 measured
τ²-Bench Telecom87.1%Not measuredOnly GPT-5.4 measured
APEX-Agents52.4%54.6%Grok 4.7
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$10,537Grok 4.7
Neither model has a result on the other 17 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index110
Reasoning benchmarks for GPT-5.4 and Grok 4.7
BenchmarkGPT-5.4Grok 4.7Leader
GPQA Diamond91.7%Not measuredOnly GPT-5.4 measured
LiveBench reasoningNot measured82.7%Only Grok 4.7 measured
MysteryMechanism (Vals AI)Not measured25.2%Only Grok 4.7 measured
MMMU Pro (Vals AI)87.5%Not measuredOnly GPT-5.4 measured
GPQA Diamond (Artificial Analysis run)92.0%Not measuredOnly GPT-5.4 measured
Humanity's Last Exam (Artificial Analysis run)43.7%43.1%GPT-5.4
GPQA Diamond (Epoch AI run)93.3%92.7%GPT-5.4
ARC-AGI93.7%90.2%GPT-5.4
ARC-AGI-274.0%61.4%GPT-5.4
Chess puzzles48.0%41.0%GPT-5.4
Mystery game puzzles37.0%29.0%GPT-5.4
EBR-bench25.4%Not measuredOnly GPT-5.4 measured
LMArena Text: hard prompts14851415GPT-5.4
LMArena Text: expert15071439GPT-5.4
LMArena Text: hard prompts in English14791427GPT-5.4
LMArena Vision: diagrams13271254GPT-5.4
LMArena Vision: homework13361309GPT-5.4
Kagi LLM Benchmark63.8%Not measuredOnly GPT-5.4 measured
Neither model has a result on the other 4 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index51
Math benchmarks for GPT-5.4 and Grok 4.7
BenchmarkGPT-5.4Grok 4.7Leader
AIME96.7%Not measuredOnly GPT-5.4 measured
OTIS Mock AIME97.8%98.1%Grok 4.7
FrontierMath, tiers 1 to 378.6%53.0%GPT-5.4
FrontierMath, tier 449.0%17.1%GPT-5.4
ProofBench56.0%26.0%GPT-5.4
LMArena Text: math14881414GPT-5.4
LMArena Text: mathematical work14971435GPT-5.4
Neither model has a result on the other 6 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index52
Knowledge benchmarks for GPT-5.4 and Grok 4.7
BenchmarkGPT-5.4Grok 4.7Leader
MMLU Pro87.5%Not measuredOnly GPT-5.4 measured
LegalBench (Vals AI)86.0%84.4%GPT-5.4
CaseLaw (Vals AI)63.8%Not measuredOnly GPT-5.4 measured
CorpFin (Vals AI)65.3%Not measuredOnly GPT-5.4 measured
TaxEval (Vals AI)74.0%Not measuredOnly GPT-5.4 measured
MortgageTax (Vals AI)68.3%Not measuredOnly GPT-5.4 measured
MedQA (Vals AI)96.1%Not measuredOnly GPT-5.4 measured
MedCode (Vals AI)41.3%49.5%Grok 4.7
SimpleQA Verified45.1%56.0%Grok 4.7
LMArena Text: science14791419GPT-5.4
LMArena Text: medicine and healthcare14581395GPT-5.4
LMArena Text: legal and government14861423GPT-5.4
LMArena Text: business and finance14741389GPT-5.4
Neither model has a result on the other 5 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index06
Web design benchmarks for GPT-5.4 and Grok 4.7
BenchmarkGPT-5.4Grok 4.7Leader
Design Arena: websites11981255Grok 4.7
Design Arena: UI components12121275Grok 4.7
Design Arena: game dev11941314Grok 4.7
Design Arena: data viz11961238Grok 4.7
Design Arena: 3D10651274Grok 4.7
Design Arena: all code categories11791273Grok 4.7
Design Arena: SVG1141Not measuredOnly GPT-5.4 measured
Design Arena: ASCII art1188Not measuredOnly GPT-5.4 measured
LiveBench designNot measured78.0%Only Grok 4.7 measured
GeneralLike-for-likePublic boards, shown as published, kept out of the index262
General benchmarks for GPT-5.4 and Grok 4.7
BenchmarkGPT-5.4Grok 4.7Leader
Vals IndexNot measured58.6%Only Grok 4.7 measured
LiveBench data analysisNot measured76.9%Only Grok 4.7 measured
Public Benefits Bench (Vals AI)Not measured65.6%Only Grok 4.7 measured
SAGE (Vals AI)43.3%40.8%GPT-5.4
MedScribe (Vals AI)77.5%89.4%Grok 4.7
IFBench73.9%Not measuredOnly GPT-5.4 measured
Long context reasoning (AA-LCR)82.0%80.0%GPT-5.4
DTBench94.4%96.0%Grok 4.7
LMCA52.0%49.4%GPT-5.4
CL-bench27.9%Not measuredOnly GPT-5.4 measured
Furniture assembly37.5%20.8%GPT-5.4
CL-bench Life21.7%Not measuredOnly GPT-5.4 measured
LMArena Text14691399GPT-5.4
LMArena Text: instruction following14691406GPT-5.4
LMArena Text: creative writing14391381GPT-5.4
LMArena Vision13031231GPT-5.4
LMArena Text: English14671411GPT-5.4
LMArena Text: non-English14651386GPT-5.4
LMArena Text: Chinese15201449GPT-5.4
LMArena Text: German14721366GPT-5.4
LMArena Text: Japanese14851359GPT-5.4
LMArena Text: Korean14491383GPT-5.4
LMArena Text: French14931431GPT-5.4
LMArena Text: Spanish14521406GPT-5.4
LMArena Text: Russian14801399GPT-5.4
LMArena Text: Polish14721420GPT-5.4
LMArena Text: multi-turn14821394GPT-5.4
LMArena Text: longer queries14731416GPT-5.4
LMArena Text: writing and language14581394GPT-5.4
LMArena Text: entertainment and media14381376GPT-5.4
LMArena Vision: English13011229GPT-5.4
LMArena Vision: Chinese13541250GPT-5.4
LMArena Vision: reading text13121241GPT-5.4
LMArena Vision: humor1284Not measuredOnly GPT-5.4 measured
LMArena Vision: recognizing things1251Not measuredOnly GPT-5.4 measured
LMArena Vision: creative writing12831217GPT-5.4
LMArena Document1471Not measuredOnly GPT-5.4 measured
Neither model has a result on the other 9 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.7
BenchmarkGPT-5.4Grok 4.7Leader
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.7$0.0050Fits in one request

Grok 4.7 costs less

Repository review

50K input + 3K output tokens

GPT-5.4$0.170Fits in one request
Grok 4.7$0.118Fits in one request

Grok 4.7 costs less

Agent loop

200K input + 10K output tokens

GPT-5.4$0.650Fits in one request
Grok 4.7$0.460Fits in one request

Grok 4.7 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.7
SpecificationOpenAI GPT-5.4SpaceXAI Grok 4.7
MakerOpenAIxAI
WeightsNo public weights listedNo public weights listed
ReleasedMarch 5, 2026September 21, 2026
Context window1.05M500K
Input $/Mtok$2.50$2.00
Output $/Mtok$15.00$6.00
Coding index64.466.7
Independent measurements behind it35
Cost per solved task$1.02Not computable
SourceOpenRouter listingOpenRouter listing

Questions

Is GPT-5.4 better than Grok 4.7 for coding?

Pick Grok 4.7 for coding: it scores 66.7 on the Vibe Coding Index against 64.4 for GPT-5.4. Pick GPT-5.4 for a larger context window (1.05M against 500K tokens) and work measured by LMArena Text: coding or LMArena Text: software and IT, where it leads.

Which is cheaper, GPT-5.4 or Grok 4.7?

GPT-5.4 costs $2.50 per million input tokens and $15.00 per million output tokens; Grok 4.7 costs $2.00 and $6.00. Cost per solved task is known for GPT-5.4 only.

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

GPT-5.4, with 1.05M tokens against 500K.

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

71 benchmarks have a result for both models as of October 22, 2026. GPT-5.4's coding index rests on 3 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.

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-7" title="GPT-5.4 vs Grok 4.7, 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-7">LLMBenchmark.ai, GPT-5.4 vs Grok 4.7</a></p>