Enter opens the highlighted result. Esc closes.

GPT-4.1 Mini vs Grok 4.20

Grok 4.20 leads GPT-4.1 Mini on the Artificial Analysis Intelligence Index, 25.7 to 10.2, and GPT-4.1 Mini costs 1.6x less per output token ($1.60 vs $2.50 per million). Updated October 21, 2026; 30 benchmarks have a result for both.

GPT-4.1 MiniOpenAI
Coding
No data
Overall
31.9
Output $/M
$1.60
2
Grok 4.20xAI
Coding
33.3
Overall
41.0
Output $/M
$2.50
28
vs boards won of 30 shared

GPT-4.1 Mini or Grok 4.20: which to pick

Only Grok 4.20 has a coding score, 33.3 on the Vibe Coding Index; GPT-4.1 Mini has none, so the two cannot be ranked on coding.

Pick GPT-4.1 Mini for output tokens 1.6x cheaper ($1.60 vs $2.50 per million) and work measured by LegalBench (Vals AI) or MortgageTax (Vals AI), where it leads.

Shared results
30
GPT-4.1 Mini only
56
Grok 4.20 only
25
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-4.1 Mini not benchmarked, Grok 4.20 33.3 from 2 benchmarks.
Widest category
Math, 47.1 points apart on average over 1 shared benchmark.
Widest single gap
ARC-AGI: GPT-4.1 Mini 3.5% against Grok 4.20 89.5%, 86.0 points apart on a 0 to 100 scale.
Output price
GPT-4.1 Mini $1.60 against Grok 4.20 $2.50 per million output tokens, 1.6x apart.
Context window
GPT-4.1 Mini 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-4.1 MiniBarsGrok 4.20Ties
Coding03
Intelligence02
Agentic work01
Reasoning07
Math01
Knowledge24
Web design06
General04
All shared boards228
CodingLike-for-likeSix of these boards feed the Vibe Coding Index03
Coding benchmarks for GPT-4.1 Mini and Grok 4.20
BenchmarkGPT-4.1 MiniGrok 4.20Leader
Aider polyglot32.4%Not measuredOnly GPT-4.1 Mini measured
SWE-bench Verified23.9%Not measuredOnly GPT-4.1 Mini measured
AA Coding Index20.2Not measuredOnly GPT-4.1 Mini measured
LiveCodeBench (Vals AI)58.2%84.3%Grok 4.20
SWE-bench Verified (Vals AI)Not measured72.2%Only Grok 4.20 measured
Vibe Code Bench (Vals AI)Not measured4.1%Only Grok 4.20 measured
Code migration (Vals AI)Not measured0.3%Only Grok 4.20 measured
Terminal-Bench 2.1 (Vals AI)Not measured44.2%Only Grok 4.20 measured
LiveCodeBench (Artificial Analysis run)48.3%Not measuredOnly GPT-4.1 Mini measured
Terminal-Bench Hard (Artificial Analysis run)7.6%37.9%Grok 4.20
Terminal-BenchNot measured57.3%Only Grok 4.20 measured
WeirdML37.6%52.3%Grok 4.20
LMArena Text: coding1367Not measuredOnly GPT-4.1 Mini measured
LMArena Text: software and IT1360Not measuredOnly GPT-4.1 Mini measured
Neither model has a result on the other 25 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
Intelligence benchmarks for GPT-4.1 Mini and Grok 4.20
BenchmarkGPT-4.1 MiniGrok 4.20Leader
AA Intelligence Index10.225.7Grok 4.20
Epoch Capabilities Index134.9152.1Grok 4.20
Agentic workLike-for-likePublic boards, shown as published, kept out of the index01
Agentic work benchmarks for GPT-4.1 Mini and Grok 4.20
BenchmarkGPT-4.1 MiniGrok 4.20Leader
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 measured1052Only 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)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 Telecom52.9%93.0%Grok 4.20
Vending-Bench 2Not measured$4,663Only Grok 4.20 measured
Berkeley Function Calling Leaderboard (BFCL)50.4%Not measuredOnly GPT-4.1 Mini 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-4.1 Mini and Grok 4.20
BenchmarkGPT-4.1 MiniGrok 4.20Leader
GPQA Diamond67.9%88.6%Grok 4.20
MMMU Pro (Vals AI)70.5%83.5%Grok 4.20
GPQA Diamond (Artificial Analysis run)66.4%91.1%Grok 4.20
Humanity's Last Exam (Artificial Analysis run)5.0%34.5%Grok 4.20
GPQA Diamond (Epoch AI run)65.8%Not measuredOnly GPT-4.1 Mini measured
ARC-AGI3.5%89.5%Grok 4.20
ARC-AGI-20.0%65.1%Grok 4.20
Chess puzzles1.0%Not measuredOnly GPT-4.1 Mini measured
Mystery game puzzles7.0%Not measuredOnly GPT-4.1 Mini measured
LMArena Text: hard prompts1349Not measuredOnly GPT-4.1 Mini measured
LMArena Text: expert1338Not measuredOnly GPT-4.1 Mini measured
LMArena Text: hard prompts in English1362Not measuredOnly GPT-4.1 Mini measured
LMArena Vision: diagrams1182Not measuredOnly GPT-4.1 Mini measured
LMArena Vision: homework1214Not measuredOnly GPT-4.1 Mini measured
Kagi LLM Benchmark48.6%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-4.1 Mini and Grok 4.20
BenchmarkGPT-4.1 MiniGrok 4.20Leader
AIME49.4%96.5%Grok 4.20
MATH 500 (Vals AI)88.0%Not measuredOnly GPT-4.1 Mini measured
MGSM (Vals AI)87.8%Not measuredOnly GPT-4.1 Mini measured
AA Math Index46.3Not measuredOnly GPT-4.1 Mini measured
AIME 2025 (Artificial Analysis run)46.3%Not measuredOnly GPT-4.1 Mini measured
OTIS Mock AIME44.7%Not measuredOnly GPT-4.1 Mini measured
FrontierMath, tiers 1 to 36.7%Not measuredOnly GPT-4.1 Mini measured
MATH level 587.3%Not measuredOnly GPT-4.1 Mini measured
LMArena Text: math1343Not measuredOnly GPT-4.1 Mini measured
LMArena Text: mathematical work1347Not measuredOnly GPT-4.1 Mini measured
Neither model has a result on the other 3 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index24
Knowledge benchmarks for GPT-4.1 Mini and Grok 4.20
BenchmarkGPT-4.1 MiniGrok 4.20Leader
MMLU Pro77.2%86.3%Grok 4.20
LegalBench (Vals AI)78.0%77.7%GPT-4.1 Mini
CaseLaw (Vals AI)Not measured54.4%Only Grok 4.20 measured
CorpFin (Vals AI)57.9%63.7%Grok 4.20
TaxEval (Vals AI)71.9%74.1%Grok 4.20
MortgageTax (Vals AI)65.5%45.4%GPT-4.1 Mini
MedQA (Vals AI)84.6%94.5%Grok 4.20
MedCode (Vals AI)Not measured32.2%Only Grok 4.20 measured
MMLU Pro (Artificial Analysis run)78.1%Not measuredOnly GPT-4.1 Mini measured
SimpleQA Verified12.7%Not measuredOnly GPT-4.1 Mini measured
LMArena Text: science1328Not measuredOnly GPT-4.1 Mini measured
LMArena Text: medicine and healthcare1324Not measuredOnly GPT-4.1 Mini measured
LMArena Text: legal and government1343Not measuredOnly GPT-4.1 Mini measured
LMArena Text: business and finance1322Not measuredOnly GPT-4.1 Mini measured
Neither model has a result on the other 4 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index06
Web design benchmarks for GPT-4.1 Mini and Grok 4.20
BenchmarkGPT-4.1 MiniGrok 4.20Leader
Design Arena: websites9971229Grok 4.20
Design Arena: UI components9611199Grok 4.20
Design Arena: game dev10711192Grok 4.20
Design Arena: data viz10341217Grok 4.20
Design Arena: 3D8371193Grok 4.20
Design Arena: all code categories9941221Grok 4.20
Design Arena: SVGNot measured1164Only Grok 4.20 measured
Design Arena: ASCII artNot measured1174Only 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 index04
General benchmarks for GPT-4.1 Mini and Grok 4.20
BenchmarkGPT-4.1 MiniGrok 4.20Leader
SAGE (Vals AI)Not measured38.2%Only Grok 4.20 measured
MedScribe (Vals AI)Not measured63.4%Only Grok 4.20 measured
Vals Multimodal IndexNot measured39.1%Only Grok 4.20 measured
IFBench38.3%81.2%Grok 4.20
Long context reasoning (AA-LCR)44.0%69.0%Grok 4.20
DTBench68.8%90.1%Grok 4.20
LMCA21.1%38.7%Grok 4.20
Fiction.LiveBench44.4%Not measuredOnly GPT-4.1 Mini measured
CL-benchNot measured22.2%Only Grok 4.20 measured
CL-bench LifeNot measured11.9%Only Grok 4.20 measured
LMArena Text1341Not measuredOnly GPT-4.1 Mini measured
LMArena Text: instruction following1333Not measuredOnly GPT-4.1 Mini measured
LMArena Text: creative writing1299Not measuredOnly GPT-4.1 Mini measured
LMArena Vision1181Not measuredOnly GPT-4.1 Mini measured
LMArena Text: English1356Not measuredOnly GPT-4.1 Mini measured
LMArena Text: non-English1318Not measuredOnly GPT-4.1 Mini measured
LMArena Text: Chinese1329Not measuredOnly GPT-4.1 Mini measured
LMArena Text: German1350Not measuredOnly GPT-4.1 Mini measured
LMArena Text: Japanese1290Not measuredOnly GPT-4.1 Mini measured
LMArena Text: Korean1298Not measuredOnly GPT-4.1 Mini measured
LMArena Text: French1358Not measuredOnly GPT-4.1 Mini measured
LMArena Text: Spanish1319Not measuredOnly GPT-4.1 Mini measured
LMArena Text: Russian1324Not measuredOnly GPT-4.1 Mini measured
LMArena Text: Polish1326Not measuredOnly GPT-4.1 Mini measured
LMArena Text: multi-turn1354Not measuredOnly GPT-4.1 Mini measured
LMArena Text: longer queries1344Not measuredOnly GPT-4.1 Mini measured
LMArena Text: writing and language1319Not measuredOnly GPT-4.1 Mini measured
LMArena Text: entertainment and media1300Not measuredOnly GPT-4.1 Mini measured
LMArena Vision: English1191Not measuredOnly GPT-4.1 Mini measured
LMArena Vision: Chinese1186Not measuredOnly GPT-4.1 Mini measured
LMArena Vision: reading text1188Not measuredOnly GPT-4.1 Mini measured
LMArena Vision: humor1182Not measuredOnly GPT-4.1 Mini measured
LMArena Vision: captioning1174Not measuredOnly GPT-4.1 Mini measured
LMArena Vision: recognizing things1187Not measuredOnly GPT-4.1 Mini measured
LMArena Vision: creative writing1182Not measuredOnly GPT-4.1 Mini 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-4.1 Mini and Grok 4.20
BenchmarkGPT-4.1 MiniGrok 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-4.1 Mini$0.0012Fits in one request
Grok 4.20$0.0025Fits in one request

GPT-4.1 Mini costs less

Repository review

50K input + 3K output tokens

GPT-4.1 Mini$0.025Fits in one request
Grok 4.20$0.070Fits in one request

GPT-4.1 Mini costs less

Agent loop

200K input + 10K output tokens

GPT-4.1 Mini$0.096Fits in one request
Grok 4.20$0.275Fits in one request

GPT-4.1 Mini 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 Mini and Grok 4.20
SpecificationOpenAI GPT-4.1 MiniSpaceXAI Grok 4.20
MakerOpenAIxAI
WeightsNo public weights listedNo public weights listed
ReleasedApril 14, 2025March 31, 2026
Context window1.05M2M
Input $/Mtok$0.40$1.25
Output $/Mtok$1.60$2.50
Coding indexNot benchmarked33.3
Independent measurements behind it02
Cost per solved task$1.818$0.72
SourceOpenRouter listingOpenRouter listing

Questions

Is GPT-4.1 Mini better than Grok 4.20 for coding?

Only Grok 4.20 has a coding score, 33.3 on the Vibe Coding Index; GPT-4.1 Mini has none, so the two cannot be ranked on coding. Pick GPT-4.1 Mini for output tokens 1.6x cheaper ($1.60 vs $2.50 per million) and work measured by LegalBench (Vals AI) or MortgageTax (Vals AI), where it leads.

Which is cheaper, GPT-4.1 Mini or Grok 4.20?

GPT-4.1 Mini costs $0.40 per million input tokens and $1.60 per million output tokens; Grok 4.20 costs $1.25 and $2.50. Per solved SWE-bench Verified task, GPT-4.1 Mini costs $1.818 and Grok 4.20 $0.72.

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

Grok 4.20, with 2M tokens against 1.05M.

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

30 benchmarks have a result for both models as of October 21, 2026. GPT-4.1 Mini's coding index rests on 0 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