Enter opens the highlighted result. Esc closes.

GPT-5.2-Codex vs GPT-5.4 Mini

GPT-5.2-Codex leads GPT-5.4 Mini on coding, 45.4 to 35.8 on the Vibe Coding Index, and GPT-5.4 Mini costs 3.1x less per output token ($4.50 vs $14.00 per million). Updated October 22, 2026; 14 benchmarks have a result for both.

GPT-5.2-CodexOpenAI
Coding
45.4
Overall
No data
Output $/M
$14.00
8
GPT-5.4 MiniOpenAI
Coding
35.8
Overall
44.0
Output $/M
$4.50
6
vs boards won of 14 shared

GPT-5.2-Codex or GPT-5.4 Mini: which to pick

Pick GPT-5.2-Codex for coding: it scores 45.4 on the Vibe Coding Index against 35.8 for GPT-5.4 Mini, though on 3 benchmarks against 5.

Pick GPT-5.4 Mini for output tokens 3.1x cheaper ($4.50 vs $14.00 per million) and work measured by LMArena WebDev or SWE-bench Verified (Vals AI), where it leads.

Shared results
14
GPT-5.2-Codex only
8
GPT-5.4 Mini only
75
Like-for-like categories
5 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.2-Codex 45.4 from 3 benchmarks, GPT-5.4 Mini 35.8 from 5 benchmarks.
Widest category
Agentic work, 8.8 points apart on average over 1 shared benchmark.
Widest single gap
Terminal-Bench Hard (Artificial Analysis run): GPT-5.2-Codex 37.1% against GPT-5.4 Mini 52.3%, 15.2 points apart on a 0 to 100 scale.
Output price
GPT-5.2-Codex $14.00 against GPT-5.4 Mini $4.50 per million output tokens, 3.1x apart.
Context window
Both take 400K tokens.

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.2-CodexBarsGPT-5.4 MiniTies
Coding26
Intelligence10
Agentic work10
Reasoning20
General20
All shared boards86
CodingLike-for-likeSix of these boards feed the Vibe Coding Index26
Coding benchmarks for GPT-5.2-Codex and GPT-5.4 Mini
BenchmarkGPT-5.2-CodexGPT-5.4 MiniLeader
SWE-bench Verified72.8%Not measuredOnly GPT-5.2-Codex measured
SWE-bench Multilingual66.3%Not measuredOnly GPT-5.2-Codex measured
LMArena WebDev13391397GPT-5.4 Mini
AA Coding IndexNot measured56.1Only GPT-5.4 Mini measured
LiveCodeBench (Vals AI)88.0%81.5%GPT-5.2-Codex
SWE-bench Verified (Vals AI)72.4%73.0%GPT-5.4 Mini
Terminal-Bench 4 (Vals AI)Not measured2.5%Only GPT-5.4 Mini measured
Vibe Code Bench (Vals AI)37.9%48.0%GPT-5.4 Mini
Code migration (Vals AI)Not measured12.9%Only GPT-5.4 Mini measured
ProgramBench (Vals AI)Not measured0.0%Only GPT-5.4 Mini measured
Terminal-Bench 2.1 (Vals AI)Not measured54.7%Only GPT-5.4 Mini measured
SciCodeNot measured52.1%Only GPT-5.4 Mini measured
Terminal-Bench Hard (Artificial Analysis run)37.1%52.3%GPT-5.4 Mini
Terminal-Bench66.5%Not measuredOnly GPT-5.2-Codex measured
FrontierCodeNot measured27.0%Only GPT-5.4 Mini measured
WeirdMLNot measured60.3%Only GPT-5.4 Mini measured
ALE-Bench1299.91188.6GPT-5.2-Codex
LMArena Text: codingNot measured1438Only GPT-5.4 Mini measured
LMArena Text: software and ITNot measured1436Only GPT-5.4 Mini measured
LMArena WebDev: React13291386GPT-5.4 Mini
LMArena WebDev: HTML13481419GPT-5.4 Mini
Neither model has a result on the other 18 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index10
Intelligence benchmarks for GPT-5.2-Codex and GPT-5.4 Mini
BenchmarkGPT-5.2-CodexGPT-5.4 MiniLeader
AA Intelligence Index28.524.1GPT-5.2-Codex
Epoch Capabilities IndexNot measured148.7Only GPT-5.4 Mini measured
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
Agentic work benchmarks for GPT-5.2-Codex and GPT-5.4 Mini
BenchmarkGPT-5.2-CodexGPT-5.4 MiniLeader
AA Agentic IndexNot measured17.9Only GPT-5.4 Mini measured
Design Arena: agents building web apps1051Not measuredOnly GPT-5.2-Codex measured
Design Arena: agents building full-stack apps993Not measuredOnly GPT-5.2-Codex measured
Design Arena: agents building mobile apps1090Not measuredOnly GPT-5.2-Codex measured
Design Arena: agents building Android apps1176Not measuredOnly GPT-5.2-Codex measured
Design Arena: agents building Godot games1142Not measuredOnly GPT-5.2-Codex measured
Finance Agent (Vals AI)Not measured45.4%Only GPT-5.4 Mini measured
Tax Agent Bench (Vals AI)Not measured8.8%Only GPT-5.4 Mini measured
Legal Research Bench (Vals AI)Not measured12.5%Only GPT-5.4 Mini measured
Excel Modeling Benchmark (Vals AI)Not measured45.4%Only GPT-5.4 Mini measured
τ²-Bench Telecom92.1%83.3%GPT-5.2-Codex
DeepResearch BenchNot measured36.3%Only GPT-5.4 Mini measured
Neither model has a result on the other 29 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index20
Reasoning benchmarks for GPT-5.2-Codex and GPT-5.4 Mini
BenchmarkGPT-5.2-CodexGPT-5.4 MiniLeader
GPQA DiamondNot measured83.1%Only GPT-5.4 Mini measured
MMMU Pro (Vals AI)Not measured79.3%Only GPT-5.4 Mini measured
GPQA Diamond (Artificial Analysis run)89.9%87.5%GPT-5.2-Codex
Humanity's Last Exam (Artificial Analysis run)35.7%28.1%GPT-5.2-Codex
GPQA Diamond (Epoch AI run)Not measured86.9%Only GPT-5.4 Mini measured
ARC-AGINot measured63.7%Only GPT-5.4 Mini measured
ARC-AGI-2Not measured18.9%Only GPT-5.4 Mini measured
Chess puzzlesNot measured23.0%Only GPT-5.4 Mini measured
Mystery game puzzlesNot measured11.0%Only GPT-5.4 Mini measured
LMArena Text: hard promptsNot measured1424Only GPT-5.4 Mini measured
LMArena Text: expertNot measured1435Only GPT-5.4 Mini measured
LMArena Text: hard prompts in EnglishNot measured1420Only GPT-5.4 Mini measured
LMArena Vision: diagramsNot measured1266Only GPT-5.4 Mini measured
LMArena Vision: homeworkNot measured1285Only GPT-5.4 Mini measured
Kagi LLM BenchmarkNot measured37.9%Only GPT-5.4 Mini measured
Neither model has a result on the other 7 boards here
MathDirectional onlyPublic boards, shown as published, kept out of the index7 boards, none shared
Math benchmarks for GPT-5.2-Codex and GPT-5.4 Mini
BenchmarkGPT-5.2-CodexGPT-5.4 MiniLeader
AIMENot measured95.6%Only GPT-5.4 Mini measured
OTIS Mock AIMENot measured88.9%Only GPT-5.4 Mini measured
FrontierMath, tiers 1 to 3Not measured51.2%Only GPT-5.4 Mini measured
FrontierMath, tier 4Not measured9.8%Only GPT-5.4 Mini measured
ProofBenchNot measured21.0%Only GPT-5.4 Mini measured
LMArena Text: mathNot measured1418Only GPT-5.4 Mini measured
LMArena Text: mathematical workNot measured1429Only GPT-5.4 Mini measured
Neither model has a result on the other 6 boards here
KnowledgeDirectional onlyPublic boards, shown as published, kept out of the index10 boards, none shared
Knowledge benchmarks for GPT-5.2-Codex and GPT-5.4 Mini
BenchmarkGPT-5.2-CodexGPT-5.4 MiniLeader
MMLU ProNot measured84.5%Only GPT-5.4 Mini measured
CaseLaw (Vals AI)Not measured51.7%Only GPT-5.4 Mini measured
CorpFin (Vals AI)Not measured60.9%Only GPT-5.4 Mini measured
TaxEval (Vals AI)Not measured71.2%Only GPT-5.4 Mini measured
MortgageTax (Vals AI)Not measured63.5%Only GPT-5.4 Mini measured
SimpleQA VerifiedNot measured29.4%Only GPT-5.4 Mini measured
LMArena Text: scienceNot measured1417Only GPT-5.4 Mini measured
LMArena Text: medicine and healthcareNot measured1395Only GPT-5.4 Mini measured
LMArena Text: legal and governmentNot measured1414Only GPT-5.4 Mini measured
LMArena Text: business and financeNot measured1418Only GPT-5.4 Mini measured
Neither model has a result on the other 8 boards here
Web designNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Web design benchmarks for GPT-5.2-Codex and GPT-5.4 Mini
BenchmarkGPT-5.2-CodexGPT-5.4 MiniLeader
Neither model has a result on 9 boards here
GeneralLike-for-likePublic boards, shown as published, kept out of the index20
General benchmarks for GPT-5.2-Codex and GPT-5.4 Mini
BenchmarkGPT-5.2-CodexGPT-5.4 MiniLeader
SAGE (Vals AI)Not measured50.8%Only GPT-5.4 Mini measured
Vals Multimodal IndexNot measured54.2%Only GPT-5.4 Mini measured
IFBench77.6%73.3%GPT-5.2-Codex
Long context reasoning (AA-LCR)82.3%77.0%GPT-5.2-Codex
DTBenchNot measured80.0%Only GPT-5.4 Mini measured
LMCANot measured40.8%Only GPT-5.4 Mini measured
LMArena TextNot measured1412Only GPT-5.4 Mini measured
LMArena Text: instruction followingNot measured1405Only GPT-5.4 Mini measured
LMArena Text: creative writingNot measured1370Only GPT-5.4 Mini measured
LMArena VisionNot measured1245Only GPT-5.4 Mini measured
LMArena Text: EnglishNot measured1412Only GPT-5.4 Mini measured
LMArena Text: non-EnglishNot measured1405Only GPT-5.4 Mini measured
LMArena Text: ChineseNot measured1446Only GPT-5.4 Mini measured
LMArena Text: GermanNot measured1408Only GPT-5.4 Mini measured
LMArena Text: JapaneseNot measured1375Only GPT-5.4 Mini measured
LMArena Text: KoreanNot measured1370Only GPT-5.4 Mini measured
LMArena Text: FrenchNot measured1441Only GPT-5.4 Mini measured
LMArena Text: SpanishNot measured1405Only GPT-5.4 Mini measured
LMArena Text: RussianNot measured1417Only GPT-5.4 Mini measured
LMArena Text: PolishNot measured1415Only GPT-5.4 Mini measured
LMArena Text: multi-turnNot measured1429Only GPT-5.4 Mini measured
LMArena Text: longer queriesNot measured1408Only GPT-5.4 Mini measured
LMArena Text: writing and languageNot measured1393Only GPT-5.4 Mini measured
LMArena Text: entertainment and mediaNot measured1373Only GPT-5.4 Mini measured
LMArena Vision: EnglishNot measured1244Only GPT-5.4 Mini measured
LMArena Vision: ChineseNot measured1286Only GPT-5.4 Mini measured
LMArena Vision: reading textNot measured1253Only GPT-5.4 Mini measured
LMArena Vision: humorNot measured1235Only GPT-5.4 Mini measured
LMArena Vision: recognizing thingsNot measured1218Only GPT-5.4 Mini measured
LMArena Vision: creative writingNot measured1222Only GPT-5.4 Mini measured
Neither model has a result on the other 16 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for GPT-5.2-Codex and GPT-5.4 Mini
BenchmarkGPT-5.2-CodexGPT-5.4 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.2-Codex$0.0088Fits in one request
GPT-5.4 Mini$0.0030Fits in one request

GPT-5.4 Mini costs less

Repository review

50K input + 3K output tokens

GPT-5.2-Codex$0.130Fits in one request
GPT-5.4 Mini$0.051Fits in one request

GPT-5.4 Mini costs less

Agent loop

200K input + 10K output tokens

GPT-5.2-Codex$0.490Fits in one request
GPT-5.4 Mini$0.195Fits in one request

GPT-5.4 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.2-Codex and GPT-5.4 Mini
SpecificationOpenAI GPT-5.2-CodexOpenAI GPT-5.4 Mini
MakerOpenAIOpenAI
WeightsNo public weights listedNo public weights listed
ReleasedJanuary 14, 2026March 17, 2026
Context window400K400K
Input $/Mtok$1.75$0.75
Output $/Mtok$14.00$4.50
Coding index45.435.8
Independent measurements behind it35
Cost per solved task$0.43$0.70
SourceOpenRouter listingOpenRouter listing

Questions

Is GPT-5.2-Codex better than GPT-5.4 Mini for coding?

Pick GPT-5.2-Codex for coding: it scores 45.4 on the Vibe Coding Index against 35.8 for GPT-5.4 Mini, though on 3 benchmarks against 5. Pick GPT-5.4 Mini for output tokens 3.1x cheaper ($4.50 vs $14.00 per million) and work measured by LMArena WebDev or SWE-bench Verified (Vals AI), where it leads.

Which is cheaper, GPT-5.2-Codex or GPT-5.4 Mini?

GPT-5.2-Codex costs $1.75 per million input tokens and $14.00 per million output tokens; GPT-5.4 Mini costs $0.75 and $4.50. Per solved SWE-bench Verified task, GPT-5.2-Codex costs $0.43 and GPT-5.4 Mini $0.70.

Which has the bigger context window, GPT-5.2-Codex or GPT-5.4 Mini?

Neither: both take 400K tokens.

How many benchmarks is the GPT-5.2-Codex vs GPT-5.4 Mini comparison based on?

14 benchmarks have a result for both models as of October 22, 2026. GPT-5.2-Codex's coding index rests on 3 independent benchmarks and GPT-5.4 Mini's on 5. 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-2-codex-vs-gpt-5-4-mini" title="GPT-5.2-Codex vs GPT-5.4 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-2-codex-vs-gpt-5-4-mini">LLMBenchmark.ai, GPT-5.2-Codex vs GPT-5.4 Mini</a></p>