GPT-5.2-Codex vs GPT-5.4
Wins 1 of 8 areas
Agents
Wins 4 of 8 areas
Coding · Reasoning · Images and charts · Math
GPT-5.4 wins more areas, narrowly.GPT-5.2-Codex is cheaper and better at agents.
Scores updated · 27 tests both models report · How we compare
Where each one wins
Tests won in each of the eight areas we test. Each piece is one test, so a longer bar means more evidence; grey means the two scored within a point of each other.
- CodingWriting and fixing software15GPT-5.45 of 6 tests
- ReasoningHard problems that need careful thinking04GPT-5.44 of 4 tests
- Images and chartsUnderstanding pictures, charts and video01GPT-5.41 of 1 test
- MathCompetition and research-level math01GPT-5.41 of 1 test
- AgentsCarrying out multi-step tasks on its own10GPT-5.2-Codex1 of 1 test
- FactsGetting facts right instead of making them up11Even1 each
- Long documentsFinding answers in very long texts00Even0 each · 1 tie
- Following instructionsDoing exactly what it is asked11Even1 each
Agents, images and charts, math and long documents rest on a single test each.
What it costs
Prices per million tokens, roughly 750,000 words. The bars show the cost of a million tokens read plus a million written.
GPT-5.2-Codex costs 10% less for the same work.
The biggest differences
The three tests each model wins by the widest margin. Scores are out of 100.
Where GPT-5.4 pulls ahead
- Hard command-line tasks in a real terminalTerminal-Bench Hard+20.5points ahead
- Research-level physics problemsCritPt+14.7points ahead
- Fresh logic puzzles that change regularlyLiveBench · Reasoning+10.4points ahead
Where GPT-5.2-Codex pulls ahead
- Avoids making up answers it doesn't knowAA-Omniscience · Non-hallucination+18.3points ahead
- Programming problems, refreshed regularlyLiveBench · Coding+6.1points ahead
- Follows unfamiliar, precisely checkable instructionsIFBench+3.7points ahead
Every test, side by side
All 27 tests both models report. The winning score is in its model's colour; marks a score checked independently.
CodingGPT-5.4
- Terminal-Bench HardGPT-5.4 by 20.537.157.6+20.5
- LMArena · WebDevGPT-5.4 by 123 rating points13391462+123 rating
- LiveBench · CodingGPT-5.2-Codex by 6.183.677.5+6.1
- LiveBench · Agentic CodingGPT-5.4 by 4.449.453.8+4.4
- SciCodeGPT-5.4 by 254.656.6+2
- SWE-bench ProGPT-5.4 by 1.356.457.7+1.3
ReasoningGPT-5.4
- CritPtGPT-5.4 by 14.78.723.4+14.7
- LiveBench · ReasoningGPT-5.4 by 10.477.788.1+10.4
- Humanity's Last ExamGPT-5.4 by 835.743.7+8
- GPQA DiamondGPT-5.4 by 2.189.992+2.1
FactsEven
- AA-Omniscience · Non-hallucinationGPT-5.2-Codex by 18.326.68.3+18.3
- AA-Omniscience · AccuracyGPT-5.4 by 9.841.150.9+9.8
Following instructionsEven
- IFBenchGPT-5.2-Codex by 3.777.673.9+3.7
- LiveBench · Instruction FollowingGPT-5.4 by 3.766.570.2+3.7
Other results9 tests, not counted
Tests outside the eight areas. They are not counted above: several are summary scores built from other tests, or the same test under another name.
- Artificial Analysis Coding IndexGPT-5.4 by 28.14371.1+28.1
- AA Agentic IndexGPT-5.2-Codex by 12.356.544.2+12.3
- Terminal-Bench 2.0GPT-5.4 by 11.16475.1+11.1
- AA IntelligenceGPT-5.4 by 10.528.539+10.5
- livebench_languageGPT-5.4 by 8.973.782.6+8.9
- AA-OmniscienceGPT-5.4 by 8-2.25.8+8
- LiveBenchGPT-5.4 by 674.380.3+6
- τ²-Bench Telecom (AA run)GPT-5.2-Codex by 592.187.1+5
- livebench_data_analysisGPT-5.4 by 1.178.279.3+1.1
Questions people ask
Which is better, GPT-5.2-Codex or GPT-5.4?
GPT-5.4 wins four of the eight areas we test: coding, reasoning, images and charts and math. GPT-5.2-Codex wins agents, and costs 10% less. They are level on facts, long documents and following instructions.
Which is better for coding?
GPT-5.4. It wins 5 of the 6 coding tests both models report; GPT-5.2-Codex wins 1.
Which is cheaper?
GPT-5.2-Codex costs $1.75 per million input tokens and $14.00 per million output tokens; GPT-5.4 costs $2.50 and $15.00. That makes GPT-5.2-Codex about 10% cheaper for the same work.
How do you compare the two?
We use the 27 benchmark tests both models have published scores on. The verdict counts the 18 tests in the eight capability areas, and a gap under one point (ten on rating-style scales) counts as a tie. The other 9 are listed but not counted, because several are summary scores or repeat a test. Each score is the one shown on the model's own page.