Enter opens the highlighted result. Esc closes.

Claude Opus 4.5 vs GPT-5.2-Codex

GPT-5.2-Codex leads Claude Opus 4.5 on coding, 45.4 to 44.0 on the Vibe Coding Index, and GPT-5.2-Codex costs 1.8x less per output token ($14.00 vs $25.00 per million). Updated October 21, 2026; 20 benchmarks have a result for both.

Claude Opus 4.5Anthropic
Coding
44.0
Overall
55.7
Output $/M
$25.00
11
GPT-5.2-CodexOpenAI
Coding
45.4
Overall
No data
Output $/M
$14.00
9
vs boards won of 20 shared

Claude Opus 4.5 or GPT-5.2-Codex: which to pick

Claude Opus 4.5 and GPT-5.2-Codex are level for coding, 44.0 against 45.4 on the Vibe Coding Index, so price and context decide.

Pick Claude Opus 4.5 for work measured by SWE-bench Verified or SWE-bench Multilingual, where it leads. Pick GPT-5.2-Codex for output tokens 1.8x cheaper ($14.00 vs $25.00 per million) and a lower cost per solved task ($0.43 against $1.37).

Shared results
20
Claude Opus 4.5 only
88
GPT-5.2-Codex only
2
Like-for-like categories
5 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 Opus 4.5 44.0 from 3 benchmarks, GPT-5.2-Codex 45.4 from 3 benchmarks.
Widest category
Coding, 12.4 points apart on average over 10 shared benchmarks.
Widest single gap
LMArena WebDev: HTML: Claude Opus 4.5 1510 against GPT-5.2-Codex 1348, 27.0 points apart on a 0 to 100 scale.
Output price
Claude Opus 4.5 $25.00 against GPT-5.2-Codex $14.00 per million output tokens, 1.8x apart.
Context window
Claude Opus 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 Opus 4.5BarsGPT-5.2-CodexTies
Coding73
Intelligence10
Agentic work32
Reasoning02
General02
All shared boards119
CodingLike-for-likeSix of these boards feed the Vibe Coding Index73
Coding benchmarks for Claude Opus 4.5 and GPT-5.2-Codex
BenchmarkClaude Opus 4.5GPT-5.2-CodexLeader
SWE-bench Verified79.2%72.8%Claude Opus 4.5
SWE-bench (full test set)52.6%Not measuredOnly Claude Opus 4.5 measured
SWE-bench Multilingual70.7%66.3%Claude Opus 4.5
LMArena WebDev14941339Claude Opus 4.5
LiveCodeBench (Vals AI)83.7%88.0%GPT-5.2-Codex
SWE-bench Verified (Vals AI)76.4%72.4%Claude Opus 4.5
Vibe Code Bench (Vals AI)20.6%37.9%GPT-5.2-Codex
LiveCodeBench (Artificial Analysis run)87.1%Not measuredOnly Claude Opus 4.5 measured
Terminal-Bench Hard (Artificial Analysis run)47.0%37.1%Claude Opus 4.5
Terminal-Bench63.1%66.5%GPT-5.2-Codex
GSO-Bench26.5%Not measuredOnly Claude Opus 4.5 measured
WeirdML63.7%Not measuredOnly Claude Opus 4.5 measured
Cybench82.0%Not measuredOnly Claude Opus 4.5 measured
ALE-BenchNot measured1299.9Only GPT-5.2-Codex measured
LMArena Text: coding1503Not measuredOnly Claude Opus 4.5 measured
LMArena Text: software and IT1483Not measuredOnly Claude Opus 4.5 measured
LMArena WebDev: React14781329Claude Opus 4.5
LMArena WebDev: HTML15101348Claude Opus 4.5
Neither model has a result on the other 21 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index10
Intelligence benchmarks for Claude Opus 4.5 and GPT-5.2-Codex
BenchmarkClaude Opus 4.5GPT-5.2-CodexLeader
AA Intelligence Index29.128.5Claude Opus 4.5
Epoch Capabilities Index150.1Not measuredOnly Claude Opus 4.5 measured
Agentic workLike-for-likePublic boards, shown as published, kept out of the index32
Agentic work benchmarks for Claude Opus 4.5 and GPT-5.2-Codex
BenchmarkClaude Opus 4.5GPT-5.2-CodexLeader
Design Arena: agents building web apps11591051Claude Opus 4.5
Design Arena: agents building full-stack apps1156993Claude Opus 4.5
Design Arena: agents building mobile apps11891090Claude Opus 4.5
Design Arena: agents building Android apps11751176GPT-5.2-Codex
Design Arena: agents building Godot gamesNot measured1142Only GPT-5.2-Codex measured
τ²-Bench Telecom89.5%92.1%GPT-5.2-Codex
METR time horizons75.0%Not measuredOnly Claude Opus 4.5 measured
Remote Labor Index3.8%Not measuredOnly Claude Opus 4.5 measured
GDPval45.5%Not measuredOnly Claude Opus 4.5 measured
BALROG43.5%Not measuredOnly Claude Opus 4.5 measured
DeepResearch Bench54.8%Not measuredOnly Claude Opus 4.5 measured
OSWorld66.3%Not measuredOnly Claude Opus 4.5 measured
Vending-Bench 2$4,967Not measuredOnly Claude Opus 4.5 measured
Berkeley Function Calling Leaderboard (BFCL)77.5%Not measuredOnly Claude Opus 4.5 measured
Neither model has a result on the other 27 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index02
Reasoning benchmarks for Claude Opus 4.5 and GPT-5.2-Codex
BenchmarkClaude Opus 4.5GPT-5.2-CodexLeader
GPQA Diamond85.9%Not measuredOnly Claude Opus 4.5 measured
MMMU Pro (Vals AI)83.0%Not measuredOnly Claude Opus 4.5 measured
GPQA Diamond (Artificial Analysis run)86.6%89.9%GPT-5.2-Codex
Humanity's Last Exam (Artificial Analysis run)30.1%35.7%GPT-5.2-Codex
GPQA Diamond (Epoch AI run)86.0%Not measuredOnly Claude Opus 4.5 measured
ARC-AGI80.0%Not measuredOnly Claude Opus 4.5 measured
ARC-AGI-237.6%Not measuredOnly Claude Opus 4.5 measured
SimpleBench62.0%Not measuredOnly Claude Opus 4.5 measured
Chess puzzles14.0%Not measuredOnly Claude Opus 4.5 measured
Mystery game puzzles22.0%Not measuredOnly Claude Opus 4.5 measured
EBR-bench14.3%Not measuredOnly Claude Opus 4.5 measured
VPCT40.0%Not measuredOnly Claude Opus 4.5 measured
LMArena Text: hard prompts1476Not measuredOnly Claude Opus 4.5 measured
LMArena Text: expert1487Not measuredOnly Claude Opus 4.5 measured
LMArena Text: hard prompts in English1482Not measuredOnly Claude Opus 4.5 measured
Kagi LLM Benchmark80.2%Not measuredOnly Claude Opus 4.5 measured
Neither model has a result on the other 6 boards here
MathDirectional onlyPublic boards, shown as published, kept out of the index10 boards, none shared
Math benchmarks for Claude Opus 4.5 and GPT-5.2-Codex
BenchmarkClaude Opus 4.5GPT-5.2-CodexLeader
AIME95.4%Not measuredOnly Claude Opus 4.5 measured
MGSM (Vals AI)95.2%Not measuredOnly Claude Opus 4.5 measured
AA Math Index91.3Not measuredOnly Claude Opus 4.5 measured
AIME 2025 (Artificial Analysis run)91.3%Not measuredOnly Claude Opus 4.5 measured
OTIS Mock AIME86.1%Not measuredOnly Claude Opus 4.5 measured
FrontierMath, tiers 1 to 334.4%Not measuredOnly Claude Opus 4.5 measured
FrontierMath, tier 44.9%Not measuredOnly Claude Opus 4.5 measured
ProofBench36.0%Not measuredOnly Claude Opus 4.5 measured
LMArena Text: math1463Not measuredOnly Claude Opus 4.5 measured
LMArena Text: mathematical work1468Not measuredOnly Claude Opus 4.5 measured
Neither model has a result on the other 3 boards here
KnowledgeDirectional onlyPublic boards, shown as published, kept out of the index16 boards, none shared
Knowledge benchmarks for Claude Opus 4.5 and GPT-5.2-Codex
BenchmarkClaude Opus 4.5GPT-5.2-CodexLeader
MMLU Pro87.3%Not measuredOnly Claude Opus 4.5 measured
LegalBench (Vals AI)84.6%Not measuredOnly Claude Opus 4.5 measured
CaseLaw (Vals AI)62.6%Not measuredOnly Claude Opus 4.5 measured
CorpFin (Vals AI)65.1%Not measuredOnly Claude Opus 4.5 measured
TaxEval (Vals AI)74.9%Not measuredOnly Claude Opus 4.5 measured
MortgageTax (Vals AI)68.7%Not measuredOnly Claude Opus 4.5 measured
MedQA (Vals AI)95.9%Not measuredOnly Claude Opus 4.5 measured
MedCode (Vals AI)49.2%Not measuredOnly Claude Opus 4.5 measured
MMLU Pro (Artificial Analysis run)89.5%Not measuredOnly Claude Opus 4.5 measured
SimpleQA Verified45.7%Not measuredOnly Claude Opus 4.5 measured
GeoBench75.0%Not measuredOnly Claude Opus 4.5 measured
LMArena Text: science1454Not measuredOnly Claude Opus 4.5 measured
LMArena Text: medicine and healthcare1444Not measuredOnly Claude Opus 4.5 measured
LMArena Text: legal and government1459Not measuredOnly Claude Opus 4.5 measured
LMArena Text: business and finance1448Not measuredOnly Claude Opus 4.5 measured
FACTS Benchmark Suite43.9%Not measuredOnly Claude Opus 4.5 measured
Neither model has a result on the other 2 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index8 boards, none shared
Web design benchmarks for Claude Opus 4.5 and GPT-5.2-Codex
BenchmarkClaude Opus 4.5GPT-5.2-CodexLeader
Design Arena: websites1247Not measuredOnly Claude Opus 4.5 measured
Design Arena: UI components1238Not measuredOnly Claude Opus 4.5 measured
Design Arena: game dev1229Not measuredOnly Claude Opus 4.5 measured
Design Arena: data viz1243Not measuredOnly Claude Opus 4.5 measured
Design Arena: 3D1214Not measuredOnly Claude Opus 4.5 measured
Design Arena: all code categories1242Not measuredOnly Claude Opus 4.5 measured
Design Arena: SVG1181Not measuredOnly Claude Opus 4.5 measured
Design Arena: ASCII art1190Not measuredOnly Claude Opus 4.5 measured
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index02
General benchmarks for Claude Opus 4.5 and GPT-5.2-Codex
BenchmarkClaude Opus 4.5GPT-5.2-CodexLeader
SAGE (Vals AI)52.1%Not measuredOnly Claude Opus 4.5 measured
MedScribe (Vals AI)85.3%Not measuredOnly Claude Opus 4.5 measured
IFBench58.0%77.6%GPT-5.2-Codex
Long context reasoning (AA-LCR)77.3%82.3%GPT-5.2-Codex
DTBench89.9%Not measuredOnly Claude Opus 4.5 measured
LMCA44.5%Not measuredOnly Claude Opus 4.5 measured
CL-bench21.1%Not measuredOnly Claude Opus 4.5 measured
Furniture assembly28.3%Not measuredOnly Claude Opus 4.5 measured
LMArena Text1451Not measuredOnly Claude Opus 4.5 measured
LMArena Text: instruction following1478Not measuredOnly Claude Opus 4.5 measured
LMArena Text: creative writing1445Not measuredOnly Claude Opus 4.5 measured
LMArena Text: English1461Not measuredOnly Claude Opus 4.5 measured
LMArena Text: non-English1438Not measuredOnly Claude Opus 4.5 measured
LMArena Text: Chinese1470Not measuredOnly Claude Opus 4.5 measured
LMArena Text: German1449Not measuredOnly Claude Opus 4.5 measured
LMArena Text: Japanese1417Not measuredOnly Claude Opus 4.5 measured
LMArena Text: Korean1424Not measuredOnly Claude Opus 4.5 measured
LMArena Text: French1471Not measuredOnly Claude Opus 4.5 measured
LMArena Text: Spanish1457Not measuredOnly Claude Opus 4.5 measured
LMArena Text: Russian1447Not measuredOnly Claude Opus 4.5 measured
LMArena Text: Polish1439Not measuredOnly Claude Opus 4.5 measured
LMArena Text: multi-turn1466Not measuredOnly Claude Opus 4.5 measured
LMArena Text: longer queries1479Not measuredOnly Claude Opus 4.5 measured
LMArena Text: writing and language1452Not measuredOnly Claude Opus 4.5 measured
LMArena Text: entertainment and media1434Not measuredOnly Claude Opus 4.5 measured
LMArena Document1462Not measuredOnly Claude Opus 4.5 measured
Neither model has a result on the other 20 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Claude Opus 4.5 and GPT-5.2-Codex
BenchmarkClaude Opus 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 Opus 4.5$0.018Fits in one request
GPT-5.2-Codex$0.0088Fits in one request

GPT-5.2-Codex costs less

Repository review

50K input + 3K output tokens

Claude Opus 4.5$0.325Fits in one request
GPT-5.2-Codex$0.130Fits in one request

GPT-5.2-Codex costs less

Agent loop

200K input + 10K output tokens

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

GPT-5.2-Codex 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 Opus 4.5 and GPT-5.2-Codex
SpecificationAnthropic Claude Opus 4.5OpenAI GPT-5.2-Codex
MakerAnthropicOpenAI
WeightsNo public weights listedNo public weights listed
ReleasedNovember 24, 2025January 14, 2026
Context window200K400K
Input $/Mtok$5.00$1.75
Output $/Mtok$25.00$14.00
Coding index44.045.4
Independent measurements behind it33
Cost per solved task$1.37$0.43
SourceOpenRouter listingOpenRouter listing

Questions

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

Claude Opus 4.5 and GPT-5.2-Codex are level for coding, 44.0 against 45.4 on the Vibe Coding Index, so price and context decide. Pick Claude Opus 4.5 for work measured by SWE-bench Verified or SWE-bench Multilingual, where it leads. Pick GPT-5.2-Codex for output tokens 1.8x cheaper ($14.00 vs $25.00 per million) and a lower cost per solved task ($0.43 against $1.37).

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

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

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

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

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

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