LLMBenchmark.ai

Enter opens the highlighted result. Esc closes.

Claude Opus 4.7 vs GPT-5.1-Codex

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

Claude Opus 4.7Anthropic
Coding
51.1
Overall
40.7
Output $/M
$25.00
10
GPT-5.1-CodexOpenAI
Coding
50.5
Overall
23.7
Output $/M
$10.00
2
vs boards won of 12 shared

Decision reading

Claude Opus 4.7 and GPT-5.1-Codex are level for coding, 51.1 against 50.5 on the Vibe Coding Index, so price and context decide.

Pick GPT-5.1-Codex when output tokens cost 2.5x less, or when a solved task costs $0.892 against $2.95. Pick Claude Opus 4.7 when the context window is larger, 1M against 400K tokens, or when what matters is LMArena WebDev or Vibe Code Bench (Vals AI), where it leads.

Shared results
12
Claude Opus 4.7 only
89
GPT-5.1-Codex only
14
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.7 51.1 from 1 benchmark, GPT-5.1-Codex 50.5 from 2 benchmarks.
Widest category
Coding, 27.8 points apart on average over 6 shared benchmarks.
Widest single gap
Vibe Code Bench (Vals AI): Claude Opus 4.7 71.0% against GPT-5.1-Codex 13.1%, 57.9 points apart on a 0 to 100 scale.
Output price
Claude Opus 4.7 $25.00 against GPT-5.1-Codex $10.00 per million output tokens, 2.5x apart.
Context window
Claude Opus 4.7 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.7BarsGPT-5.1-CodexTies
Coding51
Intelligence10
Agentic work10
Reasoning20
General11
All shared boards102
CodingLike-for-likeFour of these boards feed the Vibe Coding Index51
Coding benchmarks for Claude Opus 4.7 and GPT-5.1-Codex
BenchmarkClaude Opus 4.7GPT-5.1-CodexLeader
SWE-bench VerifiedNot measured66.0%Only GPT-5.1-Codex measured
LMArena WebDev15581337Claude Opus 4.7
AA Coding Index73.6Not measuredOnly Claude Opus 4.7 measured
LiveCodeBench (Vals AI)85.1%85.5%GPT-5.1-Codex
SWE-bench Verified (Vals AI)82.0%Not measuredOnly Claude Opus 4.7 measured
Vibe Code Bench (Vals AI)71.0%13.1%Claude Opus 4.7
Code migration (Vals AI)43.9%Not measuredOnly Claude Opus 4.7 measured
ProgramBench (Vals AI)0.0%Not measuredOnly Claude Opus 4.7 measured
Terminal-Bench 2.1 (Vals AI)68.5%Not measuredOnly Claude Opus 4.7 measured
LiveCodeBench (Artificial Analysis run)Not measured84.9%Only GPT-5.1-Codex measured
Terminal-Bench Hard (Artificial Analysis run)54.5%34.8%Claude Opus 4.7
Terminal-Bench80.2%57.8%Claude Opus 4.7
FrontierCode38.5%Not measuredOnly Claude Opus 4.7 measured
GSO-Bench44.1%Not measuredOnly Claude Opus 4.7 measured
WeirdML76.4%Not measuredOnly Claude Opus 4.7 measured
MirrorCode31.1%Not measuredOnly Claude Opus 4.7 measured
ALE-BenchNot measured1244.9Only GPT-5.1-Codex measured
LMArena Text: coding1519Not measuredOnly Claude Opus 4.7 measured
LMArena Text: software and IT1516Not measuredOnly Claude Opus 4.7 measured
LMArena WebDev: React1560Not measuredOnly Claude Opus 4.7 measured
LMArena WebDev: HTML15541346Claude Opus 4.7
LMArena WebDev: from an image1577Not measuredOnly Claude Opus 4.7 measured
Neither model has a result on the other 16 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index10
Intelligence benchmarks for Claude Opus 4.7 and GPT-5.1-Codex
BenchmarkClaude Opus 4.7GPT-5.1-CodexLeader
AA Intelligence Index40.723.7Claude Opus 4.7
Epoch Capabilities Index156.8Not measuredOnly Claude Opus 4.7 measured
Agentic workLike-for-likePublic boards, shown as published, kept out of the index10
Agentic work benchmarks for Claude Opus 4.7 and GPT-5.1-Codex
BenchmarkClaude Opus 4.7GPT-5.1-CodexLeader
AA Agentic Index38.6Not measuredOnly Claude Opus 4.7 measured
Design Arena: agents building web appsNot measured1018Only GPT-5.1-Codex measured
Design Arena: agents building full-stack appsNot measured1086Only GPT-5.1-Codex measured
Design Arena: agents building mobile appsNot measured1191Only GPT-5.1-Codex measured
Finance Agent (Vals AI)51.5%Not measuredOnly Claude Opus 4.7 measured
Tax Agent Bench (Vals AI)23.7%Not measuredOnly Claude Opus 4.7 measured
Legal Research Bench (Vals AI)38.5%Not measuredOnly Claude Opus 4.7 measured
Excel Modeling Benchmark (Vals AI)63.7%Not measuredOnly Claude Opus 4.7 measured
τ²-Bench Telecom88.6%83.0%Claude Opus 4.7
APEX-Agents49.2%Not measuredOnly Claude Opus 4.7 measured
OSWorld 2.018.2%Not measuredOnly Claude Opus 4.7 measured
PostTrainBench28.6%Not measuredOnly Claude Opus 4.7 measured
Vending-Bench 2$10,937Not measuredOnly Claude Opus 4.7 measured
LMArena Search1230Not measuredOnly Claude Opus 4.7 measured
Neither model has a result on the other 25 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index20
Reasoning benchmarks for Claude Opus 4.7 and GPT-5.1-Codex
BenchmarkClaude Opus 4.7GPT-5.1-CodexLeader
GPQA Diamond90.2%Not measuredOnly Claude Opus 4.7 measured
MMMU Pro (Vals AI)85.5%Not measuredOnly Claude Opus 4.7 measured
GPQA Diamond (Artificial Analysis run)91.4%86.0%Claude Opus 4.7
Humanity's Last Exam (Artificial Analysis run)42.3%25.7%Claude Opus 4.7
GPQA Diamond (Epoch AI run)90.2%Not measuredOnly Claude Opus 4.7 measured
ARC-AGI93.5%Not measuredOnly Claude Opus 4.7 measured
ARC-AGI-275.8%Not measuredOnly Claude Opus 4.7 measured
SimpleBench61.7%Not measuredOnly Claude Opus 4.7 measured
Chess puzzles41.0%Not measuredOnly Claude Opus 4.7 measured
Mystery game puzzles28.0%Not measuredOnly Claude Opus 4.7 measured
EBR-bench19.0%Not measuredOnly Claude Opus 4.7 measured
LMArena Text: hard prompts1506Not measuredOnly Claude Opus 4.7 measured
LMArena Text: expert1521Not measuredOnly Claude Opus 4.7 measured
LMArena Text: hard prompts in English1508Not measuredOnly Claude Opus 4.7 measured
LMArena Vision: diagrams1336Not measuredOnly Claude Opus 4.7 measured
LMArena Vision: homework1337Not measuredOnly Claude Opus 4.7 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.7 and GPT-5.1-Codex
BenchmarkClaude Opus 4.7GPT-5.1-CodexLeader
AIME96.3%Not measuredOnly Claude Opus 4.7 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 AIME97.8%Not measuredOnly Claude Opus 4.7 measured
FrontierMath, tiers 1 to 370.2%Not measuredOnly Claude Opus 4.7 measured
FrontierMath, tier 431.7%Not measuredOnly Claude Opus 4.7 measured
ProofBench54.0%Not measuredOnly Claude Opus 4.7 measured
LMArena Text: math1498Not measuredOnly Claude Opus 4.7 measured
LMArena Text: mathematical work1509Not measuredOnly Claude Opus 4.7 measured
Neither model has a result on the other 4 boards here
KnowledgeDirectional onlyPublic boards, shown as published, kept out of the index13 boards, none shared
Knowledge benchmarks for Claude Opus 4.7 and GPT-5.1-Codex
BenchmarkClaude Opus 4.7GPT-5.1-CodexLeader
MMLU Pro89.9%Not measuredOnly Claude Opus 4.7 measured
LegalBench (Vals AI)85.3%Not measuredOnly Claude Opus 4.7 measured
CaseLaw (Vals AI)68.4%Not measuredOnly Claude Opus 4.7 measured
CorpFin (Vals AI)66.1%Not measuredOnly Claude Opus 4.7 measured
TaxEval (Vals AI)75.3%Not measuredOnly Claude Opus 4.7 measured
MortgageTax (Vals AI)70.3%Not measuredOnly Claude Opus 4.7 measured
MedCode (Vals AI)54.9%Not measuredOnly Claude Opus 4.7 measured
MMLU Pro (Artificial Analysis run)Not measured86.0%Only GPT-5.1-Codex measured
SimpleQA Verified51.7%Not measuredOnly Claude Opus 4.7 measured
LMArena Text: science1508Not measuredOnly Claude Opus 4.7 measured
LMArena Text: medicine and healthcare1495Not measuredOnly Claude Opus 4.7 measured
LMArena Text: legal and government1504Not measuredOnly Claude Opus 4.7 measured
LMArena Text: business and finance1490Not measuredOnly Claude Opus 4.7 measured
Neither model has a result on the other 4 boards here
Web designDirectional onlyPublic boards, shown as published, kept out of the index5 boards, none shared
Web design benchmarks for Claude Opus 4.7 and GPT-5.1-Codex
BenchmarkClaude Opus 4.7GPT-5.1-CodexLeader
Design Arena: websitesNot measured1162Only GPT-5.1-Codex measured
Design Arena: UI componentsNot measured1237Only GPT-5.1-Codex measured
Design Arena: game devNot measured1138Only GPT-5.1-Codex measured
Design Arena: data vizNot measured1213Only GPT-5.1-Codex measured
Design Arena: all code categoriesNot measured1153Only GPT-5.1-Codex measured
Neither model has a result on the other 4 boards here
GeneralLike-for-likePublic boards, shown as published, kept out of the index11
General benchmarks for Claude Opus 4.7 and GPT-5.1-Codex
BenchmarkClaude Opus 4.7GPT-5.1-CodexLeader
SAGE (Vals AI)56.1%Not measuredOnly Claude Opus 4.7 measured
MedScribe (Vals AI)83.0%Not measuredOnly Claude Opus 4.7 measured
Vals Multimodal Index67.4%Not measuredOnly Claude Opus 4.7 measured
IFBench58.6%70.0%GPT-5.1-Codex
Long context reasoning (AA-LCR)78.7%69.3%Claude Opus 4.7
DTBench94.7%Not measuredOnly Claude Opus 4.7 measured
LMCA52.2%Not measuredOnly Claude Opus 4.7 measured
Furniture assembly33.3%Not measuredOnly Claude Opus 4.7 measured
ExploitBench26.5%Not measuredOnly Claude Opus 4.7 measured
LMArena Text1490Not measuredOnly Claude Opus 4.7 measured
LMArena Text: instruction following1498Not measuredOnly Claude Opus 4.7 measured
LMArena Text: creative writing1486Not measuredOnly Claude Opus 4.7 measured
LMArena Vision1317Not measuredOnly Claude Opus 4.7 measured
LMArena Text: English1496Not measuredOnly Claude Opus 4.7 measured
LMArena Text: non-English1480Not measuredOnly Claude Opus 4.7 measured
LMArena Text: Chinese1531Not measuredOnly Claude Opus 4.7 measured
LMArena Text: German1495Not measuredOnly Claude Opus 4.7 measured
LMArena Text: Japanese1474Not measuredOnly Claude Opus 4.7 measured
LMArena Text: Korean1464Not measuredOnly Claude Opus 4.7 measured
LMArena Text: French1503Not measuredOnly Claude Opus 4.7 measured
LMArena Text: Spanish1494Not measuredOnly Claude Opus 4.7 measured
LMArena Text: Russian1494Not measuredOnly Claude Opus 4.7 measured
LMArena Text: Polish1489Not measuredOnly Claude Opus 4.7 measured
LMArena Text: multi-turn1505Not measuredOnly Claude Opus 4.7 measured
LMArena Text: longer queries1505Not measuredOnly Claude Opus 4.7 measured
LMArena Text: writing and language1492Not measuredOnly Claude Opus 4.7 measured
LMArena Text: entertainment and media1474Not measuredOnly Claude Opus 4.7 measured
LMArena Vision: English1322Not measuredOnly Claude Opus 4.7 measured
LMArena Vision: Chinese1371Not measuredOnly Claude Opus 4.7 measured
LMArena Vision: reading text1327Not measuredOnly Claude Opus 4.7 measured
LMArena Vision: humor1309Not measuredOnly Claude Opus 4.7 measured
LMArena Vision: recognizing things1278Not measuredOnly Claude Opus 4.7 measured
LMArena Vision: creative writing1326Not measuredOnly Claude Opus 4.7 measured
LMArena Document1495Not measuredOnly Claude Opus 4.7 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.7 and GPT-5.1-Codex
BenchmarkClaude Opus 4.7GPT-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.7$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.7$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.7$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.7 and GPT-5.1-Codex
SpecificationAnthropic Claude Opus 4.7OpenAI GPT-5.1-Codex
MakerAnthropicOpenAI
WeightsNo public weights listedNo public weights listed
ReleasedApril 16, 2026November 13, 2025
Context window1M400K
Input $/Mtok$5.00$1.25
Output $/Mtok$25.00$10.00
Coding index51.150.5
Independent measurements behind it12
Cost per solved task$2.95$0.892
SourceOpenRouter listingOpenRouter listing

Questions

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

Claude Opus 4.7 and GPT-5.1-Codex are level for coding, 51.1 against 50.5 on the Vibe Coding Index, so price and context decide. Pick GPT-5.1-Codex when output tokens cost 2.5x less, or when a solved task costs $0.892 against $2.95. Pick Claude Opus 4.7 when the context window is larger, 1M against 400K tokens, or when what matters is LMArena WebDev or Vibe Code Bench (Vals AI), where it leads.

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

Claude Opus 4.7 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.7 costs $2.95 and GPT-5.1-Codex $0.892.

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

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

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

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