Enter opens the highlighted result. Esc closes.

Claude Sonnet 4.5 vs GPT-5.1-Codex-Max

GPT-5.1-Codex-Max costs 1.5x less per output token than Claude Sonnet 4.5 ($10.00 vs $15.00 per million). Updated October 21, 2026; 5 benchmarks have a result for both.

Claude Sonnet 4.5Anthropic
Coding
39.5
Overall
49.5
Output $/M
$15.00
2
GPT-5.1-Codex-MaxOpenAI
Coding
No data
Overall
No data
Output $/M
$10.00
3
vs boards won of 5 shared

Claude Sonnet 4.5 or GPT-5.1-Codex-Max: which to pick

Only Claude Sonnet 4.5 has a coding score, 39.5 on the Vibe Coding Index; GPT-5.1-Codex-Max has none, so the two cannot be ranked on coding.

Pick GPT-5.1-Codex-Max for output tokens 1.5x cheaper ($10.00 vs $15.00 per million) and work measured by LiveCodeBench (Vals AI) or Terminal-Bench, where it leads.

Shared results
5
Claude Sonnet 4.5 only
90
GPT-5.1-Codex-Max only
1
Like-for-like categories
3 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
Claude Sonnet 4.5 39.5 from 3 benchmarks, GPT-5.1-Codex-Max not benchmarked.
Widest category
Math, 10.0 points apart on average over 1 shared benchmark.
Widest single gap
Terminal-Bench: Claude Sonnet 4.5 46.5% against GPT-5.1-Codex-Max 60.4%, 13.9 points apart on a 0 to 100 scale.
Output price
Claude Sonnet 4.5 $15.00 against GPT-5.1-Codex-Max $10.00 per million output tokens, 1.5x apart.
Context window
Claude Sonnet 4.5 takes 1M tokens, GPT-5.1-Codex-Max 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 Sonnet 4.5BarsGPT-5.1-Codex-MaxTies
Coding12
Agentic work01
Math10
All shared boards23
CodingLike-for-likeSix of these boards feed the Vibe Coding Index12
Coding benchmarks for Claude Sonnet 4.5 and GPT-5.1-Codex-Max
BenchmarkClaude Sonnet 4.5GPT-5.1-Codex-MaxLeader
SWE-bench Verified74.8%Not measuredOnly Claude Sonnet 4.5 measured
SWE-bench Multilingual67.0%Not measuredOnly Claude Sonnet 4.5 measured
LMArena WebDev1394Not measuredOnly Claude Sonnet 4.5 measured
AA Coding Index52.1Not measuredOnly Claude Sonnet 4.5 measured
LiveCodeBench (Vals AI)73.0%83.6%GPT-5.1-Codex-Max
SWE-bench Verified (Vals AI)70.0%Not measuredOnly Claude Sonnet 4.5 measured
Vibe Code Bench (Vals AI)22.6%22.2%Claude Sonnet 4.5
Terminal-Bench46.5%60.4%GPT-5.1-Codex-Max
GSO-Bench14.7%Not measuredOnly Claude Sonnet 4.5 measured
WeirdML47.7%Not measuredOnly Claude Sonnet 4.5 measured
Cybench60.0%Not measuredOnly Claude Sonnet 4.5 measured
ALE-BenchNot measured1228.3Only GPT-5.1-Codex-Max measured
LMArena Text: coding1488Not measuredOnly Claude Sonnet 4.5 measured
LMArena Text: software and IT1473Not measuredOnly Claude Sonnet 4.5 measured
LMArena WebDev: React1386Not measuredOnly Claude Sonnet 4.5 measured
LMArena WebDev: HTML1399Not measuredOnly Claude Sonnet 4.5 measured
Neither model has a result on the other 23 boards here
IntelligenceDirectional onlyPublic boards, shown as published, kept out of the index2 boards, none shared
Intelligence benchmarks for Claude Sonnet 4.5 and GPT-5.1-Codex-Max
BenchmarkClaude Sonnet 4.5GPT-5.1-Codex-MaxLeader
AA Intelligence Index20.7Not measuredOnly Claude Sonnet 4.5 measured
Epoch Capabilities Index146.7Not measuredOnly Claude Sonnet 4.5 measured
Agentic workLike-for-likePublic boards, shown as published, kept out of the index01
Agentic work benchmarks for Claude Sonnet 4.5 and GPT-5.1-Codex-Max
BenchmarkClaude Sonnet 4.5GPT-5.1-Codex-MaxLeader
AA Agentic Index15.8Not measuredOnly Claude Sonnet 4.5 measured
Design Arena: agents building web apps1059Not measuredOnly Claude Sonnet 4.5 measured
Design Arena: agents building full-stack apps1050Not measuredOnly Claude Sonnet 4.5 measured
Design Arena: agents building mobile apps1137Not measuredOnly Claude Sonnet 4.5 measured
METR time horizons67.4%70.8%GPT-5.1-Codex-Max
Remote Labor Index2.1%Not measuredOnly Claude Sonnet 4.5 measured
GDPval42.5%Not measuredOnly Claude Sonnet 4.5 measured
DeepResearch Bench52.6%Not measuredOnly Claude Sonnet 4.5 measured
OSWorld62.9%Not measuredOnly Claude Sonnet 4.5 measured
Vending-Bench 2$3,839Not measuredOnly Claude Sonnet 4.5 measured
Berkeley Function Calling Leaderboard (BFCL)73.2%Not measuredOnly Claude Sonnet 4.5 measured
Neither model has a result on the other 30 boards here
ReasoningDirectional onlyPublic boards, shown as published, kept out of the index14 boards, none shared
Reasoning benchmarks for Claude Sonnet 4.5 and GPT-5.1-Codex-Max
BenchmarkClaude Sonnet 4.5GPT-5.1-Codex-MaxLeader
GPQA Diamond81.6%Not measuredOnly Claude Sonnet 4.5 measured
MMMU Pro (Vals AI)79.3%Not measuredOnly Claude Sonnet 4.5 measured
GPQA Diamond (Epoch AI run)82.3%Not measuredOnly Claude Sonnet 4.5 measured
ARC-AGI63.7%Not measuredOnly Claude Sonnet 4.5 measured
ARC-AGI-213.6%Not measuredOnly Claude Sonnet 4.5 measured
SimpleBench54.3%Not measuredOnly Claude Sonnet 4.5 measured
Chess puzzles10.0%Not measuredOnly Claude Sonnet 4.5 measured
Mystery game puzzles17.0%Not measuredOnly Claude Sonnet 4.5 measured
EBR-bench2.4%Not measuredOnly Claude Sonnet 4.5 measured
VPCT39.8%Not measuredOnly Claude Sonnet 4.5 measured
LMArena Text: hard prompts1462Not measuredOnly Claude Sonnet 4.5 measured
LMArena Text: expert1483Not measuredOnly Claude Sonnet 4.5 measured
LMArena Text: hard prompts in English1471Not measuredOnly Claude Sonnet 4.5 measured
Kagi LLM Benchmark57.9%Not measuredOnly Claude Sonnet 4.5 measured
Neither model has a result on the other 8 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index10
Math benchmarks for Claude Sonnet 4.5 and GPT-5.1-Codex-Max
BenchmarkClaude Sonnet 4.5GPT-5.1-Codex-MaxLeader
AIME88.2%Not measuredOnly Claude Sonnet 4.5 measured
MGSM (Vals AI)94.3%Not measuredOnly Claude Sonnet 4.5 measured
OTIS Mock AIME77.8%Not measuredOnly Claude Sonnet 4.5 measured
FrontierMath, tiers 1 to 323.9%Not measuredOnly Claude Sonnet 4.5 measured
FrontierMath, tier 42.4%Not measuredOnly Claude Sonnet 4.5 measured
ProofBench19.0%9.0%Claude Sonnet 4.5
MATH level 597.7%Not measuredOnly Claude Sonnet 4.5 measured
LMArena Text: math1449Not measuredOnly Claude Sonnet 4.5 measured
LMArena Text: mathematical work1462Not measuredOnly Claude Sonnet 4.5 measured
Neither model has a result on the other 4 boards here
KnowledgeDirectional onlyPublic boards, shown as published, kept out of the index14 boards, none shared
Knowledge benchmarks for Claude Sonnet 4.5 and GPT-5.1-Codex-Max
BenchmarkClaude Sonnet 4.5GPT-5.1-Codex-MaxLeader
MMLU Pro87.4%Not measuredOnly Claude Sonnet 4.5 measured
LegalBench (Vals AI)84.1%Not measuredOnly Claude Sonnet 4.5 measured
CaseLaw (Vals AI)62.2%Not measuredOnly Claude Sonnet 4.5 measured
CorpFin (Vals AI)62.0%Not measuredOnly Claude Sonnet 4.5 measured
TaxEval (Vals AI)73.3%Not measuredOnly Claude Sonnet 4.5 measured
MortgageTax (Vals AI)64.0%Not measuredOnly Claude Sonnet 4.5 measured
MedQA (Vals AI)94.7%Not measuredOnly Claude Sonnet 4.5 measured
MedCode (Vals AI)44.1%Not measuredOnly Claude Sonnet 4.5 measured
SimpleQA Verified30.7%Not measuredOnly Claude Sonnet 4.5 measured
LMArena Text: science1448Not measuredOnly Claude Sonnet 4.5 measured
LMArena Text: medicine and healthcare1444Not measuredOnly Claude Sonnet 4.5 measured
LMArena Text: legal and government1451Not measuredOnly Claude Sonnet 4.5 measured
LMArena Text: business and finance1440Not measuredOnly Claude Sonnet 4.5 measured
FACTS Benchmark Suite40.6%Not measuredOnly Claude Sonnet 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 index8 boards, none shared
Web design benchmarks for Claude Sonnet 4.5 and GPT-5.1-Codex-Max
BenchmarkClaude Sonnet 4.5GPT-5.1-Codex-MaxLeader
Design Arena: websites1190Not measuredOnly Claude Sonnet 4.5 measured
Design Arena: UI components1173Not measuredOnly Claude Sonnet 4.5 measured
Design Arena: game dev1166Not measuredOnly Claude Sonnet 4.5 measured
Design Arena: data viz1167Not measuredOnly Claude Sonnet 4.5 measured
Design Arena: 3D1158Not measuredOnly Claude Sonnet 4.5 measured
Design Arena: all code categories1183Not measuredOnly Claude Sonnet 4.5 measured
Design Arena: SVG1115Not measuredOnly Claude Sonnet 4.5 measured
Design Arena: ASCII art1205Not measuredOnly Claude Sonnet 4.5 measured
Neither model has a result on the other 1 board here
GeneralDirectional onlyPublic boards, shown as published, kept out of the index22 boards, none shared
General benchmarks for Claude Sonnet 4.5 and GPT-5.1-Codex-Max
BenchmarkClaude Sonnet 4.5GPT-5.1-Codex-MaxLeader
SAGE (Vals AI)36.1%Not measuredOnly Claude Sonnet 4.5 measured
MedScribe (Vals AI)84.5%Not measuredOnly Claude Sonnet 4.5 measured
DTBench83.2%Not measuredOnly Claude Sonnet 4.5 measured
LMCA38.8%Not measuredOnly Claude Sonnet 4.5 measured
LMArena Text1438Not measuredOnly Claude Sonnet 4.5 measured
LMArena Text: instruction following1459Not measuredOnly Claude Sonnet 4.5 measured
LMArena Text: creative writing1442Not measuredOnly Claude Sonnet 4.5 measured
LMArena Text: English1450Not measuredOnly Claude Sonnet 4.5 measured
LMArena Text: non-English1425Not measuredOnly Claude Sonnet 4.5 measured
LMArena Text: Chinese1460Not measuredOnly Claude Sonnet 4.5 measured
LMArena Text: German1427Not measuredOnly Claude Sonnet 4.5 measured
LMArena Text: Japanese1390Not measuredOnly Claude Sonnet 4.5 measured
LMArena Text: Korean1402Not measuredOnly Claude Sonnet 4.5 measured
LMArena Text: French1459Not measuredOnly Claude Sonnet 4.5 measured
LMArena Text: Spanish1458Not measuredOnly Claude Sonnet 4.5 measured
LMArena Text: Russian1437Not measuredOnly Claude Sonnet 4.5 measured
LMArena Text: Polish1423Not measuredOnly Claude Sonnet 4.5 measured
LMArena Text: multi-turn1465Not measuredOnly Claude Sonnet 4.5 measured
LMArena Text: longer queries1475Not measuredOnly Claude Sonnet 4.5 measured
LMArena Text: writing and language1442Not measuredOnly Claude Sonnet 4.5 measured
LMArena Text: entertainment and media1428Not measuredOnly Claude Sonnet 4.5 measured
LMArena Document1450Not measuredOnly Claude Sonnet 4.5 measured
Neither model has a result on the other 24 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Claude Sonnet 4.5 and GPT-5.1-Codex-Max
BenchmarkClaude Sonnet 4.5GPT-5.1-Codex-MaxLeader
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 Sonnet 4.5$0.011Fits in one request
GPT-5.1-Codex-Max$0.0063Fits in one request

GPT-5.1-Codex-Max costs less

Repository review

50K input + 3K output tokens

Claude Sonnet 4.5$0.195Fits in one request
GPT-5.1-Codex-Max$0.092Fits in one request

GPT-5.1-Codex-Max costs less

Agent loop

200K input + 10K output tokens

Claude Sonnet 4.5$0.750Fits in one request
GPT-5.1-Codex-Max$0.350Fits in one request

GPT-5.1-Codex-Max 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 Sonnet 4.5 and GPT-5.1-Codex-Max
SpecificationAnthropic Claude Sonnet 4.5OpenAI GPT-5.1-Codex-Max
MakerAnthropicOpenAI
WeightsNo public weights listedNo public weights listed
ReleasedSeptember 29, 2025December 4, 2025
Context window1M400K
Input $/Mtok$3.00$1.25
Output $/Mtok$15.00$10.00
Coding index39.5Not benchmarked
Independent measurements behind it31
Cost per solved task$1.16Not computable
SourceOpenRouter listingOpenRouter listing

Questions

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

Only Claude Sonnet 4.5 has a coding score, 39.5 on the Vibe Coding Index; GPT-5.1-Codex-Max has none, so the two cannot be ranked on coding. Pick GPT-5.1-Codex-Max for output tokens 1.5x cheaper ($10.00 vs $15.00 per million) and work measured by LiveCodeBench (Vals AI) or Terminal-Bench, where it leads.

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

Claude Sonnet 4.5 costs $3.00 per million input tokens and $15.00 per million output tokens; GPT-5.1-Codex-Max costs $1.25 and $10.00. Cost per solved task is known for Claude Sonnet 4.5 only.

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

Claude Sonnet 4.5, with 1M tokens against 400K.

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

5 benchmarks have a result for both models as of October 21, 2026. Claude Sonnet 4.5's coding index rests on 3 independent benchmarks and GPT-5.1-Codex-Max's on 1. Where only one model has a result, the page says so instead of naming a winner.

Compare next