Compare / head-to-head

GPT-5.2-CodexvsGPT-5.4

GPT-5.4 leads 10 of 11 shared benchmarks. GPT-5.2-Codex is 1.1x cheaper per token. GPT-5.4 has the larger context window (1.1M tokens).

Benchmarks from cited public sources; pricing from official pages; status from official provider feeds.

Shared benchmarks
1 – 10
GPT-5.4 leads
Cheaper per token
GPT-5.2-Codex
1.1x cheaper, input + output
Larger context
GPT-5.4
1.1M tokens
Providers
OpenAI
same provider
GPT-5.2-Codex
OpenAI · released 2025-12-18
textvision
Context
400K
Max out
128K
Input /1M
$1.75 ↗
Output /1M
$14 ↗
Cached /1M
$0.175
Scores
13 · 2 core
GPT-5.4
OpenAI · released 2026-03-05
textvision
Context
1.1M
Max out
128K
Input /1M
$2.5 ↗
Output /1M
$15 ↗
Cached /1M
$0.25
Scores
50 · 14 core
Quality

Benchmark matrix

BenchmarkGPT-5.2-CodexGPT-5.4ΔEdge
Reported by both · 11
LiveBench Agentic Coding (LiveBench)49.4% ↗53.8% ↗-4.4 ptGPT-5.4
LiveBench Coding (LiveBench)83.6% ↗77.5% ↗+6.1 ptGPT-5.2-Codex
LiveBench Data Analysis (LiveBench)78.2% ↗79.3% ↗-1.1 ptGPT-5.4
LiveBench Instruction Following (LiveBench)66.4% ↗70.2% ↗-3.8 ptGPT-5.4
LiveBench Language (LiveBench)73.7% ↗82.6% ↗-8.9 ptGPT-5.4
LiveBench Mathematics (LiveBench)88.8% ↗94.1% ↗-5.3 ptGPT-5.4
LiveBench Reasoning (LiveBench)77.7% ↗88.1% ↗-10.4 ptGPT-5.4
LMArena WebDev (LMArena)1338.9 ↗1395.1 ↗-56.2GPT-5.4
OSWorld-Verified38.2% ↗75% ↗-36.8 ptGPT-5.4
SWE-Bench Pro56.4% ↗57.7% ↗-1.3 ptGPT-5.4
Terminal-Bench 2.064% ↗75.1% ↗-11.1 ptGPT-5.4
Only GPT-5.2-Codex reports · 2
Cybersecurity Capture The Flag Challenges67.4% ↗not reported——
SWE-Lancer IC Diamond76% ↗not reported——
Only GPT-5.4 reports · 31
GPQA Diamondnot reported92.8% ↗——
AIME 2026not reported99.2% ↗matharena ⚠——
Humanity's Last Exam (no tools)not reported39.8% ↗——
LMArena Elonot reported1452.6 ↗——
APEX-Agents (Mercor)not reported52.4% ↗——
BrowseCompnot reported82.7% ↗——
Chess Puzzles (Epoch AI run)not reported44% ↗epoch run——
DeepSWE v1.1 (Datacurve)not reported51.8% ↗——
EBR-bench (Epoch AI run)not reported25.4% ↗epoch run——
FrontierMath Tier 4 v2 (Epoch AI run)not reported49% ↗epoch run——
FrontierMath Tiers 1-3 v2 (Epoch AI run)not reported78.6% ↗epoch run——
Furniture Assembly (Epoch AI run)not reported37.5% ↗epoch run——
GDPval (wins or ties)not reported83% ↗——
GSO Opt@1 (GSO)not reported30.4% ↗——
Humanity's Last Exam (with tools)not reported52.1% ↗——
LMArena Agent (LMArena)not reported0.0105 ↗——
LMArena Vision (LMArena)not reported1283.8 ↗——
MCP Atlasnot reported67.2% ↗——
MirrorCode (Epoch AI run)not reported15.6% ↗epoch run——
MMMU-Pro (no tools)not reported81.2% ↗——
MMMU-Pro (with tools)not reported82.1% ↗——
Mystery Game Puzzles (Epoch AI run)not reported37% ↗epoch run——
OTIS Mock AIME 2024-2025 (Epoch AI run)not reported97.8% ↗epoch run——
SAGE (Vals AI)not reported43.3% ↗——
SimpleQA Verifiednot reported45.1% ↗epoch run——
SWE-bench Verified (Epoch AI run)not reported76.9% ↗epoch run——
tau2-bench Banking Knowledge (Sierra)not reported39.4% ↗——
Tau2-bench Telecomnot reported98.9% ↗——
Toolathlonnot reported54.6% ↗——
Vending-Bench 2 (Andon Labs)not reported6144.18 ↗——
WeirdML (Håvard Tveit Ihle)not reported77.7% ↗——
Scores tagged "epoch" or "matharena" are independent runs, used only where the lab has not published its own; ⚠ marks rows MathArena flags as released after the competition. Higher is better on every row. Δ is GPT-5.2-Codex minus GPT-5.4 in the benchmark's own unit. "Not reported" means the lab has not published that figure; it is not a zero. ↗ opens the source.
Specs & pricing

Side by side

SpecGPT-5.2-CodexGPT-5.4Edge
Context window400K tokens1.1M tokensGPT-5.4
Max output128K tokens128K tokensTie
Input price / 1M$1.75 ↗$2.5 ↗GPT-5.2-Codex
Output price / 1M$14 ↗$15 ↗GPT-5.2-Codex
Cached input / 1M$0.175 ↗$0.25 ↗GPT-5.2-Codex
Input + output / 1M
Lower is cheaper. List prices; batch, tool and regional fees excluded.
$15.75$17.5GPT-5.2-Codex
Modalitiestext · visiontext · visionTie
Released2025-12-182026-03-05—
Cited benchmark scores1350—
Reliability

OpenAI status

All providers →
Built by Respan
Which one wins on your data?

Public benchmarks are a starting point. Run GPT-5.2-Codex and GPT-5.4 on your own prompts with Respan evals, or route to either through one gateway key with automatic failover.