LLMBenchmark.ai

Enter opens the highlighted result. Esc closes.

Claude Haiku 4.5 vs GPT-5.2-Codex

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

Claude Haiku 4.5Anthropic
Coding
49.8
Overall
16.9
Output $/M
$5.00
0
GPT-5.2-CodexOpenAI
Coding
55.1
Overall
28.5
Output $/M
$14.00
10
vs boards won of 10 shared

Decision reading

Pick GPT-5.2-Codex for coding: it scores 55.1 on the Vibe Coding Index against 49.8 for Claude Haiku 4.5, though on 2 benchmarks against 3.

Pick Claude Haiku 4.5 when output tokens cost 2.8x less.

Shared results
10
Claude Haiku 4.5 only
84
GPT-5.2-Codex only
12
Like-for-like categories
2 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
Claude Haiku 4.5 49.8 from 3 benchmarks, GPT-5.2-Codex 55.1 from 2 benchmarks.
Widest category
Coding, 13.9 points apart on average over 9 shared benchmarks.
Widest single gap
LiveCodeBench (Vals AI): Claude Haiku 4.5 41.2% against GPT-5.2-Codex 88.0%, 46.8 points apart on a 0 to 100 scale.
Output price
Claude Haiku 4.5 $5.00 against GPT-5.2-Codex $14.00 per million output tokens, 2.8x apart.
Context window
Claude Haiku 4.5 takes 200K tokens, GPT-5.2-Codex 400K.

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
CategoryClaude Haiku 4.5BarsGPT-5.2-CodexTies
Coding09
Intelligence01
All shared boards010
CodingLike-for-likeFour of these boards feed the Vibe Coding Index09
Coding benchmarks for Claude Haiku 4.5 and GPT-5.2-Codex
BenchmarkClaude Haiku 4.5GPT-5.2-CodexLeader
SWE-bench Verified66.6%72.8%GPT-5.2-Codex
SWE-bench Multilingual64.7%66.3%GPT-5.2-Codex
LiveBench coding48.1%Not measuredOnly Claude Haiku 4.5 measured
LMArena WebDev13301339GPT-5.2-Codex
AA Coding Index43.9Not measuredOnly Claude Haiku 4.5 measured
LiveCodeBench (Vals AI)41.2%88.0%GPT-5.2-Codex
SWE-bench Verified (Vals AI)66.6%72.4%GPT-5.2-Codex
Vibe Code Bench (Vals AI)11.4%37.9%GPT-5.2-Codex
Code migration (Vals AI)7.5%Not measuredOnly Claude Haiku 4.5 measured
ProgramBench (Vals AI)0.0%Not measuredOnly Claude Haiku 4.5 measured
Terminal-Bench 2.1 (Vals AI)43.8%Not measuredOnly Claude Haiku 4.5 measured
Terminal-Bench Hard (Artificial Analysis run)Not measured37.1%Only GPT-5.2-Codex measured
Terminal-Bench35.5%66.5%GPT-5.2-Codex
WeirdML45.4%Not measuredOnly Claude Haiku 4.5 measured
ALE-BenchNot measured1299.9Only GPT-5.2-Codex measured
LMArena Text: coding1454Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: software and IT1439Not measuredOnly Claude Haiku 4.5 measured
LMArena WebDev: React13261329GPT-5.2-Codex
LMArena WebDev: HTML13181348GPT-5.2-Codex
Neither model has a result on the other 19 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index01
Intelligence benchmarks for Claude Haiku 4.5 and GPT-5.2-Codex
BenchmarkClaude Haiku 4.5GPT-5.2-CodexLeader
AA Intelligence Index16.928.5GPT-5.2-Codex
Epoch Capabilities Index142.2Not measuredOnly Claude Haiku 4.5 measured
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index17 boards, none shared
Agentic work benchmarks for Claude Haiku 4.5 and GPT-5.2-Codex
BenchmarkClaude Haiku 4.5GPT-5.2-CodexLeader
AA Agentic Index8.0Not measuredOnly Claude Haiku 4.5 measured
Design Arena: agents building web appsNot measured1051Only GPT-5.2-Codex measured
Design Arena: agents building full-stack appsNot measured993Only GPT-5.2-Codex measured
Design Arena: agents building mobile appsNot measured1090Only GPT-5.2-Codex measured
Design Arena: agents building Android appsNot measured1176Only GPT-5.2-Codex measured
Design Arena: agents building Godot gamesNot measured1142Only GPT-5.2-Codex measured
LiveBench research42.2%Not measuredOnly Claude Haiku 4.5 measured
LiveBench browser40.0%Not measuredOnly Claude Haiku 4.5 measured
LiveBench long agentic11.1%Not measuredOnly Claude Haiku 4.5 measured
Finance Agent (Vals AI)31.0%Not measuredOnly Claude Haiku 4.5 measured
Tax Agent Bench (Vals AI)5.9%Not measuredOnly Claude Haiku 4.5 measured
Legal Research Bench (Vals AI)10.6%Not measuredOnly Claude Haiku 4.5 measured
Excel Modeling Benchmark (Vals AI)22.7%Not measuredOnly Claude Haiku 4.5 measured
τ²-Bench TelecomNot measured92.1%Only GPT-5.2-Codex measured
BALROG31.2%Not measuredOnly Claude Haiku 4.5 measured
DeepResearch Bench45.5%Not measuredOnly Claude Haiku 4.5 measured
Vending-Bench 2$459Not measuredOnly Claude Haiku 4.5 measured
Neither model has a result on the other 22 boards here
ReasoningDirectional onlyPublic boards, shown as published, kept out of the index12 boards, none shared
Reasoning benchmarks for Claude Haiku 4.5 and GPT-5.2-Codex
BenchmarkClaude Haiku 4.5GPT-5.2-CodexLeader
GPQA Diamond72.2%Not measuredOnly Claude Haiku 4.5 measured
LiveBench reasoning61.7%Not measuredOnly Claude Haiku 4.5 measured
MMMU Pro (Vals AI)46.1%Not measuredOnly Claude Haiku 4.5 measured
GPQA Diamond (Artificial Analysis run)Not measured89.9%Only GPT-5.2-Codex measured
Humanity's Last Exam (Artificial Analysis run)Not measured35.7%Only GPT-5.2-Codex measured
GPQA Diamond (Epoch AI run)71.2%Not measuredOnly Claude Haiku 4.5 measured
ARC-AGI47.7%Not measuredOnly Claude Haiku 4.5 measured
ARC-AGI-24.0%Not measuredOnly Claude Haiku 4.5 measured
Chess puzzles8.0%Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: hard prompts1421Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: expert1443Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: hard prompts in English1435Not measuredOnly Claude Haiku 4.5 measured
Neither model has a result on the other 9 boards here
MathDirectional onlyPublic boards, shown as published, kept out of the index6 boards, none shared
Math benchmarks for Claude Haiku 4.5 and GPT-5.2-Codex
BenchmarkClaude Haiku 4.5GPT-5.2-CodexLeader
AIME82.7%Not measuredOnly Claude Haiku 4.5 measured
MGSM (Vals AI)92.2%Not measuredOnly Claude Haiku 4.5 measured
OTIS Mock AIME66.7%Not measuredOnly Claude Haiku 4.5 measured
MATH level 596.4%Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: math1398Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: mathematical work1430Not measuredOnly Claude Haiku 4.5 measured
Neither model has a result on the other 7 boards here
KnowledgeDirectional onlyPublic boards, shown as published, kept out of the index13 boards, none shared
Knowledge benchmarks for Claude Haiku 4.5 and GPT-5.2-Codex
BenchmarkClaude Haiku 4.5GPT-5.2-CodexLeader
MMLU Pro78.7%Not measuredOnly Claude Haiku 4.5 measured
LegalBench (Vals AI)81.2%Not measuredOnly Claude Haiku 4.5 measured
CaseLaw (Vals AI)56.5%Not measuredOnly Claude Haiku 4.5 measured
CorpFin (Vals AI)60.6%Not measuredOnly Claude Haiku 4.5 measured
TaxEval (Vals AI)67.5%Not measuredOnly Claude Haiku 4.5 measured
MortgageTax (Vals AI)62.2%Not measuredOnly Claude Haiku 4.5 measured
MedQA (Vals AI)79.6%Not measuredOnly Claude Haiku 4.5 measured
MedCode (Vals AI)32.7%Not measuredOnly Claude Haiku 4.5 measured
SimpleQA Verified13.2%Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: science1406Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: medicine and healthcare1394Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: legal and government1400Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: business and finance1400Not measuredOnly Claude Haiku 4.5 measured
Neither model has a result on the other 4 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index9 boards, none shared
Web design benchmarks for Claude Haiku 4.5 and GPT-5.2-Codex
BenchmarkClaude Haiku 4.5GPT-5.2-CodexLeader
Design Arena: websites1122Not measuredOnly Claude Haiku 4.5 measured
Design Arena: UI components1100Not measuredOnly Claude Haiku 4.5 measured
Design Arena: game dev1097Not measuredOnly Claude Haiku 4.5 measured
Design Arena: data viz1124Not measuredOnly Claude Haiku 4.5 measured
Design Arena: 3D1072Not measuredOnly Claude Haiku 4.5 measured
Design Arena: all code categories1115Not measuredOnly Claude Haiku 4.5 measured
Design Arena: SVG1025Not measuredOnly Claude Haiku 4.5 measured
Design Arena: ASCII art1139Not measuredOnly Claude Haiku 4.5 measured
LiveBench design59.9%Not measuredOnly Claude Haiku 4.5 measured
GeneralDirectional onlyPublic boards, shown as published, kept out of the index28 boards, none shared
General benchmarks for Claude Haiku 4.5 and GPT-5.2-Codex
BenchmarkClaude Haiku 4.5GPT-5.2-CodexLeader
LiveBench data analysis59.3%Not measuredOnly Claude Haiku 4.5 measured
Public Benefits Bench (Vals AI)54.3%Not measuredOnly Claude Haiku 4.5 measured
SAGE (Vals AI)31.8%Not measuredOnly Claude Haiku 4.5 measured
MedScribe (Vals AI)85.2%Not measuredOnly Claude Haiku 4.5 measured
Vals Multimodal Index42.9%Not measuredOnly Claude Haiku 4.5 measured
IFBenchNot measured77.6%Only GPT-5.2-Codex measured
Long context reasoning (AA-LCR)Not measured82.3%Only GPT-5.2-Codex measured
DTBench73.6%Not measuredOnly Claude Haiku 4.5 measured
LMCA30.9%Not measuredOnly Claude Haiku 4.5 measured
ExploitBench13.7%Not measuredOnly Claude Haiku 4.5 measured
LMArena Text1397Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: instruction following1414Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: creative writing1371Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: English1414Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: non-English1377Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: Chinese1418Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: German1374Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: Japanese1338Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: Korean1346Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: French1411Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: Spanish1421Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: Russian1381Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: Polish1343Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: multi-turn1409Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: longer queries1427Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: writing and language1386Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: entertainment and media1369Not measuredOnly Claude Haiku 4.5 measured
LMArena Document1420Not measuredOnly Claude Haiku 4.5 measured
Neither model has a result on the other 18 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Claude Haiku 4.5 and GPT-5.2-Codex
BenchmarkClaude Haiku 4.5GPT-5.2-CodexLeader
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

Claude Haiku 4.5$0.0035Fits in one request
GPT-5.2-Codex$0.0088Fits in one request

Claude Haiku 4.5 costs less

Repository review

50K input + 3K output tokens

Claude Haiku 4.5$0.065Fits in one request
GPT-5.2-Codex$0.130Fits in one request

Claude Haiku 4.5 costs less

Agent loop

200K input + 10K output tokens

Claude Haiku 4.5$0.250Exceeds the context window
GPT-5.2-Codex$0.490Fits in one request

Claude Haiku 4.5 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 Claude Haiku 4.5 and GPT-5.2-Codex
SpecificationAnthropic Claude Haiku 4.5OpenAI GPT-5.2-Codex
MakerAnthropicOpenAI
WeightsNo public weights listedNo public weights listed
ReleasedOctober 15, 2025January 14, 2026
Context window200K400K
Input $/Mtok$1.00$1.75
Output $/Mtok$5.00$14.00
Coding index49.855.1
Independent measurements behind it32
Cost per solved task$0.56$0.43
SourceOpenRouter listingOpenRouter listing

Questions

Is Claude Haiku 4.5 better than GPT-5.2-Codex for coding?

Pick GPT-5.2-Codex for coding: it scores 55.1 on the Vibe Coding Index against 49.8 for Claude Haiku 4.5, though on 2 benchmarks against 3. Pick Claude Haiku 4.5 when output tokens cost 2.8x less.

Which is cheaper, Claude Haiku 4.5 or GPT-5.2-Codex?

Claude Haiku 4.5 costs $1.00 per million input tokens and $5.00 per million output tokens; GPT-5.2-Codex costs $1.75 and $14.00. Per solved SWE-bench Verified task, Claude Haiku 4.5 costs $0.56 and GPT-5.2-Codex $0.43.

Which has the bigger context window, Claude Haiku 4.5 or GPT-5.2-Codex?

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

How many benchmarks is the Claude Haiku 4.5 vs GPT-5.2-Codex comparison based on?

10 benchmarks have a result for both models as of October 21, 2026. Claude Haiku 4.5's coding index rests on 3 independent benchmarks and GPT-5.2-Codex'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/claude-haiku-4-5-vs-gpt-5-2-codex" title="Claude Haiku 4.5 vs GPT-5.2-Codex, 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/claude-haiku-4-5-vs-gpt-5-2-codex">LLMBenchmark.ai, Claude Haiku 4.5 vs GPT-5.2-Codex</a></p>