Enter opens the highlighted result. Esc closes.

Claude Opus 4.6 vs GPT-5.1-Codex

Claude Opus 4.6 leads GPT-5.1-Codex on coding, 57.2 to 15.3 on the Vibe Coding Index, and GPT-5.1-Codex costs 2.5x less per output token ($10.00 vs $25.00 per million). Updated October 22, 2026; 21 benchmarks have a result for both.

Claude Opus 4.6Anthropic
Coding
57.2
Overall
66.0
Output $/M
$25.00
19
GPT-5.1-CodexOpenAI
Coding
15.3
Overall
No data
Output $/M
$10.00
2
vs boards won of 21 shared

Claude Opus 4.6 or GPT-5.1-Codex: which to pick

Pick Claude Opus 4.6 for coding: it scores 57.2 on the Vibe Coding Index against 15.3 for GPT-5.1-Codex.

Pick GPT-5.1-Codex for output tokens 2.5x cheaper ($10.00 vs $25.00 per million) and a lower cost per solved task ($0.892 against $1.56).

Shared results
21
Claude Opus 4.6 only
89
GPT-5.1-Codex only
5
Like-for-like categories
6 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.6 57.2 from 4 benchmarks, GPT-5.1-Codex 15.3 from 2 benchmarks.
Widest category
Coding, 22.3 points apart on average over 7 shared benchmarks.
Widest single gap
Vibe Code Bench (Vals AI): Claude Opus 4.6 57.6% against GPT-5.1-Codex 13.1%, 44.5 points apart on a 0 to 100 scale.
Output price
Claude Opus 4.6 $25.00 against GPT-5.1-Codex $10.00 per million output tokens, 2.5x apart.
Context window
Claude Opus 4.6 takes 1M 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 Opus 4.6BarsGPT-5.1-CodexTies
Coding61
Intelligence10
Agentic work40
Reasoning20
Web design50
General11
All shared boards192
CodingLike-for-likeSix of these boards feed the Vibe Coding Index61
Coding benchmarks for Claude Opus 4.6 and GPT-5.1-Codex
BenchmarkClaude Opus 4.6GPT-5.1-CodexLeader
SWE-bench Verified75.6%66.0%Claude Opus 4.6
SWE-bench Multilingual72.0%Not measuredOnly Claude Opus 4.6 measured
LMArena WebDev15471337Claude Opus 4.6
LiveCodeBench (Vals AI)84.7%85.5%GPT-5.1-Codex
SWE-bench Verified (Vals AI)78.2%Not measuredOnly Claude Opus 4.6 measured
Vibe Code Bench (Vals AI)57.6%13.1%Claude Opus 4.6
LiveCodeBench (Artificial Analysis run)Not measured84.9%Only GPT-5.1-Codex measured
Terminal-Bench Hard (Artificial Analysis run)48.5%34.8%Claude Opus 4.6
Terminal-Bench79.8%57.8%Claude Opus 4.6
FrontierCode26.6%Not measuredOnly Claude Opus 4.6 measured
GSO-Bench41.2%Not measuredOnly Claude Opus 4.6 measured
WeirdML78.0%Not measuredOnly Claude Opus 4.6 measured
Cybench93.0%Not measuredOnly Claude Opus 4.6 measured
ALE-BenchNot measured1244.9Only GPT-5.1-Codex measured
LMArena Text: coding1534Not measuredOnly Claude Opus 4.6 measured
LMArena Text: software and IT1527Not measuredOnly Claude Opus 4.6 measured
LMArena WebDev: React1539Not measuredOnly Claude Opus 4.6 measured
LMArena WebDev: HTML15591346Claude Opus 4.6
LMArena WebDev: from an image1543Not measuredOnly Claude Opus 4.6 measured
Neither model has a result on the other 20 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index10
Intelligence benchmarks for Claude Opus 4.6 and GPT-5.1-Codex
BenchmarkClaude Opus 4.6GPT-5.1-CodexLeader
AA Intelligence Index31.923.7Claude Opus 4.6
Epoch Capabilities Index155.7Not measuredOnly Claude Opus 4.6 measured
Agentic workLike-for-likePublic boards, shown as published, kept out of the index40
Agentic work benchmarks for Claude Opus 4.6 and GPT-5.1-Codex
BenchmarkClaude Opus 4.6GPT-5.1-CodexLeader
Design Arena: agents building web apps12061018Claude Opus 4.6
Design Arena: agents building full-stack apps12201086Claude Opus 4.6
Design Arena: agents building mobile apps12071191Claude Opus 4.6
Design Arena: agents building Android apps1197Not measuredOnly Claude Opus 4.6 measured
Design Arena: agents building games1212Not measuredOnly Claude Opus 4.6 measured
τ²-Bench Telecom92.1%83.0%Claude Opus 4.6
APEX-Agents46.3%Not measuredOnly Claude Opus 4.6 measured
METR time horizons78.9%Not measuredOnly Claude Opus 4.6 measured
Remote Labor Index4.2%Not measuredOnly Claude Opus 4.6 measured
DeepResearch Bench55.3%Not measuredOnly Claude Opus 4.6 measured
Vending-Bench 2$8,018Not measuredOnly Claude Opus 4.6 measured
Neither model has a result on the other 30 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index20
Reasoning benchmarks for Claude Opus 4.6 and GPT-5.1-Codex
BenchmarkClaude Opus 4.6GPT-5.1-CodexLeader
GPQA Diamond89.7%Not measuredOnly Claude Opus 4.6 measured
MMMU Pro (Vals AI)83.9%Not measuredOnly Claude Opus 4.6 measured
GPQA Diamond (Artificial Analysis run)89.6%86.0%Claude Opus 4.6
Humanity's Last Exam (Artificial Analysis run)39.9%25.7%Claude Opus 4.6
GPQA Diamond (Epoch AI run)90.5%Not measuredOnly Claude Opus 4.6 measured
ARC-AGI94.0%Not measuredOnly Claude Opus 4.6 measured
ARC-AGI-269.2%Not measuredOnly Claude Opus 4.6 measured
SimpleBench67.6%Not measuredOnly Claude Opus 4.6 measured
Chess puzzles21.0%Not measuredOnly Claude Opus 4.6 measured
Mystery game puzzles25.0%Not measuredOnly Claude Opus 4.6 measured
EBR-bench12.7%Not measuredOnly Claude Opus 4.6 measured
LMArena Text: hard prompts1525Not measuredOnly Claude Opus 4.6 measured
LMArena Text: expert1544Not measuredOnly Claude Opus 4.6 measured
LMArena Text: hard prompts in English1530Not measuredOnly Claude Opus 4.6 measured
LMArena Vision: diagrams1340Not measuredOnly Claude Opus 4.6 measured
LMArena Vision: homework1337Not measuredOnly Claude Opus 4.6 measured
Kagi LLM Benchmark83.6%Not measuredOnly Claude Opus 4.6 measured
Neither model has a result on the other 5 boards here
MathDirectional onlyPublic boards, shown as published, kept out of the index9 boards, none shared
Math benchmarks for Claude Opus 4.6 and GPT-5.1-Codex
BenchmarkClaude Opus 4.6GPT-5.1-CodexLeader
AIME95.6%Not measuredOnly Claude Opus 4.6 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 AIME94.4%Not measuredOnly Claude Opus 4.6 measured
FrontierMath, tiers 1 to 366.0%Not measuredOnly Claude Opus 4.6 measured
FrontierMath, tier 426.8%Not measuredOnly Claude Opus 4.6 measured
ProofBench50.0%Not measuredOnly Claude Opus 4.6 measured
LMArena Text: math1518Not measuredOnly Claude Opus 4.6 measured
LMArena Text: mathematical work1525Not measuredOnly Claude Opus 4.6 measured
Neither model has a result on the other 4 boards here
KnowledgeDirectional onlyPublic boards, shown as published, kept out of the index15 boards, none shared
Knowledge benchmarks for Claude Opus 4.6 and GPT-5.1-Codex
BenchmarkClaude Opus 4.6GPT-5.1-CodexLeader
MMLU Pro89.1%Not measuredOnly Claude Opus 4.6 measured
LegalBench (Vals AI)85.3%Not measuredOnly Claude Opus 4.6 measured
CaseLaw (Vals AI)62.1%Not measuredOnly Claude Opus 4.6 measured
CorpFin (Vals AI)67.0%Not measuredOnly Claude Opus 4.6 measured
TaxEval (Vals AI)76.0%Not measuredOnly Claude Opus 4.6 measured
MortgageTax (Vals AI)68.5%Not measuredOnly Claude Opus 4.6 measured
MedQA (Vals AI)95.4%Not measuredOnly Claude Opus 4.6 measured
MedCode (Vals AI)49.1%Not measuredOnly Claude Opus 4.6 measured
MMLU Pro (Artificial Analysis run)Not measured86.0%Only GPT-5.1-Codex measured
SimpleQA Verified47.0%Not measuredOnly Claude Opus 4.6 measured
LMArena Text: science1519Not measuredOnly Claude Opus 4.6 measured
LMArena Text: medicine and healthcare1504Not measuredOnly Claude Opus 4.6 measured
LMArena Text: legal and government1512Not measuredOnly Claude Opus 4.6 measured
LMArena Text: business and finance1497Not measuredOnly Claude Opus 4.6 measured
FACTS Benchmark Suite41.5%Not measuredOnly Claude Opus 4.6 measured
Neither model has a result on the other 3 boards here
Web designLike-for-likePublic boards, shown as published, kept out of the index50
Web design benchmarks for Claude Opus 4.6 and GPT-5.1-Codex
BenchmarkClaude Opus 4.6GPT-5.1-CodexLeader
Design Arena: websites12911161Claude Opus 4.6
Design Arena: UI components12811234Claude Opus 4.6
Design Arena: game dev12771137Claude Opus 4.6
Design Arena: data viz12791213Claude Opus 4.6
Design Arena: 3D1273Not measuredOnly Claude Opus 4.6 measured
Design Arena: all code categories12881152Claude Opus 4.6
Design Arena: SVG1227Not measuredOnly Claude Opus 4.6 measured
Design Arena: ASCII art1255Not measuredOnly Claude Opus 4.6 measured
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index11
General benchmarks for Claude Opus 4.6 and GPT-5.1-Codex
BenchmarkClaude Opus 4.6GPT-5.1-CodexLeader
SAGE (Vals AI)51.6%Not measuredOnly Claude Opus 4.6 measured
MedScribe (Vals AI)86.7%Not measuredOnly Claude Opus 4.6 measured
IFBench53.1%70.0%GPT-5.1-Codex
Long context reasoning (AA-LCR)78.0%69.3%Claude Opus 4.6
DTBench91.2%Not measuredOnly Claude Opus 4.6 measured
LMCA55.8%Not measuredOnly Claude Opus 4.6 measured
CL-bench20.7%Not measuredOnly Claude Opus 4.6 measured
Furniture assembly28.3%Not measuredOnly Claude Opus 4.6 measured
CL-bench Life17.0%Not measuredOnly Claude Opus 4.6 measured
LMArena Text1501Not measuredOnly Claude Opus 4.6 measured
LMArena Text: instruction following1521Not measuredOnly Claude Opus 4.6 measured
LMArena Text: creative writing1505Not measuredOnly Claude Opus 4.6 measured
LMArena Vision1316Not measuredOnly Claude Opus 4.6 measured
LMArena Text: English1511Not measuredOnly Claude Opus 4.6 measured
LMArena Text: non-English1488Not measuredOnly Claude Opus 4.6 measured
LMArena Text: Chinese1551Not measuredOnly Claude Opus 4.6 measured
LMArena Text: German1500Not measuredOnly Claude Opus 4.6 measured
LMArena Text: Japanese1488Not measuredOnly Claude Opus 4.6 measured
LMArena Text: Korean1464Not measuredOnly Claude Opus 4.6 measured
LMArena Text: French1512Not measuredOnly Claude Opus 4.6 measured
LMArena Text: Spanish1510Not measuredOnly Claude Opus 4.6 measured
LMArena Text: Russian1497Not measuredOnly Claude Opus 4.6 measured
LMArena Text: Polish1499Not measuredOnly Claude Opus 4.6 measured
LMArena Text: multi-turn1511Not measuredOnly Claude Opus 4.6 measured
LMArena Text: longer queries1518Not measuredOnly Claude Opus 4.6 measured
LMArena Text: writing and language1502Not measuredOnly Claude Opus 4.6 measured
LMArena Text: entertainment and media1492Not measuredOnly Claude Opus 4.6 measured
LMArena Vision: English1324Not measuredOnly Claude Opus 4.6 measured
LMArena Vision: Chinese1370Not measuredOnly Claude Opus 4.6 measured
LMArena Vision: reading text1326Not measuredOnly Claude Opus 4.6 measured
LMArena Vision: humor1314Not measuredOnly Claude Opus 4.6 measured
LMArena Vision: recognizing things1274Not measuredOnly Claude Opus 4.6 measured
LMArena Vision: creative writing1331Not measuredOnly Claude Opus 4.6 measured
LMArena Document1507Not measuredOnly Claude Opus 4.6 measured
Neither model has a result on the other 12 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Claude Opus 4.6 and GPT-5.1-Codex
BenchmarkClaude Opus 4.6GPT-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 Opus 4.6$0.018Fits in one request
GPT-5.1-Codex$0.0063Fits in one request

GPT-5.1-Codex costs less

Repository review

50K input + 3K output tokens

Claude Opus 4.6$0.325Fits in one request
GPT-5.1-Codex$0.092Fits in one request

GPT-5.1-Codex costs less

Agent loop

200K input + 10K output tokens

Claude Opus 4.6$1.25Fits in one request
GPT-5.1-Codex$0.350Fits in one request

GPT-5.1-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.6 and GPT-5.1-Codex
SpecificationAnthropic Claude Opus 4.6OpenAI GPT-5.1-Codex
MakerAnthropicOpenAI
WeightsNo public weights listedNo public weights listed
ReleasedFebruary 4, 2026November 13, 2025
Context window1M400K
Input $/Mtok$5.00$1.25
Output $/Mtok$25.00$10.00
Coding index57.215.3
Independent measurements behind it42
Cost per solved task$1.56$0.892
SourceOpenRouter listingOpenRouter listing

Questions

Is Claude Opus 4.6 better than GPT-5.1-Codex for coding?

Pick Claude Opus 4.6 for coding: it scores 57.2 on the Vibe Coding Index against 15.3 for GPT-5.1-Codex. Pick GPT-5.1-Codex for output tokens 2.5x cheaper ($10.00 vs $25.00 per million) and a lower cost per solved task ($0.892 against $1.56).

Which is cheaper, Claude Opus 4.6 or GPT-5.1-Codex?

Claude Opus 4.6 costs $5.00 per million input tokens and $25.00 per million output tokens; GPT-5.1-Codex costs $1.25 and $10.00. Per solved SWE-bench Verified task, Claude Opus 4.6 costs $1.56 and GPT-5.1-Codex $0.892.

Which has the bigger context window, Claude Opus 4.6 or GPT-5.1-Codex?

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

How many benchmarks is the Claude Opus 4.6 vs GPT-5.1-Codex comparison based on?

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