Enter opens the highlighted result. Esc closes.

GPT-5.1-Codex vs Grok 4.5

Grok 4.5 leads GPT-5.1-Codex on coding, 58.6 to 15.3 on the Vibe Coding Index, and Grok 4.5 costs 1.7x less per output token ($6.00 vs $10.00 per million). Updated October 22, 2026; 17 benchmarks have a result for both.

GPT-5.1-CodexOpenAI
Coding
15.3
Overall
No data
Output $/M
$10.00
0
Grok 4.5xAI
Coding
58.6
Overall
62.1
Output $/M
$6.00
17
vs boards won of 17 shared

GPT-5.1-Codex or Grok 4.5: which to pick

Pick Grok 4.5 for coding: it scores 58.6 on the Vibe Coding Index against 15.3 for GPT-5.1-Codex.

GPT-5.1-Codex is neither cheaper nor larger in context, and leads no benchmark both models were measured on.

Shared results
17
GPT-5.1-Codex only
9
Grok 4.5 only
106
Like-for-like categories
6 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-Codex 15.3 from 2 benchmarks, Grok 4.5 58.6 from 6 benchmarks.
Widest category
Coding, 25.5 points apart on average over 5 shared benchmarks.
Widest single gap
Vibe Code Bench (Vals AI): GPT-5.1-Codex 13.1% against Grok 4.5 69.0%, 55.9 points apart on a 0 to 100 scale.
Output price
GPT-5.1-Codex $10.00 against Grok 4.5 $6.00 per million output tokens, 1.7x apart.
Context window
GPT-5.1-Codex takes 400K tokens, Grok 4.5 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.1-CodexBarsGrok 4.5Ties
Coding05
Intelligence01
Agentic work03
Reasoning02
Web design05
General01
All shared boards017
CodingLike-for-likeSix of these boards feed the Vibe Coding Index05
Coding benchmarks for GPT-5.1-Codex and Grok 4.5
BenchmarkGPT-5.1-CodexGrok 4.5Leader
SWE-bench Verified66.0%Not measuredOnly GPT-5.1-Codex measured
LiveBench codingNot measured94.3%Only Grok 4.5 measured
LMArena WebDev13371553Grok 4.5
AA Coding IndexNot measured72.4Only Grok 4.5 measured
LiveCodeBench (Vals AI)85.5%87.3%Grok 4.5
SWE-bench Verified (Vals AI)Not measured86.6%Only Grok 4.5 measured
Terminal-Bench 4 (Vals AI)Not measured8.6%Only Grok 4.5 measured
Vibe Code Bench (Vals AI)13.1%69.0%Grok 4.5
Code migration (Vals AI)Not measured36.6%Only Grok 4.5 measured
ProgramBench (Vals AI)Not measured0.0%Only Grok 4.5 measured
IOI (Vals AI)Not measured40.6%Only Grok 4.5 measured
Terminal-Bench 2.1 (Vals AI)Not measured67.8%Only Grok 4.5 measured
SkillsBench (Vals AI)Not measured66.0%Only Grok 4.5 measured
CyberBench (Vals AI)Not measured71.0%Only Grok 4.5 measured
LiveCodeBench (Artificial Analysis run)84.9%Not measuredOnly GPT-5.1-Codex measured
SciCodeNot measured55.0%Only Grok 4.5 measured
Terminal-Bench Hard (Artificial Analysis run)34.8%Not measuredOnly GPT-5.1-Codex measured
Terminal-Bench57.8%Not measuredOnly GPT-5.1-Codex measured
FrontierCodeNot measured42.4%Only Grok 4.5 measured
WeirdMLNot measured46.4%Only Grok 4.5 measured
ALE-Bench1244.91309.3Grok 4.5
LMArena Text: codingNot measured1474Only Grok 4.5 measured
LMArena Text: software and ITNot measured1471Only Grok 4.5 measured
LMArena WebDev: ReactNot measured1556Only Grok 4.5 measured
LMArena WebDev: HTML13461567Grok 4.5
LMArena WebDev: from an imageNot measured1562Only Grok 4.5 measured
SciCodeNot measured6.5%Only Grok 4.5 measured
Neither model has a result on the other 12 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index01
Intelligence benchmarks for GPT-5.1-Codex and Grok 4.5
BenchmarkGPT-5.1-CodexGrok 4.5Leader
AA Intelligence Index23.738.8Grok 4.5
Epoch Capabilities IndexNot measured154.1Only Grok 4.5 measured
Agentic workLike-for-likePublic boards, shown as published, kept out of the index03
Agentic work benchmarks for GPT-5.1-Codex and Grok 4.5
BenchmarkGPT-5.1-CodexGrok 4.5Leader
AA Agentic IndexNot measured41.2Only Grok 4.5 measured
Design Arena: agents building web apps10181218Grok 4.5
Design Arena: agents building full-stack apps10861249Grok 4.5
Design Arena: agents building mobile apps11911220Grok 4.5
Design Arena: agents building Android appsNot measured1236Only Grok 4.5 measured
Design Arena: agents building Godot gamesNot measured1229Only Grok 4.5 measured
Design Arena: agents building gamesNot measured1236Only Grok 4.5 measured
Design Arena: HTML slidesNot measured1205Only Grok 4.5 measured
Design Arena: PowerPoint slidesNot measured1230Only Grok 4.5 measured
LiveBench researchNot measured85.9%Only Grok 4.5 measured
LiveBench browserNot measured44.0%Only Grok 4.5 measured
LiveBench long agenticNot measured27.9%Only Grok 4.5 measured
SREBench (Vals AI)Not measured0.8%Only Grok 4.5 measured
Finance Agent (Vals AI)Not measured48.4%Only Grok 4.5 measured
Tax Agent Bench (Vals AI)Not measured24.9%Only Grok 4.5 measured
Legal Research Bench (Vals AI)Not measured38.0%Only Grok 4.5 measured
Excel Modeling Benchmark (Vals AI)Not measured52.9%Only Grok 4.5 measured
Time Horizon Index (Vals AI)Not measured6.3%Only Grok 4.5 measured
τ²-Bench Telecom83.0%Not measuredOnly GPT-5.1-Codex measured
APEX-AgentsNot measured56.2%Only Grok 4.5 measured
PostTrainBenchNot measured23.4%Only Grok 4.5 measured
Vending-Bench 2Not measured$3,887Only Grok 4.5 measured
LMArena SearchNot measured1216Only Grok 4.5 measured
Neither model has a result on the other 18 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index02
Reasoning benchmarks for GPT-5.1-Codex and Grok 4.5
BenchmarkGPT-5.1-CodexGrok 4.5Leader
GPQA DiamondNot measured92.9%Only Grok 4.5 measured
LiveBench reasoningNot measured87.2%Only Grok 4.5 measured
MMMU Pro (Vals AI)Not measured61.8%Only Grok 4.5 measured
GPQA Diamond (Artificial Analysis run)86.0%93.1%Grok 4.5
Humanity's Last Exam (Artificial Analysis run)25.7%42.7%Grok 4.5
GPQA Diamond (Epoch AI run)Not measured93.4%Only Grok 4.5 measured
ARC-AGINot measured87.2%Only Grok 4.5 measured
ARC-AGI-2Not measured52.6%Only Grok 4.5 measured
SimpleBenchNot measured70.0%Only Grok 4.5 measured
Chess puzzlesNot measured35.0%Only Grok 4.5 measured
LMArena Text: hard promptsNot measured1462Only Grok 4.5 measured
LMArena Text: expertNot measured1465Only Grok 4.5 measured
LMArena Text: hard prompts in EnglishNot measured1464Only Grok 4.5 measured
LMArena Vision: diagramsNot measured1304Only Grok 4.5 measured
LMArena Vision: homeworkNot measured1295Only Grok 4.5 measured
Kagi LLM BenchmarkNot measured83.5%Only Grok 4.5 measured
Neither model has a result on the other 6 boards here
MathDirectional onlyPublic boards, shown as published, kept out of the index8 boards, none shared
Math benchmarks for GPT-5.1-Codex and Grok 4.5
BenchmarkGPT-5.1-CodexGrok 4.5Leader
AA Math Index95.7Not measuredOnly GPT-5.1-Codex measured
AIME 2025 (Artificial Analysis run)95.7%Not measuredOnly GPT-5.1-Codex measured
OTIS Mock AIMENot measured97.8%Only Grok 4.5 measured
FrontierMath, tiers 1 to 3Not measured57.2%Only Grok 4.5 measured
FrontierMath, tier 4Not measured24.4%Only Grok 4.5 measured
ProofBenchNot measured31.0%Only Grok 4.5 measured
LMArena Text: mathNot measured1460Only Grok 4.5 measured
LMArena Text: mathematical workNot measured1482Only Grok 4.5 measured
Neither model has a result on the other 5 boards here
KnowledgeDirectional onlyPublic boards, shown as published, kept out of the index13 boards, none shared
Knowledge benchmarks for GPT-5.1-Codex and Grok 4.5
BenchmarkGPT-5.1-CodexGrok 4.5Leader
MMLU ProNot measured89.2%Only Grok 4.5 measured
LegalBench (Vals AI)Not measured86.0%Only Grok 4.5 measured
CorpFin (Vals AI)Not measured67.4%Only Grok 4.5 measured
TaxEval (Vals AI)Not measured71.7%Only Grok 4.5 measured
MortgageTax (Vals AI)Not measured61.8%Only Grok 4.5 measured
MedCode (Vals AI)Not measured43.3%Only Grok 4.5 measured
MMLU Pro (Artificial Analysis run)86.0%Not measuredOnly GPT-5.1-Codex measured
SimpleQA VerifiedNot measured48.3%Only Grok 4.5 measured
LMArena Text: scienceNot measured1464Only Grok 4.5 measured
LMArena Text: medicine and healthcareNot measured1440Only Grok 4.5 measured
LMArena Text: legal and governmentNot measured1463Only Grok 4.5 measured
LMArena Text: business and financeNot measured1441Only Grok 4.5 measured
FACTS Benchmark SuiteNot measured50.2%Only Grok 4.5 measured
Neither model has a result on the other 5 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index05
Web design benchmarks for GPT-5.1-Codex and Grok 4.5
BenchmarkGPT-5.1-CodexGrok 4.5Leader
Design Arena: websites11611281Grok 4.5
Design Arena: UI components12341280Grok 4.5
Design Arena: game dev11371264Grok 4.5
Design Arena: data viz12131266Grok 4.5
Design Arena: 3DNot measured1257Only Grok 4.5 measured
Design Arena: all code categories11521275Grok 4.5
Design Arena: SVGNot measured1215Only Grok 4.5 measured
Design Arena: ASCII artNot measured1256Only Grok 4.5 measured
LiveBench designNot measured78.1%Only Grok 4.5 measured
GeneralLike-for-likePublic boards, shown as published, kept out of the index01
General benchmarks for GPT-5.1-Codex and Grok 4.5
BenchmarkGPT-5.1-CodexGrok 4.5Leader
LiveBench data analysisNot measured73.0%Only Grok 4.5 measured
SAGE (Vals AI)Not measured35.0%Only Grok 4.5 measured
MedScribe (Vals AI)Not measured86.9%Only Grok 4.5 measured
Vals Multimodal IndexNot measured63.4%Only Grok 4.5 measured
IFBench70.0%Not measuredOnly GPT-5.1-Codex measured
Long context reasoning (AA-LCR)69.3%79.3%Grok 4.5
DTBenchNot measured96.5%Only Grok 4.5 measured
LMCANot measured45.2%Only Grok 4.5 measured
Surface Evolver BenchNot measured74.4%Only Grok 4.5 measured
Furniture assemblyNot measured22.5%Only Grok 4.5 measured
LMArena TextNot measured1448Only Grok 4.5 measured
LMArena Text: instruction followingNot measured1445Only Grok 4.5 measured
LMArena Text: creative writingNot measured1442Only Grok 4.5 measured
LMArena VisionNot measured1287Only Grok 4.5 measured
LMArena Text: EnglishNot measured1453Only Grok 4.5 measured
LMArena Text: non-EnglishNot measured1440Only Grok 4.5 measured
LMArena Text: ChineseNot measured1495Only Grok 4.5 measured
LMArena Text: GermanNot measured1448Only Grok 4.5 measured
LMArena Text: JapaneseNot measured1430Only Grok 4.5 measured
LMArena Text: KoreanNot measured1406Only Grok 4.5 measured
LMArena Text: FrenchNot measured1457Only Grok 4.5 measured
LMArena Text: SpanishNot measured1451Only Grok 4.5 measured
LMArena Text: RussianNot measured1449Only Grok 4.5 measured
LMArena Text: PolishNot measured1432Only Grok 4.5 measured
LMArena Text: multi-turnNot measured1456Only Grok 4.5 measured
LMArena Text: longer queriesNot measured1462Only Grok 4.5 measured
LMArena Text: writing and languageNot measured1445Only Grok 4.5 measured
LMArena Text: entertainment and mediaNot measured1434Only Grok 4.5 measured
LMArena Vision: EnglishNot measured1285Only Grok 4.5 measured
LMArena Vision: ChineseNot measured1345Only Grok 4.5 measured
LMArena Vision: reading textNot measured1293Only Grok 4.5 measured
LMArena Vision: humorNot measured1276Only Grok 4.5 measured
LMArena Vision: creative writingNot measured1293Only Grok 4.5 measured
LMArena DocumentNot measured1452Only Grok 4.5 measured
Neither model has a result on the other 12 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for GPT-5.1-Codex and Grok 4.5
BenchmarkGPT-5.1-CodexGrok 4.5Leader
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-Codex$0.0063Fits in one request
Grok 4.5$0.0050Fits in one request

Grok 4.5 costs less

Repository review

50K input + 3K output tokens

GPT-5.1-Codex$0.092Fits in one request
Grok 4.5$0.118Fits in one request

GPT-5.1-Codex costs less

Agent loop

200K input + 10K output tokens

GPT-5.1-Codex$0.350Fits in one request
Grok 4.5$0.460Fits in one request

GPT-5.1-Codex 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-Codex and Grok 4.5
SpecificationOpenAI GPT-5.1-CodexSpaceXAI Grok 4.5
MakerOpenAIxAI
WeightsNo public weights listedNo public weights listed
ReleasedNovember 13, 2025July 8, 2026
Context window400K500K
Input $/Mtok$1.25$2.00
Output $/Mtok$10.00$6.00
Coding index15.358.6
Independent measurements behind it26
Cost per solved task$0.892$0.62
SourceOpenRouter listingOpenRouter listing

Questions

Is GPT-5.1-Codex better than Grok 4.5 for coding?

Pick Grok 4.5 for coding: it scores 58.6 on the Vibe Coding Index against 15.3 for GPT-5.1-Codex. GPT-5.1-Codex is neither cheaper nor larger in context, and leads no benchmark both models were measured on.

Which is cheaper, GPT-5.1-Codex or Grok 4.5?

GPT-5.1-Codex costs $1.25 per million input tokens and $10.00 per million output tokens; Grok 4.5 costs $2.00 and $6.00. Per solved SWE-bench Verified task, GPT-5.1-Codex costs $0.892 and Grok 4.5 $0.62.

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

Grok 4.5, with 500K tokens against 400K.

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

17 benchmarks have a result for both models as of October 22, 2026. GPT-5.1-Codex's coding index rests on 2 independent benchmarks and Grok 4.5's on 6. 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-codex-vs-grok-4-5" title="GPT-5.1-Codex vs Grok 4.5, 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-codex-vs-grok-4-5">LLMBenchmark.ai, GPT-5.1-Codex vs Grok 4.5</a></p>