Enter opens the highlighted result. Esc closes.

Claude Sonnet 4.5 vs GPT-4

Claude Sonnet 4.5 leads GPT-4 on the Artificial Analysis Intelligence Index, 20.7 to 6.7, and Claude Sonnet 4.5 costs 4.0x less per output token ($15.00 vs $60.00 per million). Updated October 22, 2026; 34 benchmarks have a result for both.

Claude Sonnet 4.5Anthropic
Coding
39.5
Overall
49.5
Output $/M
$15.00
34
GPT-4OpenAI
Coding
No data
Overall
No data
Output $/M
$60.00
0
vs boards won of 34 shared

Claude Sonnet 4.5 or GPT-4: which to pick

Only Claude Sonnet 4.5 has a coding score, 39.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
34
Claude Sonnet 4.5 only
61
GPT-4 only
11
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 Sonnet 4.5 39.5 from 3 benchmarks, GPT-4 not benchmarked.
Widest category
Reasoning, 47.7 points apart on average over 3 shared benchmarks.
Widest single gap
LMArena Text: expert: Claude Sonnet 4.5 1483 against GPT-4 1149, 55.6 points apart on a 0 to 100 scale.
Output price
Claude Sonnet 4.5 $15.00 against GPT-4 $60.00 per million output tokens, 4.0x apart.
Context window
Claude Sonnet 4.5 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 Sonnet 4.5BarsGPT-4Ties
Coding40
Intelligence20
Reasoning30
Math20
Knowledge40
General190
All shared boards340
CodingLike-for-likeSix of these boards feed the Vibe Coding Index40
Coding benchmarks for Claude Sonnet 4.5 and GPT-4
BenchmarkClaude Sonnet 4.5GPT-4Leader
SWE-bench Verified74.8%22.4%Claude Sonnet 4.5
SWE-bench LiteNot measured39.7%Only GPT-4 measured
SWE-bench (full test set)Not measured12.5%Only GPT-4 measured
SWE-bench Multilingual67.0%Not measuredOnly Claude Sonnet 4.5 measured
LMArena WebDev1394Not measuredOnly Claude Sonnet 4.5 measured
AA Coding Index52.113.1Claude Sonnet 4.5
LiveCodeBench (Vals AI)73.0%Not measuredOnly Claude Sonnet 4.5 measured
SWE-bench Verified (Vals AI)70.0%Not measuredOnly Claude Sonnet 4.5 measured
Vibe Code Bench (Vals AI)22.6%Not measuredOnly Claude Sonnet 4.5 measured
Terminal-Bench46.5%Not measuredOnly Claude Sonnet 4.5 measured
GSO-Bench14.7%Not measuredOnly Claude Sonnet 4.5 measured
WeirdML47.7%Not measuredOnly Claude Sonnet 4.5 measured
Cybench60.0%Not measuredOnly Claude Sonnet 4.5 measured
LMArena Text: coding14881209Claude Sonnet 4.5
LMArena Text: software and IT14731195Claude Sonnet 4.5
LMArena WebDev: React1386Not measuredOnly Claude Sonnet 4.5 measured
LMArena WebDev: HTML1399Not measuredOnly Claude Sonnet 4.5 measured
Neither model has a result on the other 22 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index20
Intelligence benchmarks for Claude Sonnet 4.5 and GPT-4
BenchmarkClaude Sonnet 4.5GPT-4Leader
AA Intelligence Index20.76.7Claude Sonnet 4.5
Epoch Capabilities Index146.7125.7Claude Sonnet 4.5
Agentic workDirectional onlyPublic boards, shown as published, kept out of the index11 boards, none shared
Agentic work benchmarks for Claude Sonnet 4.5 and GPT-4
BenchmarkClaude Sonnet 4.5GPT-4Leader
AA Agentic Index15.8Not measuredOnly Claude Sonnet 4.5 measured
Design Arena: agents building web apps1060Not measuredOnly Claude Sonnet 4.5 measured
Design Arena: agents building full-stack apps1050Not measuredOnly Claude Sonnet 4.5 measured
Design Arena: agents building mobile apps1137Not measuredOnly Claude Sonnet 4.5 measured
METR time horizons67.4%Not measuredOnly Claude Sonnet 4.5 measured
Remote Labor Index2.1%Not measuredOnly Claude Sonnet 4.5 measured
GDPval42.5%Not measuredOnly Claude Sonnet 4.5 measured
DeepResearch Bench52.6%Not measuredOnly Claude Sonnet 4.5 measured
OSWorld62.9%Not measuredOnly Claude Sonnet 4.5 measured
Vending-Bench 2$3,839Not measuredOnly Claude Sonnet 4.5 measured
Berkeley Function Calling Leaderboard (BFCL)73.2%Not measuredOnly Claude Sonnet 4.5 measured
Neither model has a result on the other 30 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index30
Reasoning benchmarks for Claude Sonnet 4.5 and GPT-4
BenchmarkClaude Sonnet 4.5GPT-4Leader
GPQA Diamond81.6%Not measuredOnly Claude Sonnet 4.5 measured
MMMU Pro (Vals AI)79.3%Not measuredOnly Claude Sonnet 4.5 measured
GPQA Diamond (Artificial Analysis run)Not measured34.9%Only GPT-4 measured
GPQA Diamond (Epoch AI run)82.3%Not measuredOnly Claude Sonnet 4.5 measured
ARC-AGI63.7%Not measuredOnly Claude Sonnet 4.5 measured
ARC-AGI-213.6%Not measuredOnly Claude Sonnet 4.5 measured
SimpleBench54.3%Not measuredOnly Claude Sonnet 4.5 measured
Chess puzzles10.0%Not measuredOnly Claude Sonnet 4.5 measured
Mystery game puzzles17.0%Not measuredOnly Claude Sonnet 4.5 measured
EBR-bench2.4%Not measuredOnly Claude Sonnet 4.5 measured
VPCT39.8%Not measuredOnly Claude Sonnet 4.5 measured
BIG-Bench HardNot measured75.1%Only GPT-4 measured
LMArena Text: hard prompts14621200Claude Sonnet 4.5
LMArena Text: expert14831149Claude Sonnet 4.5
LMArena Text: hard prompts in English14711209Claude Sonnet 4.5
Kagi LLM Benchmark57.9%Not measuredOnly Claude Sonnet 4.5 measured
Neither model has a result on the other 6 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index20
Math benchmarks for Claude Sonnet 4.5 and GPT-4
BenchmarkClaude Sonnet 4.5GPT-4Leader
AIME88.2%Not measuredOnly Claude Sonnet 4.5 measured
MGSM (Vals AI)94.3%Not measuredOnly Claude Sonnet 4.5 measured
OTIS Mock AIME77.8%Not measuredOnly Claude Sonnet 4.5 measured
FrontierMath, tiers 1 to 323.9%Not measuredOnly Claude Sonnet 4.5 measured
FrontierMath, tier 42.4%Not measuredOnly Claude Sonnet 4.5 measured
ProofBench19.0%Not measuredOnly Claude Sonnet 4.5 measured
MATH level 597.7%Not measuredOnly Claude Sonnet 4.5 measured
GSM8KNot measured92.0%Only GPT-4 measured
LMArena Text: math14491230Claude Sonnet 4.5
LMArena Text: mathematical work14621228Claude Sonnet 4.5
Neither model has a result on the other 3 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index40
Knowledge benchmarks for Claude Sonnet 4.5 and GPT-4
BenchmarkClaude Sonnet 4.5GPT-4Leader
MMLU Pro87.4%Not measuredOnly Claude Sonnet 4.5 measured
LegalBench (Vals AI)84.1%Not measuredOnly Claude Sonnet 4.5 measured
CaseLaw (Vals AI)62.2%Not measuredOnly Claude Sonnet 4.5 measured
CorpFin (Vals AI)62.0%Not measuredOnly Claude Sonnet 4.5 measured
TaxEval (Vals AI)73.3%Not measuredOnly Claude Sonnet 4.5 measured
MortgageTax (Vals AI)64.0%Not measuredOnly Claude Sonnet 4.5 measured
MedQA (Vals AI)94.7%Not measuredOnly Claude Sonnet 4.5 measured
MedCode (Vals AI)44.1%Not measuredOnly Claude Sonnet 4.5 measured
MMLU Pro (Artificial Analysis run)Not measured56.2%Only GPT-4 measured
SimpleQA Verified30.7%Not measuredOnly Claude Sonnet 4.5 measured
MMLUNot measured86.4%Only GPT-4 measured
AI2 Reasoning ChallengeNot measured96.3%Only GPT-4 measured
LMArena Text: science14481177Claude Sonnet 4.5
LMArena Text: medicine and healthcare14441145Claude Sonnet 4.5
LMArena Text: legal and government14511191Claude Sonnet 4.5
LMArena Text: business and finance14401145Claude Sonnet 4.5
FACTS Benchmark Suite40.6%Not measuredOnly Claude Sonnet 4.5 measured
Neither model has a result on the other 1 board here
Web designDirectional onlyPublic boards, shown as published, kept out of the index8 boards, none shared
Web design benchmarks for Claude Sonnet 4.5 and GPT-4
BenchmarkClaude Sonnet 4.5GPT-4Leader
Design Arena: websites1189Not measuredOnly Claude Sonnet 4.5 measured
Design Arena: UI components1170Not measuredOnly Claude Sonnet 4.5 measured
Design Arena: game dev1166Not measuredOnly Claude Sonnet 4.5 measured
Design Arena: data viz1167Not measuredOnly Claude Sonnet 4.5 measured
Design Arena: 3D1157Not measuredOnly Claude Sonnet 4.5 measured
Design Arena: all code categories1182Not measuredOnly Claude Sonnet 4.5 measured
Design Arena: SVG1115Not measuredOnly Claude Sonnet 4.5 measured
Design Arena: ASCII art1205Not measuredOnly Claude Sonnet 4.5 measured
Neither model has a result on the other 1 board here
GeneralLike-for-likePublic boards, shown as published, kept out of the index190
General benchmarks for Claude Sonnet 4.5 and GPT-4
BenchmarkClaude Sonnet 4.5GPT-4Leader
SAGE (Vals AI)36.1%Not measuredOnly Claude Sonnet 4.5 measured
MedScribe (Vals AI)84.5%Not measuredOnly Claude Sonnet 4.5 measured
IFBenchNot measured33.2%Only GPT-4 measured
DTBench83.2%62.7%Claude Sonnet 4.5
LMCA38.8%17.1%Claude Sonnet 4.5
HellaSwagNot measured95.3%Only GPT-4 measured
WinoGrandeNot measured87.5%Only GPT-4 measured
LMArena Text14381206Claude Sonnet 4.5
LMArena Text: instruction following14591201Claude Sonnet 4.5
LMArena Text: creative writing14421191Claude Sonnet 4.5
LMArena Text: English14501220Claude Sonnet 4.5
LMArena Text: non-English14251194Claude Sonnet 4.5
LMArena Text: Chinese14601184Claude Sonnet 4.5
LMArena Text: German14271198Claude Sonnet 4.5
LMArena Text: Japanese13901137Claude Sonnet 4.5
LMArena Text: Korean14021087Claude Sonnet 4.5
LMArena Text: French14591220Claude Sonnet 4.5
LMArena Text: Spanish14581197Claude Sonnet 4.5
LMArena Text: Russian14371195Claude Sonnet 4.5
LMArena Text: Polish14231265Claude Sonnet 4.5
LMArena Text: multi-turn14651206Claude Sonnet 4.5
LMArena Text: longer queries14751190Claude Sonnet 4.5
LMArena Text: writing and language14421219Claude Sonnet 4.5
LMArena Text: entertainment and media14281184Claude Sonnet 4.5
LMArena Document1450Not measuredOnly Claude Sonnet 4.5 measured
Neither model has a result on the other 21 boards here
Image generationNot comparablePublic boards, shown as published, kept out of the index0 boards, none shared
Image generation benchmarks for Claude Sonnet 4.5 and GPT-4
BenchmarkClaude Sonnet 4.5GPT-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 Sonnet 4.5$0.011Fits in one request
GPT-4$0.060Fits in one request

Claude Sonnet 4.5 costs less

Repository review

50K input + 3K output tokens

Claude Sonnet 4.5$0.195Fits in one request
GPT-4$1.68Exceeds the context window

Claude Sonnet 4.5 costs less

Agent loop

200K input + 10K output tokens

Claude Sonnet 4.5$0.750Fits in one request
GPT-4$6.60Exceeds the context window

Claude Sonnet 4.5 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 Sonnet 4.5 and GPT-4
SpecificationAnthropic Claude Sonnet 4.5OpenAI GPT-4
MakerAnthropicOpenAI
WeightsNo public weights listedNo public weights listed
ReleasedSeptember 29, 2025May 28, 2023
Context window1M8K
Input $/Mtok$3.00$30.00
Output $/Mtok$15.00$60.00
Coding index39.5Not benchmarked
Independent measurements behind it30
Cost per solved task$1.16Not computable
SourceOpenRouter listingOpenRouter listing

Questions

Is Claude Sonnet 4.5 better than GPT-4 for coding?

Only Claude Sonnet 4.5 has a coding score, 39.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 Sonnet 4.5 or GPT-4?

Claude Sonnet 4.5 costs $3.00 per million input tokens and $15.00 per million output tokens; GPT-4 costs $30.00 and $60.00. Cost per solved task is known for Claude Sonnet 4.5 only.

Which has the bigger context window, Claude Sonnet 4.5 or GPT-4?

Claude Sonnet 4.5, with 1M tokens against 8K.

How many benchmarks is the Claude Sonnet 4.5 vs GPT-4 comparison based on?

34 benchmarks have a result for both models as of October 22, 2026. Claude Sonnet 4.5's coding index rests on 3 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