LLMBenchmark.ai

Enter opens the highlighted result. Esc closes.

GPT-5.1-Codex vs o4 Mini

Updated October 21, 2026. 18 benchmarks have a result for both. Coding is ranked on the Vibe Coding Index; every other board is shown as published.

GPT-5.1-CodexOpenAI
Coding
50.5
Overall
23.7
Output $/M
$10.00
17
o4 MiniOpenAI
Coding
68.6
Overall
16.7
Output $/M
$4.40
1
vs boards won of 18 shared

Decision reading

Pick o4 Mini for coding: it scores 68.6 on the Vibe Coding Index against 50.5 for GPT-5.1-Codex.

Pick GPT-5.1-Codex when the context window is larger, 400K against 200K tokens, or when what matters is SWE-bench Verified or LiveCodeBench (Vals AI), where it leads.

Shared results
18
GPT-5.1-Codex only
8
o4 Mini only
76
Like-for-like categories
8 of 9

Shared results can support a head-to-head reading. Results only one model has describe coverage, not superiority.

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 50.5 from 2 benchmarks, o4 Mini 68.6 from 2 benchmarks.
Widest category
Agentic work, 27.5 points apart on average over 1 shared benchmark.
Widest single gap
Design Arena: UI components: GPT-5.1-Codex 1237 against o4 Mini 983, 31.8 points apart on a 0 to 100 scale.
Output price
GPT-5.1-Codex $10.00 against o4 Mini $4.40 per million output tokens, 2.3x apart.
Context window
GPT-5.1-Codex takes 400K tokens, o4 Mini 200K.

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-CodexBarso4 MiniTies
Coding31
Intelligence10
Agentic work10
Reasoning20
Math20
Knowledge10
Web design50
General20
All shared boards171
CodingLike-for-likeFour of these boards feed the Vibe Coding Index31
Coding benchmarks for GPT-5.1-Codex and o4 Mini
BenchmarkGPT-5.1-Codexo4 MiniLeader
Aider polyglotNot measured72.0%Only o4 Mini measured
SWE-bench Verified66.0%64.6%GPT-5.1-Codex
SWE-bench MultimodalNot measured33.9%Only o4 Mini measured
LMArena WebDev1337Not measuredOnly GPT-5.1-Codex measured
LiveCodeBench (Vals AI)85.5%82.2%GPT-5.1-Codex
Vibe Code Bench (Vals AI)13.1%Not measuredOnly GPT-5.1-Codex measured
LiveCodeBench (Artificial Analysis run)84.9%85.9%o4 Mini
Terminal-Bench Hard (Artificial Analysis run)34.8%15.2%GPT-5.1-Codex
Terminal-Bench57.8%Not measuredOnly GPT-5.1-Codex measured
GSO-BenchNot measured3.6%Only o4 Mini measured
WeirdMLNot measured52.6%Only o4 Mini measured
ALE-Bench1244.9Not measuredOnly GPT-5.1-Codex measured
LMArena Text: codingNot measured1368Only o4 Mini measured
LMArena Text: software and ITNot measured1367Only o4 Mini measured
LMArena WebDev: HTML1346Not measuredOnly GPT-5.1-Codex measured
Neither model has a result on the other 23 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index10
Intelligence benchmarks for GPT-5.1-Codex and o4 Mini
BenchmarkGPT-5.1-Codexo4 MiniLeader
AA Intelligence Index23.716.7GPT-5.1-Codex
Epoch Capabilities IndexNot measured145.5Only o4 Mini measured
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
Agentic work benchmarks for GPT-5.1-Codex and o4 Mini
BenchmarkGPT-5.1-Codexo4 MiniLeader
Design Arena: agents building web apps1018Not measuredOnly GPT-5.1-Codex measured
Design Arena: agents building full-stack apps1086Not measuredOnly GPT-5.1-Codex measured
Design Arena: agents building mobile apps1191Not measuredOnly GPT-5.1-Codex measured
τ²-Bench Telecom83.0%55.6%GPT-5.1-Codex
METR time horizonsNot measured63.9%Only o4 Mini measured
Neither model has a result on the other 34 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index20
Reasoning benchmarks for GPT-5.1-Codex and o4 Mini
BenchmarkGPT-5.1-Codexo4 MiniLeader
GPQA DiamondNot measured74.5%Only o4 Mini measured
MMMU Pro (Vals AI)Not measured79.7%Only o4 Mini measured
GPQA Diamond (Artificial Analysis run)86.0%78.4%GPT-5.1-Codex
Humanity's Last Exam (Artificial Analysis run)25.7%16.5%GPT-5.1-Codex
GPQA Diamond (Epoch AI run)Not measured79.6%Only o4 Mini measured
ARC-AGINot measured58.7%Only o4 Mini measured
ARC-AGI-2Not measured6.1%Only o4 Mini measured
SimpleBenchNot measured38.7%Only o4 Mini measured
Chess puzzlesNot measured22.0%Only o4 Mini measured
Mystery game puzzlesNot measured5.0%Only o4 Mini measured
VPCTNot measured57.5%Only o4 Mini measured
LMArena Text: hard promptsNot measured1351Only o4 Mini measured
LMArena Text: expertNot measured1343Only o4 Mini measured
LMArena Text: hard prompts in EnglishNot measured1366Only o4 Mini measured
LMArena Vision: diagramsNot measured1197Only o4 Mini measured
LMArena Vision: homeworkNot measured1234Only o4 Mini measured
Neither model has a result on the other 5 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index20
Math benchmarks for GPT-5.1-Codex and o4 Mini
BenchmarkGPT-5.1-Codexo4 MiniLeader
AIMENot measured83.7%Only o4 Mini measured
MATH 500 (Vals AI)Not measured94.2%Only o4 Mini measured
MGSM (Vals AI)Not measured93.4%Only o4 Mini measured
AA Math Index95.790.7GPT-5.1-Codex
AIME 2025 (Artificial Analysis run)95.7%90.7%GPT-5.1-Codex
OTIS Mock AIMENot measured81.7%Only o4 Mini measured
FrontierMath, tiers 1 to 3Not measured36.1%Only o4 Mini measured
FrontierMath, tier 4Not measured4.9%Only o4 Mini measured
MATH level 5Not measured97.8%Only o4 Mini measured
LMArena Text: mathNot measured1389Only o4 Mini measured
LMArena Text: mathematical workNot measured1379Only o4 Mini measured
Neither model has a result on the other 2 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index10
Knowledge benchmarks for GPT-5.1-Codex and o4 Mini
BenchmarkGPT-5.1-Codexo4 MiniLeader
MMLU ProNot measured80.6%Only o4 Mini measured
LegalBench (Vals AI)Not measured79.2%Only o4 Mini measured
CorpFin (Vals AI)Not measured59.0%Only o4 Mini measured
TaxEval (Vals AI)Not measured74.8%Only o4 Mini measured
MortgageTax (Vals AI)Not measured64.8%Only o4 Mini measured
MedQA (Vals AI)Not measured96.0%Only o4 Mini measured
MedCode (Vals AI)Not measured33.8%Only o4 Mini measured
MMLU Pro (Artificial Analysis run)86.0%83.2%GPT-5.1-Codex
SimpleQA VerifiedNot measured19.6%Only o4 Mini measured
GeoBenchNot measured64.0%Only o4 Mini measured
LMArena Text: scienceNot measured1354Only o4 Mini measured
LMArena Text: medicine and healthcareNot measured1361Only o4 Mini measured
LMArena Text: legal and governmentNot measured1350Only o4 Mini measured
LMArena Text: business and financeNot measured1325Only o4 Mini measured
Neither model has a result on the other 3 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index50
Web design benchmarks for GPT-5.1-Codex and o4 Mini
BenchmarkGPT-5.1-Codexo4 MiniLeader
Design Arena: websites1162985GPT-5.1-Codex
Design Arena: UI components1237983GPT-5.1-Codex
Design Arena: game dev11381004GPT-5.1-Codex
Design Arena: data viz1213990GPT-5.1-Codex
Design Arena: 3DNot measured854Only o4 Mini measured
Design Arena: all code categories1153977GPT-5.1-Codex
Neither model has a result on the other 3 boards here
GeneralLike-for-likePublic boards, shown as published, kept out of the index20
General benchmarks for GPT-5.1-Codex and o4 Mini
BenchmarkGPT-5.1-Codexo4 MiniLeader
SAGE (Vals AI)Not measured41.1%Only o4 Mini measured
MedScribe (Vals AI)Not measured69.1%Only o4 Mini measured
IFBench70.0%68.7%GPT-5.1-Codex
Long context reasoning (AA-LCR)69.3%61.0%GPT-5.1-Codex
DTBenchNot measured77.6%Only o4 Mini measured
LMCANot measured26.5%Only o4 Mini measured
Fiction.LiveBenchNot measured77.8%Only o4 Mini measured
Creative writing (Lech Mazur)Not measured75.0%Only o4 Mini measured
LMArena TextNot measured1353Only o4 Mini measured
LMArena Text: instruction followingNot measured1320Only o4 Mini measured
LMArena Text: creative writingNot measured1294Only o4 Mini measured
LMArena VisionNot measured1194Only o4 Mini measured
LMArena Text: EnglishNot measured1367Only o4 Mini measured
LMArena Text: non-EnglishNot measured1337Only o4 Mini measured
LMArena Text: ChineseNot measured1354Only o4 Mini measured
LMArena Text: GermanNot measured1336Only o4 Mini measured
LMArena Text: JapaneseNot measured1308Only o4 Mini measured
LMArena Text: KoreanNot measured1312Only o4 Mini measured
LMArena Text: FrenchNot measured1364Only o4 Mini measured
LMArena Text: SpanishNot measured1346Only o4 Mini measured
LMArena Text: RussianNot measured1334Only o4 Mini measured
LMArena Text: PolishNot measured1358Only o4 Mini measured
LMArena Text: multi-turnNot measured1350Only o4 Mini measured
LMArena Text: longer queriesNot measured1315Only o4 Mini measured
LMArena Text: writing and languageNot measured1316Only o4 Mini measured
LMArena Text: entertainment and mediaNot measured1308Only o4 Mini measured
LMArena Vision: EnglishNot measured1200Only o4 Mini measured
LMArena Vision: ChineseNot measured1218Only o4 Mini measured
LMArena Vision: reading textNot measured1197Only o4 Mini measured
LMArena Vision: humorNot measured1199Only o4 Mini measured
LMArena Vision: captioningNot measured1204Only o4 Mini measured
LMArena Vision: recognizing thingsNot measured1218Only o4 Mini measured
LMArena Vision: creative writingNot measured1166Only o4 Mini measured
Neither model has a result on the other 13 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 o4 Mini
BenchmarkGPT-5.1-Codexo4 MiniLeader
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
o4 Mini$0.0033Fits in one request

o4 Mini costs less

Repository review

50K input + 3K output tokens

GPT-5.1-Codex$0.092Fits in one request
o4 Mini$0.068Fits in one request

o4 Mini costs less

Agent loop

200K input + 10K output tokens

GPT-5.1-Codex$0.350Fits in one request
o4 Mini$0.264Exceeds the context window

o4 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-5.1-Codex and o4 Mini
SpecificationOpenAI GPT-5.1-CodexOpenAI o4 Mini
MakerOpenAIOpenAI
WeightsNo public weights listedNo public weights listed
ReleasedNovember 13, 2025April 16, 2025
Context window400K200K
Input $/Mtok$1.25$1.10
Output $/Mtok$10.00$4.40
Coding index50.568.6
Independent measurements behind it22
Cost per solved task$0.892Not computable
SourceOpenRouter listingOpenRouter listing

Questions

Is GPT-5.1-Codex better than o4 Mini for coding?

Pick o4 Mini for coding: it scores 68.6 on the Vibe Coding Index against 50.5 for GPT-5.1-Codex. Pick GPT-5.1-Codex when the context window is larger, 400K against 200K tokens, or when what matters is SWE-bench Verified or LiveCodeBench (Vals AI), where it leads.

Which is cheaper, GPT-5.1-Codex or o4 Mini?

GPT-5.1-Codex costs $1.25 per million input tokens and $10.00 per million output tokens; o4 Mini costs $1.10 and $4.40. Cost per solved task is known for GPT-5.1-Codex only.

Which has the bigger context window, GPT-5.1-Codex or o4 Mini?

GPT-5.1-Codex, with 400K tokens against 200K.

How many benchmarks is the GPT-5.1-Codex vs o4 Mini comparison based on?

18 benchmarks have a result for both models as of October 21, 2026. GPT-5.1-Codex's coding index rests on 2 independent benchmarks and o4 Mini'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-codex-vs-o4-mini" title="GPT-5.1-Codex vs o4 Mini, 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-o4-mini">LLMBenchmark.ai, GPT-5.1-Codex vs o4 Mini</a></p>