Enter opens the highlighted result. Esc closes.

Claude Opus 4.1 vs GPT-5.2-Codex

GPT-5.2-Codex leads Claude Opus 4.1 on the Artificial Analysis Intelligence Index, 28.5 to 22.8, and GPT-5.2-Codex costs 5.4x less per output token ($14.00 vs $75.00 per million). Updated October 22, 2026; 5 benchmarks have a result for both.

Claude Opus 4.1Anthropic
Coding
No data
Overall
50.2
Output $/M
$75.00
2
GPT-5.2-CodexOpenAI
Coding
45.4
Overall
No data
Output $/M
$14.00
3
vs boards won of 5 shared

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

Only GPT-5.2-Codex has a coding score, 45.4 on the Vibe Coding Index; Claude Opus 4.1 has none, so the two cannot be ranked on coding.

Pick Claude Opus 4.1 for work measured by LMArena WebDev or LMArena WebDev: HTML, where it leads.

Shared results
5
Claude Opus 4.1 only
68
GPT-5.2-Codex only
17
Like-for-like categories
2 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.1 not benchmarked, GPT-5.2-Codex 45.4 from 3 benchmarks.
Widest category
Coding, 16.4 points apart on average over 4 shared benchmarks.
Widest single gap
Terminal-Bench: Claude Opus 4.1 38.0% against GPT-5.2-Codex 66.5%, 28.5 points apart on a 0 to 100 scale.
Output price
Claude Opus 4.1 $75.00 against GPT-5.2-Codex $14.00 per million output tokens, 5.4x apart.
Context window
Claude Opus 4.1 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.1BarsGPT-5.2-CodexTies
Coding22
Intelligence01
All shared boards23
CodingLike-for-likeSix of these boards feed the Vibe Coding Index22
Coding benchmarks for Claude Opus 4.1 and GPT-5.2-Codex
BenchmarkClaude Opus 4.1GPT-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
LMArena WebDev13901339Claude Opus 4.1
LiveCodeBench (Vals AI)66.5%88.0%GPT-5.2-Codex
SWE-bench Verified (Vals AI)Not measured72.4%Only GPT-5.2-Codex measured
Vibe Code Bench (Vals AI)Not measured37.9%Only GPT-5.2-Codex measured
Terminal-Bench Hard (Artificial Analysis run)Not measured37.1%Only GPT-5.2-Codex measured
Terminal-Bench38.0%66.5%GPT-5.2-Codex
WeirdML45.9%Not measuredOnly Claude Opus 4.1 measured
Cybench42.0%Not measuredOnly Claude Opus 4.1 measured
ALE-BenchNot measured1299.9Only GPT-5.2-Codex measured
LMArena Text: coding1479Not measuredOnly Claude Opus 4.1 measured
LMArena Text: software and IT1456Not measuredOnly Claude Opus 4.1 measured
LMArena WebDev: ReactNot measured1329Only GPT-5.2-Codex measured
LMArena WebDev: HTML13991348Claude Opus 4.1
SciCode4.6%Not measuredOnly Claude Opus 4.1 measured
Neither model has a result on the other 23 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index01
Intelligence benchmarks for Claude Opus 4.1 and GPT-5.2-Codex
BenchmarkClaude Opus 4.1GPT-5.2-CodexLeader
AA Intelligence Index22.828.5GPT-5.2-Codex
Epoch Capabilities Index144.1Not measuredOnly Claude Opus 4.1 measured
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index9 boards, none shared
Agentic work benchmarks for Claude Opus 4.1 and GPT-5.2-Codex
BenchmarkClaude Opus 4.1GPT-5.2-CodexLeader
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
τ²-Bench TelecomNot measured92.1%Only GPT-5.2-Codex measured
METR time horizons66.8%Not measuredOnly Claude Opus 4.1 measured
GDPval43.6%Not measuredOnly Claude Opus 4.1 measured
DeepResearch Bench48.3%Not measuredOnly Claude Opus 4.1 measured
Neither model has a result on the other 32 boards here
ReasoningDirectional onlyPublic boards, shown as published, kept out of the index12 boards, none shared
Reasoning benchmarks for Claude Opus 4.1 and GPT-5.2-Codex
BenchmarkClaude Opus 4.1GPT-5.2-CodexLeader
GPQA Diamond76.3%Not measuredOnly Claude Opus 4.1 measured
MMMU Pro (Vals AI)77.5%Not measuredOnly Claude Opus 4.1 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)77.3%Not measuredOnly Claude Opus 4.1 measured
SimpleBench60.0%Not measuredOnly Claude Opus 4.1 measured
Mystery game puzzles21.0%Not measuredOnly Claude Opus 4.1 measured
EBR-bench7.9%Not measuredOnly Claude Opus 4.1 measured
VPCT35.0%Not measuredOnly Claude Opus 4.1 measured
LMArena Text: hard prompts1442Not measuredOnly Claude Opus 4.1 measured
LMArena Text: expert1438Not measuredOnly Claude Opus 4.1 measured
LMArena Text: hard prompts in English1451Not measuredOnly Claude Opus 4.1 measured
Neither model has a result on the other 10 boards here
MathDirectional onlyPublic boards, shown as published, kept out of the index8 boards, none shared
Math benchmarks for Claude Opus 4.1 and GPT-5.2-Codex
BenchmarkClaude Opus 4.1GPT-5.2-CodexLeader
AIME78.2%Not measuredOnly Claude Opus 4.1 measured
MATH 500 (Vals AI)95.4%Not measuredOnly Claude Opus 4.1 measured
MGSM (Vals AI)94.4%Not measuredOnly Claude Opus 4.1 measured
OTIS Mock AIME68.9%Not measuredOnly Claude Opus 4.1 measured
FrontierMath, tiers 1 to 312.6%Not measuredOnly Claude Opus 4.1 measured
FrontierMath, tier 42.4%Not measuredOnly Claude Opus 4.1 measured
LMArena Text: math1431Not measuredOnly Claude Opus 4.1 measured
LMArena Text: mathematical work1434Not measuredOnly Claude Opus 4.1 measured
Neither model has a result on the other 5 boards here
KnowledgeDirectional onlyPublic boards, shown as published, kept out of the index11 boards, none shared
Knowledge benchmarks for Claude Opus 4.1 and GPT-5.2-Codex
BenchmarkClaude Opus 4.1GPT-5.2-CodexLeader
MMLU Pro87.9%Not measuredOnly Claude Opus 4.1 measured
LegalBench (Vals AI)83.5%Not measuredOnly Claude Opus 4.1 measured
TaxEval (Vals AI)73.7%Not measuredOnly Claude Opus 4.1 measured
MortgageTax (Vals AI)61.1%Not measuredOnly Claude Opus 4.1 measured
MedQA (Vals AI)93.6%Not measuredOnly Claude Opus 4.1 measured
MedCode (Vals AI)47.2%Not measuredOnly Claude Opus 4.1 measured
LMArena Text: science1422Not measuredOnly Claude Opus 4.1 measured
LMArena Text: medicine and healthcare1416Not measuredOnly Claude Opus 4.1 measured
LMArena Text: legal and government1421Not measuredOnly Claude Opus 4.1 measured
LMArena Text: business and finance1406Not measuredOnly Claude Opus 4.1 measured
FACTS Benchmark Suite40.4%Not measuredOnly Claude Opus 4.1 measured
Neither model has a result on the other 7 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index8 boards, none shared
Web design benchmarks for Claude Opus 4.1 and GPT-5.2-Codex
BenchmarkClaude Opus 4.1GPT-5.2-CodexLeader
Design Arena: websites1176Not measuredOnly Claude Opus 4.1 measured
Design Arena: UI components1162Not measuredOnly Claude Opus 4.1 measured
Design Arena: game dev1171Not measuredOnly Claude Opus 4.1 measured
Design Arena: data viz1166Not measuredOnly Claude Opus 4.1 measured
Design Arena: 3D1152Not measuredOnly Claude Opus 4.1 measured
Design Arena: all code categories1170Not measuredOnly Claude Opus 4.1 measured
Design Arena: SVG1152Not measuredOnly Claude Opus 4.1 measured
Design Arena: ASCII art1167Not measuredOnly Claude Opus 4.1 measured
Neither model has a result on the other 1 board here
GeneralDirectional onlyPublic boards, shown as published, kept out of the index24 boards, none shared
General benchmarks for Claude Opus 4.1 and GPT-5.2-Codex
BenchmarkClaude Opus 4.1GPT-5.2-CodexLeader
SAGE (Vals AI)31.4%Not measuredOnly Claude Opus 4.1 measured
MedScribe (Vals AI)73.9%Not measuredOnly Claude Opus 4.1 measured
IFBenchNot measured77.6%Only GPT-5.2-Codex measured
Long context reasoning (AA-LCR)Not measured82.3%Only GPT-5.2-Codex measured
DTBench80.0%Not measuredOnly Claude Opus 4.1 measured
LMCA37.1%Not measuredOnly Claude Opus 4.1 measured
Creative writing (Lech Mazur)84.7%Not measuredOnly Claude Opus 4.1 measured
LMArena Text1419Not measuredOnly Claude Opus 4.1 measured
LMArena Text: instruction following1435Not measuredOnly Claude Opus 4.1 measured
LMArena Text: creative writing1412Not measuredOnly Claude Opus 4.1 measured
LMArena Text: English1433Not measuredOnly Claude Opus 4.1 measured
LMArena Text: non-English1405Not measuredOnly Claude Opus 4.1 measured
LMArena Text: Chinese1427Not measuredOnly Claude Opus 4.1 measured
LMArena Text: German1413Not measuredOnly Claude Opus 4.1 measured
LMArena Text: Japanese1377Not measuredOnly Claude Opus 4.1 measured
LMArena Text: Korean1381Not measuredOnly Claude Opus 4.1 measured
LMArena Text: French1433Not measuredOnly Claude Opus 4.1 measured
LMArena Text: Spanish1448Not measuredOnly Claude Opus 4.1 measured
LMArena Text: Russian1422Not measuredOnly Claude Opus 4.1 measured
LMArena Text: Polish1413Not measuredOnly Claude Opus 4.1 measured
LMArena Text: multi-turn1444Not measuredOnly Claude Opus 4.1 measured
LMArena Text: longer queries1455Not measuredOnly Claude Opus 4.1 measured
LMArena Text: writing and language1418Not measuredOnly Claude Opus 4.1 measured
LMArena Text: entertainment and media1398Not measuredOnly Claude Opus 4.1 measured
Neither model has a result on the other 22 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Claude Opus 4.1 and GPT-5.2-Codex
BenchmarkClaude Opus 4.1GPT-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.1$0.052Fits 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.1$0.975Fits 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.1$3.75Exceeds 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.1 and GPT-5.2-Codex
SpecificationAnthropic Claude Opus 4.1OpenAI GPT-5.2-Codex
MakerAnthropicOpenAI
WeightsNo public weights listedNo public weights listed
ReleasedAugust 5, 2025January 14, 2026
Context window200K400K
Input $/Mtok$15.00$1.75
Output $/Mtok$75.00$14.00
Coding indexNot benchmarked45.4
Independent measurements behind it13
Cost per solved taskNot computable$0.43
SourceOpenRouter listingOpenRouter listing

Questions

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

Only GPT-5.2-Codex has a coding score, 45.4 on the Vibe Coding Index; Claude Opus 4.1 has none, so the two cannot be ranked on coding. Pick Claude Opus 4.1 for work measured by LMArena WebDev or LMArena WebDev: HTML, where it leads.

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

Claude Opus 4.1 costs $15.00 per million input tokens and $75.00 per million output tokens; GPT-5.2-Codex costs $1.75 and $14.00. Cost per solved task is known for GPT-5.2-Codex only.

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

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

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

5 benchmarks have a result for both models as of October 22, 2026. Claude Opus 4.1's coding index rests on 1 independent benchmark 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