Enter opens the highlighted result. Esc closes.

GPT-4.1 vs Grok 4.7

Grok 4.7 leads GPT-4.1 on the Artificial Analysis Intelligence Index, 46.4 to 12.7, and Grok 4.7 costs 1.3x less per output token ($6.00 vs $8.00 per million). Updated October 22, 2026; 55 benchmarks have a result for both.

GPT-4.1OpenAI
Coding
No data
Overall
36.5
Output $/M
$8.00
2
Grok 4.7xAI
Coding
66.7
Overall
66.6
Output $/M
$6.00
53
vs boards won of 55 shared

GPT-4.1 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 has none, so the two cannot be ranked on coding.

Pick GPT-4.1 for a larger context window (1.05M against 500K tokens) and work measured by LMArena Text: German or LMArena Text: multi-turn, where it leads.

Shared results
55
GPT-4.1 only
37
Grok 4.7 only
44
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-4.1 not benchmarked, Grok 4.7 66.7 from 5 benchmarks.
Widest category
Web design, 32.0 points apart on average over 6 shared benchmarks.
Widest single gap
ARC-AGI: GPT-4.1 5.5% against Grok 4.7 90.2%, 84.7 points apart on a 0 to 100 scale.
Output price
GPT-4.1 $8.00 against Grok 4.7 $6.00 per million output tokens, 1.3x apart.
Context window
GPT-4.1 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-4.1BarsGrok 4.7Ties
Coding02
Intelligence02
Reasoning010
Math04
Knowledge06
Web design06
General223
All shared boards253
CodingLike-for-likeSix of these boards feed the Vibe Coding Index02
Coding benchmarks for GPT-4.1 and Grok 4.7
BenchmarkGPT-4.1Grok 4.7Leader
Aider polyglot52.4%Not measuredOnly GPT-4.1 measured
SWE-bench Verified39.6%Not measuredOnly GPT-4.1 measured
SWE-bench Multimodal31.1%Not measuredOnly GPT-4.1 measured
LiveBench codingNot measured84.5%Only Grok 4.7 measured
LMArena WebDevNot measured1637Only Grok 4.7 measured
LiveCodeBench (Vals AI)54.7%Not measuredOnly GPT-4.1 measured
Terminal-Bench 4 (Vals AI)Not measured28.8%Only Grok 4.7 measured
Vibe Code Bench (Vals AI)Not measured86.2%Only Grok 4.7 measured
Code migration (Vals AI)Not measured44.8%Only Grok 4.7 measured
ProgramBench (Vals AI)Not measured0.5%Only Grok 4.7 measured
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
CyberBench (Vals AI)Not measured69.5%Only Grok 4.7 measured
LiveCodeBench (Artificial Analysis run)45.7%Not measuredOnly GPT-4.1 measured
SciCodeNot measured57.8%Only Grok 4.7 measured
Terminal-Bench Hard (Artificial Analysis run)13.6%Not measuredOnly GPT-4.1 measured
FrontierCodeNot measured47.6%Only Grok 4.7 measured
FrontierSWENot measured29.5%Only Grok 4.7 measured
WeirdML39.0%Not measuredOnly GPT-4.1 measured
ALE-Bench558.1Not measuredOnly GPT-4.1 measured
LMArena Text: coding13901432Grok 4.7
LMArena Text: software and IT13911421Grok 4.7
LMArena WebDev: ReactNot measured1663Only Grok 4.7 measured
LMArena WebDev: HTMLNot measured1627Only Grok 4.7 measured
LMArena WebDev: from an imageNot measured1586Only Grok 4.7 measured
SciCode4.6%Not measuredOnly GPT-4.1 measured
Neither model has a result on the other 12 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
Intelligence benchmarks for GPT-4.1 and Grok 4.7
BenchmarkGPT-4.1Grok 4.7Leader
AA Intelligence Index12.746.4Grok 4.7
Epoch Capabilities Index136.7154.4Grok 4.7
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index18 boards, none shared
Agentic work benchmarks for GPT-4.1 and Grok 4.7
BenchmarkGPT-4.1Grok 4.7Leader
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 Telecom47.1%Not measuredOnly GPT-4.1 measured
APEX-AgentsNot measured54.6%Only Grok 4.7 measured
Vending-Bench 2Not measured$10,537Only Grok 4.7 measured
Berkeley Function Calling Leaderboard (BFCL)54.0%Not measuredOnly GPT-4.1 measured
BrowseComp-Plus36.4%Not measuredOnly GPT-4.1 measured
Neither model has a result on the other 23 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index010
Reasoning benchmarks for GPT-4.1 and Grok 4.7
BenchmarkGPT-4.1Grok 4.7Leader
GPQA Diamond65.4%Not measuredOnly GPT-4.1 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)72.4%Not measuredOnly GPT-4.1 measured
GPQA Diamond (Artificial Analysis run)66.6%Not measuredOnly GPT-4.1 measured
Humanity's Last Exam (Artificial Analysis run)4.2%43.1%Grok 4.7
GPQA Diamond (Epoch AI run)66.9%92.7%Grok 4.7
ARC-AGI5.5%90.2%Grok 4.7
ARC-AGI-20.4%61.4%Grok 4.7
SimpleBench27.0%Not measuredOnly GPT-4.1 measured
Chess puzzles3.0%41.0%Grok 4.7
Mystery game puzzlesNot measured29.0%Only Grok 4.7 measured
LMArena Text: hard prompts13841415Grok 4.7
LMArena Text: expert13641439Grok 4.7
LMArena Text: hard prompts in English13931427Grok 4.7
LMArena Vision: diagrams12151254Grok 4.7
LMArena Vision: homework12481309Grok 4.7
Kagi LLM Benchmark52.3%Not measuredOnly GPT-4.1 measured
Neither model has a result on the other 4 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index04
Math benchmarks for GPT-4.1 and Grok 4.7
BenchmarkGPT-4.1Grok 4.7Leader
AIME39.6%Not measuredOnly GPT-4.1 measured
MATH 500 (Vals AI)87.2%Not measuredOnly GPT-4.1 measured
MGSM (Vals AI)87.7%Not measuredOnly GPT-4.1 measured
AA Math Index34.7Not measuredOnly GPT-4.1 measured
AIME 2025 (Artificial Analysis run)34.7%Not measuredOnly GPT-4.1 measured
OTIS Mock AIME38.3%98.1%Grok 4.7
FrontierMath, tiers 1 to 36.0%53.0%Grok 4.7
FrontierMath, tier 4Not measured17.1%Only Grok 4.7 measured
ProofBenchNot measured26.0%Only Grok 4.7 measured
MATH level 583.0%Not measuredOnly GPT-4.1 measured
LMArena Text: math13691414Grok 4.7
LMArena Text: mathematical work13601435Grok 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
Knowledge benchmarks for GPT-4.1 and Grok 4.7
BenchmarkGPT-4.1Grok 4.7Leader
MMLU Pro80.5%Not measuredOnly GPT-4.1 measured
LegalBench (Vals AI)83.1%84.4%Grok 4.7
CaseLaw (Vals AI)69.9%Not measuredOnly GPT-4.1 measured
CorpFin (Vals AI)63.0%Not measuredOnly GPT-4.1 measured
TaxEval (Vals AI)75.1%Not measuredOnly GPT-4.1 measured
MortgageTax (Vals AI)65.9%Not measuredOnly GPT-4.1 measured
MedQA (Vals AI)91.2%Not measuredOnly GPT-4.1 measured
MedCode (Vals AI)Not measured49.5%Only Grok 4.7 measured
MMLU Pro (Artificial Analysis run)80.6%Not measuredOnly GPT-4.1 measured
SimpleQA Verified31.1%56.0%Grok 4.7
GeoBench72.0%Not measuredOnly GPT-4.1 measured
LMArena Text: science13821419Grok 4.7
LMArena Text: medicine and healthcare13791395Grok 4.7
LMArena Text: legal and government13991423Grok 4.7
LMArena Text: business and finance13691389Grok 4.7
FACTS Benchmark Suite45.8%Not measuredOnly GPT-4.1 measured
Neither model has a result on the other 2 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index06
Web design benchmarks for GPT-4.1 and Grok 4.7
BenchmarkGPT-4.1Grok 4.7Leader
Design Arena: websites10381255Grok 4.7
Design Arena: UI components9971275Grok 4.7
Design Arena: game dev10791314Grok 4.7
Design Arena: data viz11041238Grok 4.7
Design Arena: 3D8491274Grok 4.7
Design Arena: all code categories10251273Grok 4.7
LiveBench designNot measured78.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 index223
General benchmarks for GPT-4.1 and Grok 4.7
BenchmarkGPT-4.1Grok 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)Not measured40.8%Only Grok 4.7 measured
MedScribe (Vals AI)Not measured89.4%Only Grok 4.7 measured
IFBench43.0%Not measuredOnly GPT-4.1 measured
Long context reasoning (AA-LCR)68.3%80.0%Grok 4.7
DTBench68.3%96.0%Grok 4.7
LMCA25.6%49.4%Grok 4.7
Fiction.LiveBench63.9%Not measuredOnly GPT-4.1 measured
Furniture assemblyNot measured20.8%Only Grok 4.7 measured
LMArena Text13831399Grok 4.7
LMArena Text: instruction following13671406Grok 4.7
LMArena Text: creative writing13631381Grok 4.7
LMArena Vision12101231Grok 4.7
LMArena Text: English13921411Grok 4.7
LMArena Text: non-English13701386Grok 4.7
LMArena Text: Chinese13821449Grok 4.7
LMArena Text: German13811366GPT-4.1
LMArena Text: Japanese13191359Grok 4.7
LMArena Text: Korean13381383Grok 4.7
LMArena Text: French13821431Grok 4.7
LMArena Text: Spanish13761406Grok 4.7
LMArena Text: Russian13771399Grok 4.7
LMArena Text: Polish13891420Grok 4.7
LMArena Text: multi-turn13971394GPT-4.1
LMArena Text: longer queries13851416Grok 4.7
LMArena Text: writing and language13711394Grok 4.7
LMArena Text: entertainment and media13651376Grok 4.7
LMArena Vision: English12091229Grok 4.7
LMArena Vision: Chinese12261250Grok 4.7
LMArena Vision: reading text12181241Grok 4.7
LMArena Vision: humor1196Not measuredOnly GPT-4.1 measured
LMArena Vision: captioning1207Not measuredOnly GPT-4.1 measured
LMArena Vision: recognizing things1208Not measuredOnly GPT-4.1 measured
LMArena Vision: creative writing12101217Grok 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
Image generation benchmarks for GPT-4.1 and Grok 4.7
BenchmarkGPT-4.1Grok 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-4.1$0.0060Fits in one request
Grok 4.7$0.0050Fits in one request

Grok 4.7 costs less

Repository review

50K input + 3K output tokens

GPT-4.1$0.124Fits in one request
Grok 4.7$0.118Fits in one request

Grok 4.7 costs less

Agent loop

200K input + 10K output tokens

GPT-4.1$0.480Fits 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-4.1 and Grok 4.7
SpecificationOpenAI GPT-4.1SpaceXAI Grok 4.7
MakerOpenAIxAI
WeightsNo public weights listedNo public weights listed
ReleasedApril 14, 2025September 21, 2026
Context window1.05M500K
Input $/Mtok$2.00$2.00
Output $/Mtok$8.00$6.00
Coding indexNot benchmarked66.7
Independent measurements behind it05
Cost per solved task$0.37Not computable
SourceOpenRouter listingOpenRouter listing

Questions

Is GPT-4.1 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 has none, so the two cannot be ranked on coding. Pick GPT-4.1 for a larger context window (1.05M against 500K tokens) and work measured by LMArena Text: German or LMArena Text: multi-turn, where it leads.

Which is cheaper, GPT-4.1 or Grok 4.7?

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

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

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

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

55 benchmarks have a result for both models as of October 22, 2026. GPT-4.1'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.

Compare next