LLMBenchmark.ai

Enter opens the highlighted result. Esc closes.

Claude Opus 4.8 vs GPT-5.2-Codex

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

Claude Opus 4.8Anthropic
Coding
66.0
Overall
41.8
Output $/M
$25.00
15
GPT-5.2-CodexOpenAI
Coding
55.1
Overall
28.5
Output $/M
$14.00
3
vs boards won of 18 shared

Decision reading

Pick Claude Opus 4.8 for coding: it scores 66.0 on the Vibe Coding Index against 55.1 for GPT-5.2-Codex.

Pick GPT-5.2-Codex when output tokens cost 1.8x less, or when a solved task costs $0.43 against $2.17.

Shared results
18
Claude Opus 4.8 only
108
GPT-5.2-Codex only
4
Like-for-like categories
5 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 Opus 4.8 66.0 from 2 benchmarks, GPT-5.2-Codex 55.1 from 2 benchmarks.
Widest category
Coding, 26.2 points apart on average over 7 shared benchmarks.
Widest single gap
Vibe Code Bench (Vals AI): Claude Opus 4.8 82.7% against GPT-5.2-Codex 37.9%, 44.8 points apart on a 0 to 100 scale.
Output price
Claude Opus 4.8 $25.00 against GPT-5.2-Codex $14.00 per million output tokens, 1.8x apart.
Context window
Claude Opus 4.8 takes 1M 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.8BarsGPT-5.2-CodexTies
Coding61
Intelligence10
Agentic work60
Reasoning20
General02
All shared boards153
CodingLike-for-likeFour of these boards feed the Vibe Coding Index61
Coding benchmarks for Claude Opus 4.8 and GPT-5.2-Codex
BenchmarkClaude Opus 4.8GPT-5.2-CodexLeader
SWE-bench VerifiedNot measured72.8%Only GPT-5.2-Codex measured
SWE-bench MultilingualNot measured66.3%Only GPT-5.2-Codex measured
LiveBench coding77.3%Not measuredOnly Claude Opus 4.8 measured
LMArena WebDev15561339Claude Opus 4.8
AA Coding Index74.3Not measuredOnly Claude Opus 4.8 measured
LiveCodeBench (Vals AI)87.8%88.0%GPT-5.2-Codex
SWE-bench Verified (Vals AI)88.6%72.4%Claude Opus 4.8
Terminal-Bench 4 (Vals AI)23.2%Not measuredOnly Claude Opus 4.8 measured
Vibe Code Bench (Vals AI)82.7%37.9%Claude Opus 4.8
Code migration (Vals AI)47.3%Not measuredOnly Claude Opus 4.8 measured
ProgramBench (Vals AI)1.0%Not measuredOnly Claude Opus 4.8 measured
Terminal-Bench 2.1 (Vals AI)71.9%Not measuredOnly Claude Opus 4.8 measured
SkillsBench (Vals AI)59.2%Not measuredOnly Claude Opus 4.8 measured
SciCode54.4%Not measuredOnly Claude Opus 4.8 measured
Terminal-Bench Hard (Artificial Analysis run)58.3%37.1%Claude Opus 4.8
Terminal-BenchNot measured66.5%Only GPT-5.2-Codex measured
FrontierCode46.5%Not measuredOnly Claude Opus 4.8 measured
GSO-Bench47.1%Not measuredOnly Claude Opus 4.8 measured
WeirdML82.9%Not measuredOnly Claude Opus 4.8 measured
ALE-BenchNot measured1299.9Only GPT-5.2-Codex measured
LMArena Text: coding1490Not measuredOnly Claude Opus 4.8 measured
LMArena Text: software and IT1488Not measuredOnly Claude Opus 4.8 measured
LMArena WebDev: React15571329Claude Opus 4.8
LMArena WebDev: HTML15431348Claude Opus 4.8
Neither model has a result on the other 14 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index10
Intelligence benchmarks for Claude Opus 4.8 and GPT-5.2-Codex
BenchmarkClaude Opus 4.8GPT-5.2-CodexLeader
AA Intelligence Index41.828.5Claude Opus 4.8
Epoch Capabilities Index159.0Not measuredOnly Claude Opus 4.8 measured
Agentic workLike-for-likePublic boards, shown as published, kept out of the index60
Agentic work benchmarks for Claude Opus 4.8 and GPT-5.2-Codex
BenchmarkClaude Opus 4.8GPT-5.2-CodexLeader
AA Agentic Index41.9Not measuredOnly Claude Opus 4.8 measured
Design Arena: agents building web apps12331051Claude Opus 4.8
Design Arena: agents building full-stack apps1249993Claude Opus 4.8
Design Arena: agents building mobile apps12221090Claude Opus 4.8
Design Arena: agents building Android apps12371176Claude Opus 4.8
Design Arena: agents building Godot games12311142Claude Opus 4.8
Design Arena: agents building games1238Not measuredOnly Claude Opus 4.8 measured
Design Arena: HTML slides1221Not measuredOnly Claude Opus 4.8 measured
Design Arena: PowerPoint slides1227Not measuredOnly Claude Opus 4.8 measured
LiveBench research81.8%Not measuredOnly Claude Opus 4.8 measured
LiveBench browser96.0%Not measuredOnly Claude Opus 4.8 measured
LiveBench long agentic48.3%Not measuredOnly Claude Opus 4.8 measured
Finance Agent (Vals AI)53.9%Not measuredOnly Claude Opus 4.8 measured
Tax Agent Bench (Vals AI)30.0%Not measuredOnly Claude Opus 4.8 measured
Legal Research Bench (Vals AI)43.8%Not measuredOnly Claude Opus 4.8 measured
Excel Modeling Benchmark (Vals AI)69.4%Not measuredOnly Claude Opus 4.8 measured
Terminal-Bench-Science (Vals AI)4.3%Not measuredOnly Claude Opus 4.8 measured
Time Horizon Index (Vals AI)11.8%Not measuredOnly Claude Opus 4.8 measured
τ²-Bench Telecom94.4%92.1%Claude Opus 4.8
APEX-Agents48.9%Not measuredOnly Claude Opus 4.8 measured
Remote Labor Index8.3%Not measuredOnly Claude Opus 4.8 measured
OSWorld 2.020.6%Not measuredOnly Claude Opus 4.8 measured
DeepResearch Bench50.2%Not measuredOnly Claude Opus 4.8 measured
PostTrainBench33.8%Not measuredOnly Claude Opus 4.8 measured
Vending-Bench 2$5,787Not measuredOnly Claude Opus 4.8 measured
LMArena Search1204Not measuredOnly Claude Opus 4.8 measured
Neither model has a result on the other 13 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index20
Reasoning benchmarks for Claude Opus 4.8 and GPT-5.2-Codex
BenchmarkClaude Opus 4.8GPT-5.2-CodexLeader
GPQA Diamond92.4%Not measuredOnly Claude Opus 4.8 measured
LiveBench reasoning89.2%Not measuredOnly Claude Opus 4.8 measured
MMMU Pro (Vals AI)86.6%Not measuredOnly Claude Opus 4.8 measured
GPQA Diamond (Artificial Analysis run)92.0%89.9%Claude Opus 4.8
Humanity's Last Exam (Artificial Analysis run)48.7%35.7%Claude Opus 4.8
GPQA Diamond (Epoch AI run)91.0%Not measuredOnly Claude Opus 4.8 measured
ARC-AGI92.5%Not measuredOnly Claude Opus 4.8 measured
ARC-AGI-272.1%Not measuredOnly Claude Opus 4.8 measured
SimpleBench64.8%Not measuredOnly Claude Opus 4.8 measured
Chess puzzles52.0%Not measuredOnly Claude Opus 4.8 measured
Mystery game puzzles36.0%Not measuredOnly Claude Opus 4.8 measured
EBR-bench28.6%Not measuredOnly Claude Opus 4.8 measured
LMArena Text: hard prompts1482Not measuredOnly Claude Opus 4.8 measured
LMArena Text: expert1503Not measuredOnly Claude Opus 4.8 measured
LMArena Text: hard prompts in English1487Not measuredOnly Claude Opus 4.8 measured
LMArena Vision: diagrams1315Not measuredOnly Claude Opus 4.8 measured
LMArena Vision: homework1337Not measuredOnly Claude Opus 4.8 measured
Neither model has a result on the other 4 boards here
MathDirectional onlyPublic boards, shown as published, kept out of the index6 boards, none shared
Math benchmarks for Claude Opus 4.8 and GPT-5.2-Codex
BenchmarkClaude Opus 4.8GPT-5.2-CodexLeader
OTIS Mock AIME98.3%Not measuredOnly Claude Opus 4.8 measured
FrontierMath, tiers 1 to 380.0%Not measuredOnly Claude Opus 4.8 measured
FrontierMath, tier 456.1%Not measuredOnly Claude Opus 4.8 measured
ProofBench69.0%Not measuredOnly Claude Opus 4.8 measured
LMArena Text: math1486Not measuredOnly Claude Opus 4.8 measured
LMArena Text: mathematical work1497Not measuredOnly Claude Opus 4.8 measured
Neither model has a result on the other 7 boards here
KnowledgeDirectional onlyPublic boards, shown as published, kept out of the index11 boards, none shared
Knowledge benchmarks for Claude Opus 4.8 and GPT-5.2-Codex
BenchmarkClaude Opus 4.8GPT-5.2-CodexLeader
MMLU Pro89.6%Not measuredOnly Claude Opus 4.8 measured
LegalBench (Vals AI)83.6%Not measuredOnly Claude Opus 4.8 measured
CorpFin (Vals AI)66.7%Not measuredOnly Claude Opus 4.8 measured
TaxEval (Vals AI)75.6%Not measuredOnly Claude Opus 4.8 measured
MortgageTax (Vals AI)69.9%Not measuredOnly Claude Opus 4.8 measured
MedCode (Vals AI)53.2%Not measuredOnly Claude Opus 4.8 measured
SimpleQA Verified53.0%Not measuredOnly Claude Opus 4.8 measured
LMArena Text: science1477Not measuredOnly Claude Opus 4.8 measured
LMArena Text: medicine and healthcare1464Not measuredOnly Claude Opus 4.8 measured
LMArena Text: legal and government1477Not measuredOnly Claude Opus 4.8 measured
LMArena Text: business and finance1458Not measuredOnly Claude Opus 4.8 measured
Neither model has a result on the other 6 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index9 boards, none shared
Web design benchmarks for Claude Opus 4.8 and GPT-5.2-Codex
BenchmarkClaude Opus 4.8GPT-5.2-CodexLeader
Design Arena: websites1258Not measuredOnly Claude Opus 4.8 measured
Design Arena: UI components1256Not measuredOnly Claude Opus 4.8 measured
Design Arena: game dev1264Not measuredOnly Claude Opus 4.8 measured
Design Arena: data viz1240Not measuredOnly Claude Opus 4.8 measured
Design Arena: 3D1223Not measuredOnly Claude Opus 4.8 measured
Design Arena: all code categories1255Not measuredOnly Claude Opus 4.8 measured
Design Arena: SVG1194Not measuredOnly Claude Opus 4.8 measured
Design Arena: ASCII art1276Not measuredOnly Claude Opus 4.8 measured
LiveBench design78.8%Not measuredOnly Claude Opus 4.8 measured
GeneralLike-for-likePublic boards, shown as published, kept out of the index02
General benchmarks for Claude Opus 4.8 and GPT-5.2-Codex
BenchmarkClaude Opus 4.8GPT-5.2-CodexLeader
LiveBench data analysis66.0%Not measuredOnly Claude Opus 4.8 measured
Public Benefits Bench (Vals AI)68.1%Not measuredOnly Claude Opus 4.8 measured
SAGE (Vals AI)54.8%Not measuredOnly Claude Opus 4.8 measured
MedScribe (Vals AI)85.8%Not measuredOnly Claude Opus 4.8 measured
Vals Multimodal Index70.9%Not measuredOnly Claude Opus 4.8 measured
IFBench62.2%77.6%GPT-5.2-Codex
Long context reasoning (AA-LCR)77.7%82.3%GPT-5.2-Codex
DTBench94.9%Not measuredOnly Claude Opus 4.8 measured
LMCA57.5%Not measuredOnly Claude Opus 4.8 measured
Surface Evolver Bench87.5%Not measuredOnly Claude Opus 4.8 measured
Furniture assembly42.5%Not measuredOnly Claude Opus 4.8 measured
LMArena Text1461Not measuredOnly Claude Opus 4.8 measured
LMArena Text: instruction following1476Not measuredOnly Claude Opus 4.8 measured
LMArena Text: creative writing1454Not measuredOnly Claude Opus 4.8 measured
LMArena Vision1294Not measuredOnly Claude Opus 4.8 measured
LMArena Text: English1468Not measuredOnly Claude Opus 4.8 measured
LMArena Text: non-English1450Not measuredOnly Claude Opus 4.8 measured
LMArena Text: Chinese1506Not measuredOnly Claude Opus 4.8 measured
LMArena Text: German1472Not measuredOnly Claude Opus 4.8 measured
LMArena Text: Japanese1442Not measuredOnly Claude Opus 4.8 measured
LMArena Text: Korean1431Not measuredOnly Claude Opus 4.8 measured
LMArena Text: French1481Not measuredOnly Claude Opus 4.8 measured
LMArena Text: Spanish1465Not measuredOnly Claude Opus 4.8 measured
LMArena Text: Russian1474Not measuredOnly Claude Opus 4.8 measured
LMArena Text: Polish1459Not measuredOnly Claude Opus 4.8 measured
LMArena Text: multi-turn1476Not measuredOnly Claude Opus 4.8 measured
LMArena Text: longer queries1483Not measuredOnly Claude Opus 4.8 measured
LMArena Text: writing and language1461Not measuredOnly Claude Opus 4.8 measured
LMArena Text: entertainment and media1440Not measuredOnly Claude Opus 4.8 measured
LMArena Vision: English1293Not measuredOnly Claude Opus 4.8 measured
LMArena Vision: Chinese1346Not measuredOnly Claude Opus 4.8 measured
LMArena Vision: reading text1303Not measuredOnly Claude Opus 4.8 measured
LMArena Vision: humor1282Not measuredOnly Claude Opus 4.8 measured
LMArena Vision: creative writing1301Not measuredOnly Claude Opus 4.8 measured
LMArena Document1475Not measuredOnly Claude Opus 4.8 measured
Neither model has a result on the other 11 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Claude Opus 4.8 and GPT-5.2-Codex
BenchmarkClaude Opus 4.8GPT-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.8$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.8$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.8$1.25Fits in one request
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.8 and GPT-5.2-Codex
SpecificationAnthropic Claude Opus 4.8OpenAI GPT-5.2-Codex
MakerAnthropicOpenAI
WeightsNo public weights listedNo public weights listed
ReleasedMay 27, 2026January 14, 2026
Context window1M400K
Input $/Mtok$5.00$1.75
Output $/Mtok$25.00$14.00
Coding index66.055.1
Independent measurements behind it22
Cost per solved task$2.17$0.43
SourceOpenRouter listingOpenRouter listing

Questions

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

Pick Claude Opus 4.8 for coding: it scores 66.0 on the Vibe Coding Index against 55.1 for GPT-5.2-Codex. Pick GPT-5.2-Codex when output tokens cost 1.8x less, or when a solved task costs $0.43 against $2.17.

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

Claude Opus 4.8 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.8 costs $2.17 and GPT-5.2-Codex $0.43.

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

Claude Opus 4.8, with 1M tokens against 400K.

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

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