Enter opens the highlighted result. Esc closes.

Claude Opus 4.7 vs GPT-4

Claude Opus 4.7 leads GPT-4 on the Artificial Analysis Intelligence Index, 40.7 to 6.7, and Claude Opus 4.7 costs 2.4x less per output token ($25.00 vs $60.00 per million). Updated October 22, 2026; 35 benchmarks have a result for both.

Claude Opus 4.7Anthropic
Coding
67.5
Overall
71.6
Output $/M
$25.00
35
GPT-4OpenAI
Coding
No data
Overall
No data
Output $/M
$60.00
0
vs boards won of 35 shared

Claude Opus 4.7 or GPT-4: which to pick

Only Claude Opus 4.7 has a coding score, 67.5 on the Vibe Coding Index; GPT-4 has none, so the two cannot be ranked on coding.

Compare them on price, context and the boards below.

Shared results
35
Claude Opus 4.7 only
68
GPT-4 only
10
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.7 67.5 from 4 benchmarks, GPT-4 not benchmarked.
Widest category
Knowledge, 55.8 points apart on average over 4 shared benchmarks.
Widest single gap
LMArena Text: Korean: Claude Opus 4.7 1464 against GPT-4 1087, 62.8 points apart on a 0 to 100 scale.
Output price
Claude Opus 4.7 $25.00 against GPT-4 $60.00 per million output tokens, 2.4x apart.
Context window
Claude Opus 4.7 takes 1M tokens, GPT-4 8K.

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-4Ties
Coding30
Intelligence20
Reasoning40
Math20
Knowledge40
General200
All shared boards350
CodingLike-for-likeSix of these boards feed the Vibe Coding Index30
Coding benchmarks for Claude Opus 4.7 and GPT-4
BenchmarkClaude Opus 4.7GPT-4Leader
SWE-bench VerifiedNot measured22.4%Only GPT-4 measured
SWE-bench LiteNot measured39.7%Only GPT-4 measured
SWE-bench (full test set)Not measured12.5%Only GPT-4 measured
LMArena WebDev1558Not measuredOnly Claude Opus 4.7 measured
AA Coding Index73.613.1Claude Opus 4.7
LiveCodeBench (Vals AI)85.1%Not measuredOnly Claude Opus 4.7 measured
SWE-bench Verified (Vals AI)82.0%Not measuredOnly Claude Opus 4.7 measured
Vibe Code Bench (Vals AI)71.0%Not measuredOnly Claude Opus 4.7 measured
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
Terminal-Bench Hard (Artificial Analysis run)54.5%Not measuredOnly Claude Opus 4.7 measured
Terminal-Bench80.2%Not measuredOnly Claude Opus 4.7 measured
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
LMArena Text: coding15191209Claude Opus 4.7
LMArena Text: software and IT15161195Claude Opus 4.7
LMArena WebDev: React1560Not measuredOnly Claude Opus 4.7 measured
LMArena WebDev: HTML1554Not measuredOnly Claude Opus 4.7 measured
LMArena WebDev: from an image1577Not measuredOnly Claude Opus 4.7 measured
Neither model has a result on the other 17 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for Claude Opus 4.7 and GPT-4
BenchmarkClaude Opus 4.7GPT-4Leader
AA Intelligence Index40.76.7Claude Opus 4.7
Epoch Capabilities Index156.8125.7Claude Opus 4.7
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index11 boards, none shared
Agentic work benchmarks for Claude Opus 4.7 and GPT-4
BenchmarkClaude Opus 4.7GPT-4Leader
AA Agentic Index38.6Not measuredOnly Claude Opus 4.7 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%Not measuredOnly Claude Opus 4.7 measured
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 30 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index40
Reasoning benchmarks for Claude Opus 4.7 and GPT-4
BenchmarkClaude Opus 4.7GPT-4Leader
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%34.9%Claude Opus 4.7
Humanity's Last Exam (Artificial Analysis run)42.3%Not measuredOnly Claude Opus 4.7 measured
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
BIG-Bench HardNot measured75.1%Only GPT-4 measured
LMArena Text: hard prompts15061200Claude Opus 4.7
LMArena Text: expert15211149Claude Opus 4.7
LMArena Text: hard prompts in English15081209Claude Opus 4.7
LMArena Vision: diagrams1336Not measuredOnly Claude Opus 4.7 measured
LMArena Vision: homework1337Not measuredOnly Claude Opus 4.7 measured
Kagi LLM Benchmark80.7%Not measuredOnly Claude Opus 4.7 measured
Neither model has a result on the other 4 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index20
Math benchmarks for Claude Opus 4.7 and GPT-4
BenchmarkClaude Opus 4.7GPT-4Leader
AIME96.3%Not measuredOnly Claude Opus 4.7 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
GSM8KNot measured92.0%Only GPT-4 measured
LMArena Text: math14981230Claude Opus 4.7
LMArena Text: mathematical work15091228Claude Opus 4.7
Neither model has a result on the other 5 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index40
Knowledge benchmarks for Claude Opus 4.7 and GPT-4
BenchmarkClaude Opus 4.7GPT-4Leader
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 measured56.2%Only GPT-4 measured
SimpleQA Verified51.7%Not measuredOnly Claude Opus 4.7 measured
MMLUNot measured86.4%Only GPT-4 measured
AI2 Reasoning ChallengeNot measured96.3%Only GPT-4 measured
LMArena Text: science15081177Claude Opus 4.7
LMArena Text: medicine and healthcare14951145Claude Opus 4.7
LMArena Text: legal and government15041191Claude Opus 4.7
LMArena Text: business and finance14901145Claude Opus 4.7
FACTS Benchmark Suite45.5%Not measuredOnly Claude Opus 4.7 measured
Neither model has a result on the other 2 boards here
Web designNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Web design benchmarks for Claude Opus 4.7 and GPT-4
BenchmarkClaude Opus 4.7GPT-4Leader
Neither model has a result on 9 boards here
GeneralLike-for-likePublic boards, shown as published, kept out of the index200
General benchmarks for Claude Opus 4.7 and GPT-4
BenchmarkClaude Opus 4.7GPT-4Leader
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%33.2%Claude Opus 4.7
Long context reasoning (AA-LCR)78.7%Not measuredOnly Claude Opus 4.7 measured
DTBench94.7%62.7%Claude Opus 4.7
LMCA52.2%17.1%Claude Opus 4.7
Furniture assembly33.3%Not measuredOnly Claude Opus 4.7 measured
ExploitBench26.5%Not measuredOnly Claude Opus 4.7 measured
HellaSwagNot measured95.3%Only GPT-4 measured
WinoGrandeNot measured87.5%Only GPT-4 measured
LMArena Text14901206Claude Opus 4.7
LMArena Text: instruction following14981201Claude Opus 4.7
LMArena Text: creative writing14861191Claude Opus 4.7
LMArena Vision1317Not measuredOnly Claude Opus 4.7 measured
LMArena Text: English14961220Claude Opus 4.7
LMArena Text: non-English14801194Claude Opus 4.7
LMArena Text: Chinese15311184Claude Opus 4.7
LMArena Text: German14951198Claude Opus 4.7
LMArena Text: Japanese14741137Claude Opus 4.7
LMArena Text: Korean14641087Claude Opus 4.7
LMArena Text: French15031220Claude Opus 4.7
LMArena Text: Spanish14941197Claude Opus 4.7
LMArena Text: Russian14941195Claude Opus 4.7
LMArena Text: Polish14891265Claude Opus 4.7
LMArena Text: multi-turn15051206Claude Opus 4.7
LMArena Text: longer queries15051190Claude Opus 4.7
LMArena Text: writing and language14921219Claude Opus 4.7
LMArena Text: entertainment and media14741184Claude Opus 4.7
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 10 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-4
BenchmarkClaude Opus 4.7GPT-4Leader
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-4$0.060Fits in one request

Claude Opus 4.7 costs less

Repository review

50K input + 3K output tokens

Claude Opus 4.7$0.325Fits in one request
GPT-4$1.68Exceeds the context window

Claude Opus 4.7 costs less

Agent loop

200K input + 10K output tokens

Claude Opus 4.7$1.25Fits in one request
GPT-4$6.60Exceeds the context window

Claude Opus 4.7 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-4
SpecificationAnthropic Claude Opus 4.7OpenAI GPT-4
MakerAnthropicOpenAI
WeightsNo public weights listedNo public weights listed
ReleasedApril 16, 2026May 28, 2023
Context window1M8K
Input $/Mtok$5.00$30.00
Output $/Mtok$25.00$60.00
Coding index67.5Not benchmarked
Independent measurements behind it40
Cost per solved task$2.95Not computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Claude Opus 4.7 better than GPT-4 for coding?

Only Claude Opus 4.7 has a coding score, 67.5 on the Vibe Coding Index; GPT-4 has none, so the two cannot be ranked on coding. Compare them on price, context and the boards below.

Which is cheaper, Claude Opus 4.7 or GPT-4?

Claude Opus 4.7 costs $5.00 per million input tokens and $25.00 per million output tokens; GPT-4 costs $30.00 and $60.00. Cost per solved task is known for Claude Opus 4.7 only.

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

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

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

35 benchmarks have a result for both models as of October 22, 2026. Claude Opus 4.7's coding index rests on 4 independent benchmarks and GPT-4's on 0. Where only one model has a result, the page says so instead of naming a winner.

Compare next