Enter opens the highlighted result. Esc closes.

Claude Haiku 4.5 vs GPT-5.1-Codex

Updated October 21, 2026. 12 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
1
GPT-5.1-CodexOpenAI
Coding
50.5
Overall
23.7
Output $/M
$10.00
11
vs boards won of 12 shared

Decision reading

Claude Haiku 4.5 and GPT-5.1-Codex are level for coding, 49.8 against 50.5 on the Vibe Coding Index, so price and context decide.

Pick Claude Haiku 4.5 when output tokens cost 2.0x less, or when a solved task costs $0.56 against $0.892. Pick GPT-5.1-Codex when the context window is larger, 400K against 200K tokens, or when what matters is LMArena WebDev or LiveCodeBench (Vals AI), where it leads.

Shared results
12
Claude Haiku 4.5 only
82
GPT-5.1-Codex only
14
Like-for-like categories
3 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.1-Codex 50.5 from 2 benchmarks.
Widest category
Coding, 12.4 points apart on average over 6 shared benchmarks.
Widest single gap
LiveCodeBench (Vals AI): Claude Haiku 4.5 41.2% against GPT-5.1-Codex 85.5%, 44.4 points apart on a 0 to 100 scale.
Output price
Claude Haiku 4.5 $5.00 against GPT-5.1-Codex $10.00 per million output tokens, 2.0x apart.
Context window
Claude Haiku 4.5 takes 200K tokens, GPT-5.1-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.1-CodexTies
Coding15
Intelligence01
Web design05
All shared boards111
CodingLike-for-likeFour of these boards feed the Vibe Coding Index15
Coding benchmarks for Claude Haiku 4.5 and GPT-5.1-Codex
BenchmarkClaude Haiku 4.5GPT-5.1-CodexLeader
SWE-bench Verified66.6%66.0%Claude Haiku 4.5
SWE-bench Multilingual64.7%Not measuredOnly Claude Haiku 4.5 measured
LiveBench coding48.1%Not measuredOnly Claude Haiku 4.5 measured
LMArena WebDev13301337GPT-5.1-Codex
AA Coding Index43.9Not measuredOnly Claude Haiku 4.5 measured
LiveCodeBench (Vals AI)41.2%85.5%GPT-5.1-Codex
SWE-bench Verified (Vals AI)66.6%Not measuredOnly Claude Haiku 4.5 measured
Vibe Code Bench (Vals AI)11.4%13.1%GPT-5.1-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
LiveCodeBench (Artificial Analysis run)Not measured84.9%Only GPT-5.1-Codex measured
Terminal-Bench Hard (Artificial Analysis run)Not measured34.8%Only GPT-5.1-Codex measured
Terminal-Bench35.5%57.8%GPT-5.1-Codex
WeirdML45.4%Not measuredOnly Claude Haiku 4.5 measured
ALE-BenchNot measured1244.9Only GPT-5.1-Codex measured
LMArena Text: coding1454Not measuredOnly Claude Haiku 4.5 measured
LMArena Text: software and IT1439Not measuredOnly Claude Haiku 4.5 measured
LMArena WebDev: React1326Not measuredOnly Claude Haiku 4.5 measured
LMArena WebDev: HTML13181346GPT-5.1-Codex
Neither model has a result on the other 18 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index01
Intelligence benchmarks for Claude Haiku 4.5 and GPT-5.1-Codex
BenchmarkClaude Haiku 4.5GPT-5.1-CodexLeader
AA Intelligence Index16.923.7GPT-5.1-Codex
Epoch Capabilities Index142.2Not measuredOnly Claude Haiku 4.5 measured
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index15 boards, none shared
Agentic work benchmarks for Claude Haiku 4.5 and GPT-5.1-Codex
BenchmarkClaude Haiku 4.5GPT-5.1-CodexLeader
AA Agentic Index8.0Not measuredOnly Claude Haiku 4.5 measured
Design Arena: agents building web appsNot measured1018Only GPT-5.1-Codex measured
Design Arena: agents building full-stack appsNot measured1086Only GPT-5.1-Codex measured
Design Arena: agents building mobile appsNot measured1191Only GPT-5.1-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 measured83.0%Only GPT-5.1-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 24 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.1-Codex
BenchmarkClaude Haiku 4.5GPT-5.1-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 measured86.0%Only GPT-5.1-Codex measured
Humanity's Last Exam (Artificial Analysis run)Not measured25.7%Only GPT-5.1-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 index8 boards, none shared
Math benchmarks for Claude Haiku 4.5 and GPT-5.1-Codex
BenchmarkClaude Haiku 4.5GPT-5.1-CodexLeader
AIME82.7%Not measuredOnly Claude Haiku 4.5 measured
MGSM (Vals AI)92.2%Not measuredOnly Claude Haiku 4.5 measured
AA Math IndexNot measured95.7Only GPT-5.1-Codex measured
AIME 2025 (Artificial Analysis run)Not measured95.7%Only GPT-5.1-Codex 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 5 boards here
KnowledgeDirectional onlyPublic boards, shown as published, kept out of the index14 boards, none shared
Knowledge benchmarks for Claude Haiku 4.5 and GPT-5.1-Codex
BenchmarkClaude Haiku 4.5GPT-5.1-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
MMLU Pro (Artificial Analysis run)Not measured86.0%Only GPT-5.1-Codex 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 3 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index05
Web design benchmarks for Claude Haiku 4.5 and GPT-5.1-Codex
BenchmarkClaude Haiku 4.5GPT-5.1-CodexLeader
Design Arena: websites11221162GPT-5.1-Codex
Design Arena: UI components11001237GPT-5.1-Codex
Design Arena: game dev10971138GPT-5.1-Codex
Design Arena: data viz11241213GPT-5.1-Codex
Design Arena: 3D1072Not measuredOnly Claude Haiku 4.5 measured
Design Arena: all code categories11151153GPT-5.1-Codex
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.1-Codex
BenchmarkClaude Haiku 4.5GPT-5.1-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 measured70.0%Only GPT-5.1-Codex measured
Long context reasoning (AA-LCR)Not measured69.3%Only GPT-5.1-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.1-Codex
BenchmarkClaude Haiku 4.5GPT-5.1-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.1-Codex$0.0063Fits 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.1-Codex$0.092Fits 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.1-Codex$0.350Fits 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.1-Codex
SpecificationAnthropic Claude Haiku 4.5OpenAI GPT-5.1-Codex
MakerAnthropicOpenAI
WeightsNo public weights listedNo public weights listed
ReleasedOctober 15, 2025November 13, 2025
Context window200K400K
Input $/Mtok$1.00$1.25
Output $/Mtok$5.00$10.00
Coding index49.850.5
Independent measurements behind it32
Cost per solved task$0.56$0.892
SourceOpenRouter listingOpenRouter listing

Questions

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

Claude Haiku 4.5 and GPT-5.1-Codex are level for coding, 49.8 against 50.5 on the Vibe Coding Index, so price and context decide. Pick Claude Haiku 4.5 when output tokens cost 2.0x less, or when a solved task costs $0.56 against $0.892. Pick GPT-5.1-Codex when the context window is larger, 400K against 200K tokens, or when what matters is LMArena WebDev or LiveCodeBench (Vals AI), where it leads.

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

Claude Haiku 4.5 costs $1.00 per million input tokens and $5.00 per million output tokens; GPT-5.1-Codex costs $1.25 and $10.00. Per solved SWE-bench Verified task, Claude Haiku 4.5 costs $0.56 and GPT-5.1-Codex $0.892.

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

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

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

12 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.1-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-1-codex" title="Claude Haiku 4.5 vs GPT-5.1-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-1-codex">LLMBenchmark.ai, Claude Haiku 4.5 vs GPT-5.1-Codex</a></p>