Enter opens the highlighted result. Esc closes.

GPT-5.1 vs Grok 4.20

GPT-5.1 leads Grok 4.20 on coding, 40.4 to 33.3 on the Vibe Coding Index, and Grok 4.20 costs 4.0x less per output token ($2.50 vs $10.00 per million). Updated October 21, 2026; 41 benchmarks have a result for both.

GPT-5.1OpenAI
Coding
40.4
Overall
55.0
Output $/M
$10.00
18
Grok 4.20xAI
Coding
33.3
Overall
41.0
Output $/M
$2.50
22
vs boards won of 41 shared, 1 tied

GPT-5.1 or Grok 4.20: which to pick

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

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

Shared results
41
GPT-5.1 only
60
Grok 4.20 only
14
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.1 40.4 from 3 benchmarks, Grok 4.20 33.3 from 2 benchmarks.
Widest category
Agentic work, 15.5 points apart on average over 2 shared benchmarks.
Widest single gap
ARC-AGI-2: GPT-5.1 17.6% against Grok 4.20 65.1%, 47.5 points apart on a 0 to 100 scale.
Output price
GPT-5.1 $10.00 against Grok 4.20 $2.50 per million output tokens, 4.0x apart.
Context window
GPT-5.1 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.1BarsGrok 4.20Ties
Coding42
Intelligence02
Agentic work02
Reasoning06
Math01
Knowledge80
Web design08
General611 tie
All shared boards18221 tie
CodingLike-for-likeSix of these boards feed the Vibe Coding Index42
Coding benchmarks for GPT-5.1 and Grok 4.20
BenchmarkGPT-5.1Grok 4.20Leader
SWE-bench Verified66.0%Not measuredOnly GPT-5.1 measured
LMArena WebDev1396Not measuredOnly GPT-5.1 measured
AA Coding Index49.4Not measuredOnly GPT-5.1 measured
LiveCodeBench (Vals AI)86.5%84.3%GPT-5.1
SWE-bench Verified (Vals AI)69.8%72.2%Grok 4.20
Vibe Code Bench (Vals AI)24.6%4.1%GPT-5.1
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)86.8%Not measuredOnly GPT-5.1 measured
Terminal-Bench Hard (Artificial Analysis run)45.5%37.9%GPT-5.1
Terminal-Bench47.6%57.3%Grok 4.20
GSO-Bench13.7%Not measuredOnly GPT-5.1 measured
WeirdML60.8%52.3%GPT-5.1
LMArena Text: coding1453Not measuredOnly GPT-5.1 measured
LMArena Text: software and IT1454Not measuredOnly GPT-5.1 measured
LMArena WebDev: React1307Not measuredOnly GPT-5.1 measured
LMArena WebDev: HTML1405Not measuredOnly GPT-5.1 measured
LMArena WebDev: from an image1421Not measuredOnly GPT-5.1 measured
Neither model has a result on the other 21 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index02
Intelligence benchmarks for GPT-5.1 and Grok 4.20
BenchmarkGPT-5.1Grok 4.20Leader
AA Intelligence Index24.725.7Grok 4.20
Epoch Capabilities Index149.8152.1Grok 4.20
Agentic workLike-for-likePublic boards, shown as published, kept out of the index02
Agentic work benchmarks for GPT-5.1 and Grok 4.20
BenchmarkGPT-5.1Grok 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 Telecom81.9%93.0%Grok 4.20
DeepResearch Bench42.8%Not measuredOnly GPT-5.1 measured
Vending-Bench 2$1,473$4,663Grok 4.20
Neither model has a result on the other 28 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index06
Reasoning benchmarks for GPT-5.1 and Grok 4.20
BenchmarkGPT-5.1Grok 4.20Leader
GPQA Diamond86.6%88.6%Grok 4.20
MMMU Pro (Vals AI)83.2%83.5%Grok 4.20
GPQA Diamond (Artificial Analysis run)87.3%91.1%Grok 4.20
Humanity's Last Exam (Artificial Analysis run)28.5%34.5%Grok 4.20
GPQA Diamond (Epoch AI run)87.6%Not measuredOnly GPT-5.1 measured
ARC-AGI72.8%89.5%Grok 4.20
ARC-AGI-217.6%65.1%Grok 4.20
SimpleBench53.2%Not measuredOnly GPT-5.1 measured
Chess puzzles42.0%Not measuredOnly GPT-5.1 measured
Mystery game puzzles19.0%Not measuredOnly GPT-5.1 measured
VPCT58.7%Not measuredOnly GPT-5.1 measured
LMArena Text: hard prompts1457Not measuredOnly GPT-5.1 measured
LMArena Text: expert1470Not measuredOnly GPT-5.1 measured
LMArena Text: hard prompts in English1462Not measuredOnly GPT-5.1 measured
LMArena Vision: diagrams1264Not measuredOnly GPT-5.1 measured
LMArena Vision: homework1272Not measuredOnly GPT-5.1 measured
Kagi LLM BenchmarkNot measured75.0%Only Grok 4.20 measured
Neither model has a result on the other 5 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index01
Math benchmarks for GPT-5.1 and Grok 4.20
BenchmarkGPT-5.1Grok 4.20Leader
AIME93.3%96.5%Grok 4.20
MGSM (Vals AI)93.0%Not measuredOnly GPT-5.1 measured
AA Math Index94.0Not measuredOnly GPT-5.1 measured
AIME 2025 (Artificial Analysis run)94.0%Not measuredOnly GPT-5.1 measured
OTIS Mock AIME88.6%Not measuredOnly GPT-5.1 measured
LMArena Text: math1446Not measuredOnly GPT-5.1 measured
LMArena Text: mathematical work1449Not measuredOnly GPT-5.1 measured
Neither model has a result on the other 6 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index80
Knowledge benchmarks for GPT-5.1 and Grok 4.20
BenchmarkGPT-5.1Grok 4.20Leader
MMLU Pro86.4%86.3%GPT-5.1
LegalBench (Vals AI)85.7%77.7%GPT-5.1
CaseLaw (Vals AI)73.4%54.4%GPT-5.1
CorpFin (Vals AI)63.8%63.7%GPT-5.1
TaxEval (Vals AI)74.9%74.1%GPT-5.1
MortgageTax (Vals AI)61.4%45.4%GPT-5.1
MedQA (Vals AI)96.4%94.5%GPT-5.1
MedCode (Vals AI)52.7%32.2%GPT-5.1
MMLU Pro (Artificial Analysis run)87.0%Not measuredOnly GPT-5.1 measured
SimpleQA Verified48.0%Not measuredOnly GPT-5.1 measured
LMArena Text: science1459Not measuredOnly GPT-5.1 measured
LMArena Text: medicine and healthcare1456Not measuredOnly GPT-5.1 measured
LMArena Text: legal and government1459Not measuredOnly GPT-5.1 measured
LMArena Text: business and finance1431Not measuredOnly GPT-5.1 measured
FACTS Benchmark Suite45.0%Not measuredOnly GPT-5.1 measured
Neither model has a result on the other 3 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index08
Web design benchmarks for GPT-5.1 and Grok 4.20
BenchmarkGPT-5.1Grok 4.20Leader
Design Arena: websites11871229Grok 4.20
Design Arena: UI components11661199Grok 4.20
Design Arena: game dev11791192Grok 4.20
Design Arena: data viz12041217Grok 4.20
Design Arena: 3D10611193Grok 4.20
Design Arena: all code categories11711221Grok 4.20
Design Arena: SVG11491164Grok 4.20
Design Arena: ASCII art11191174Grok 4.20
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index61
General benchmarks for GPT-5.1 and Grok 4.20
BenchmarkGPT-5.1Grok 4.20Leader
SAGE (Vals AI)43.2%38.2%GPT-5.1
MedScribe (Vals AI)88.1%63.4%GPT-5.1
Vals Multimodal IndexNot measured39.1%Only Grok 4.20 measured
IFBench72.9%81.2%Grok 4.20
Long context reasoning (AA-LCR)80.0%69.0%GPT-5.1
DTBench90.1%90.1%Tie
LMCA43.9%38.7%GPT-5.1
CL-bench23.7%22.2%GPT-5.1
CL-bench Life17.3%11.9%GPT-5.1
LMArena Text1443Not measuredOnly GPT-5.1 measured
LMArena Text: instruction following1443Not measuredOnly GPT-5.1 measured
LMArena Text: creative writing1427Not measuredOnly GPT-5.1 measured
LMArena Vision1250Not measuredOnly GPT-5.1 measured
LMArena Text: English1451Not measuredOnly GPT-5.1 measured
LMArena Text: non-English1431Not measuredOnly GPT-5.1 measured
LMArena Text: Chinese1495Not measuredOnly GPT-5.1 measured
LMArena Text: German1438Not measuredOnly GPT-5.1 measured
LMArena Text: Japanese1453Not measuredOnly GPT-5.1 measured
LMArena Text: Korean1401Not measuredOnly GPT-5.1 measured
LMArena Text: French1450Not measuredOnly GPT-5.1 measured
LMArena Text: Spanish1433Not measuredOnly GPT-5.1 measured
LMArena Text: Russian1435Not measuredOnly GPT-5.1 measured
LMArena Text: Polish1440Not measuredOnly GPT-5.1 measured
LMArena Text: multi-turn1450Not measuredOnly GPT-5.1 measured
LMArena Text: longer queries1448Not measuredOnly GPT-5.1 measured
LMArena Text: writing and language1428Not measuredOnly GPT-5.1 measured
LMArena Text: entertainment and media1415Not measuredOnly GPT-5.1 measured
LMArena Vision: English1252Not measuredOnly GPT-5.1 measured
LMArena Vision: Chinese1270Not measuredOnly GPT-5.1 measured
LMArena Vision: reading text1255Not measuredOnly GPT-5.1 measured
LMArena Vision: humor1263Not measuredOnly GPT-5.1 measured
LMArena Vision: captioning1252Not measuredOnly GPT-5.1 measured
LMArena Vision: recognizing things1232Not measuredOnly GPT-5.1 measured
LMArena Vision: creative writing1266Not measuredOnly GPT-5.1 measured
LMArena Document1403Not measuredOnly GPT-5.1 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.1 and Grok 4.20
BenchmarkGPT-5.1Grok 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.1$0.0063Fits 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.1$0.092Fits 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.1$0.350Fits 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.1 and Grok 4.20
SpecificationOpenAI GPT-5.1SpaceXAI Grok 4.20
MakerOpenAIxAI
WeightsNo public weights listedNo public weights listed
ReleasedNovember 13, 2025March 31, 2026
Context window400K2M
Input $/Mtok$1.25$1.25
Output $/Mtok$10.00$2.50
Coding index40.433.3
Independent measurements behind it32
Cost per solved task$1.02$0.72
SourceOpenRouter listingOpenRouter listing

Questions

Is GPT-5.1 better than Grok 4.20 for coding?

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

Which is cheaper, GPT-5.1 or Grok 4.20?

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

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

Grok 4.20, with 2M tokens against 400K.

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

41 benchmarks have a result for both models as of October 21, 2026. GPT-5.1'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-1-vs-grok-4-20" title="GPT-5.1 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-1-vs-grok-4-20">LLMBenchmark.ai, GPT-5.1 vs Grok 4.20</a></p>