Enter opens the highlighted result. Esc closes.

Claude Sonnet 4.5 vs GPT-5.4 Nano

GPT-5.4 Nano leads Claude Sonnet 4.5 on coding, 44.8 to 39.5 on the Vibe Coding Index, and GPT-5.4 Nano costs 12.0x less per output token ($1.25 vs $15.00 per million). Updated October 22, 2026; 61 benchmarks have a result for both.

Claude Sonnet 4.5Anthropic
Coding
39.5
Overall
49.5
Output $/M
$15.00
49
GPT-5.4 NanoOpenAI
Coding
44.8
Overall
45.7
Output $/M
$1.25
11
vs boards won of 61 shared, 1 tied

Claude Sonnet 4.5 or GPT-5.4 Nano: which to pick

Pick GPT-5.4 Nano for coding: it scores 44.8 on the Vibe Coding Index against 39.5 for Claude Sonnet 4.5, though on 2 benchmarks against 3.

Pick Claude Sonnet 4.5 for a larger context window (1M against 400K tokens) and work measured by SWE-bench Verified (Vals AI) or LMArena Text: coding, where it leads.

Shared results
61
Claude Sonnet 4.5 only
34
GPT-5.4 Nano only
24
Like-for-like categories
7 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-5.4 Nano 44.8 from 2 benchmarks.
Widest category
Reasoning, 12.5 points apart on average over 11 shared benchmarks.
Widest single gap
Chess puzzles: Claude Sonnet 4.5 10.0% against GPT-5.4 Nano 45.0%, 35.0 points apart on a 0 to 100 scale.
Output price
Claude Sonnet 4.5 $15.00 against GPT-5.4 Nano $1.25 per million output tokens, 12.0x apart.
Context window
Claude Sonnet 4.5 takes 1M tokens, GPT-5.4 Nano 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 Sonnet 4.5BarsGPT-5.4 NanoTies
Coding34
Intelligence101 tie
Agentic work01
Reasoning101
Math34
Knowledge120
General201
All shared boards49111 tie
CodingLike-for-likeSix of these boards feed the Vibe Coding Index34
Coding benchmarks for Claude Sonnet 4.5 and GPT-5.4 Nano
BenchmarkClaude Sonnet 4.5GPT-5.4 NanoLeader
SWE-bench Verified74.8%Not measuredOnly Claude Sonnet 4.5 measured
SWE-bench Multilingual67.0%Not measuredOnly Claude Sonnet 4.5 measured
LMArena WebDev1394Not measuredOnly Claude Sonnet 4.5 measured
AA Coding Index52.156.1GPT-5.4 Nano
LiveCodeBench (Vals AI)73.0%84.0%GPT-5.4 Nano
SWE-bench Verified (Vals AI)70.0%69.8%Claude Sonnet 4.5
Vibe Code Bench (Vals AI)22.6%26.1%GPT-5.4 Nano
Code migration (Vals AI)Not measured14.5%Only GPT-5.4 Nano measured
Terminal-Bench 2.1 (Vals AI)Not measured41.6%Only GPT-5.4 Nano measured
SciCodeNot measured47.2%Only GPT-5.4 Nano measured
Terminal-Bench Hard (Artificial Analysis run)Not measured42.4%Only GPT-5.4 Nano measured
Terminal-Bench46.5%Not measuredOnly Claude Sonnet 4.5 measured
GSO-Bench14.7%Not measuredOnly Claude Sonnet 4.5 measured
WeirdML47.7%49.2%GPT-5.4 Nano
Cybench60.0%Not measuredOnly Claude Sonnet 4.5 measured
ALE-BenchNot measured1004.5Only GPT-5.4 Nano measured
LMArena Text: coding14881404Claude Sonnet 4.5
LMArena Text: software and IT14731402Claude 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 19 boards here
IntelligenceLike-for-likePublic boards, shown as published, kept out of the index10
Intelligence benchmarks for Claude Sonnet 4.5 and GPT-5.4 Nano
BenchmarkClaude Sonnet 4.5GPT-5.4 NanoLeader
AA Intelligence Index20.720.7Tie
Epoch Capabilities Index146.7146.0Claude Sonnet 4.5
Agentic workLike-for-likePublic boards, shown as published, kept out of the index01
Agentic work benchmarks for Claude Sonnet 4.5 and GPT-5.4 Nano
BenchmarkClaude Sonnet 4.5GPT-5.4 NanoLeader
AA Agentic Index15.816.0GPT-5.4 Nano
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
Finance Agent (Vals AI)Not measured38.2%Only GPT-5.4 Nano measured
Tax Agent Bench (Vals AI)Not measured5.0%Only GPT-5.4 Nano measured
Legal Research Bench (Vals AI)Not measured6.3%Only GPT-5.4 Nano measured
Excel Modeling Benchmark (Vals AI)Not measured44.8%Only GPT-5.4 Nano measured
τ²-Bench TelecomNot measured76.0%Only GPT-5.4 Nano 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 25 boards here
ReasoningLike-for-likePublic boards, shown as published, kept out of the index101
Reasoning benchmarks for Claude Sonnet 4.5 and GPT-5.4 Nano
BenchmarkClaude Sonnet 4.5GPT-5.4 NanoLeader
GPQA Diamond81.6%77.5%Claude Sonnet 4.5
MMMU Pro (Vals AI)79.3%73.6%Claude Sonnet 4.5
GPQA Diamond (Artificial Analysis run)Not measured81.7%Only GPT-5.4 Nano measured
Humanity's Last Exam (Artificial Analysis run)Not measured28.3%Only GPT-5.4 Nano measured
GPQA Diamond (Epoch AI run)82.3%78.5%Claude Sonnet 4.5
ARC-AGI63.7%51.5%Claude Sonnet 4.5
ARC-AGI-213.6%5.7%Claude Sonnet 4.5
SimpleBench54.3%Not measuredOnly Claude Sonnet 4.5 measured
Chess puzzles10.0%45.0%GPT-5.4 Nano
Mystery game puzzles17.0%9.0%Claude Sonnet 4.5
EBR-bench2.4%Not measuredOnly Claude Sonnet 4.5 measured
VPCT39.8%Not measuredOnly Claude Sonnet 4.5 measured
LMArena Text: hard prompts14621381Claude Sonnet 4.5
LMArena Text: expert14831396Claude Sonnet 4.5
LMArena Text: hard prompts in English14711387Claude Sonnet 4.5
LMArena Vision: diagramsNot measured1210Only GPT-5.4 Nano measured
LMArena Vision: homeworkNot measured1225Only GPT-5.4 Nano measured
Kagi LLM Benchmark57.9%39.7%Claude Sonnet 4.5
Neither model has a result on the other 4 boards here
MathLike-for-likePublic boards, shown as published, kept out of the index34
Math benchmarks for Claude Sonnet 4.5 and GPT-5.4 Nano
BenchmarkClaude Sonnet 4.5GPT-5.4 NanoLeader
AIME88.2%88.8%GPT-5.4 Nano
MGSM (Vals AI)94.3%Not measuredOnly Claude Sonnet 4.5 measured
OTIS Mock AIME77.8%87.8%GPT-5.4 Nano
FrontierMath, tiers 1 to 323.9%44.9%GPT-5.4 Nano
FrontierMath, tier 42.4%12.2%GPT-5.4 Nano
ProofBench19.0%5.0%Claude Sonnet 4.5
MATH level 597.7%Not measuredOnly Claude Sonnet 4.5 measured
LMArena Text: math14491405Claude Sonnet 4.5
LMArena Text: mathematical work14621409Claude Sonnet 4.5
Neither model has a result on the other 4 boards here
KnowledgeLike-for-likePublic boards, shown as published, kept out of the index120
Knowledge benchmarks for Claude Sonnet 4.5 and GPT-5.4 Nano
BenchmarkClaude Sonnet 4.5GPT-5.4 NanoLeader
MMLU Pro87.4%77.2%Claude Sonnet 4.5
LegalBench (Vals AI)84.1%77.9%Claude Sonnet 4.5
CaseLaw (Vals AI)62.2%51.9%Claude Sonnet 4.5
CorpFin (Vals AI)62.0%61.2%Claude Sonnet 4.5
TaxEval (Vals AI)73.3%67.4%Claude Sonnet 4.5
MortgageTax (Vals AI)64.0%59.1%Claude Sonnet 4.5
MedQA (Vals AI)94.7%Not measuredOnly Claude Sonnet 4.5 measured
MedCode (Vals AI)44.1%41.0%Claude Sonnet 4.5
SimpleQA Verified30.7%11.7%Claude Sonnet 4.5
LMArena Text: science14481374Claude Sonnet 4.5
LMArena Text: medicine and healthcare14441369Claude Sonnet 4.5
LMArena Text: legal and government14511368Claude Sonnet 4.5
LMArena Text: business and finance14401366Claude Sonnet 4.5
FACTS Benchmark Suite40.6%Not measuredOnly Claude Sonnet 4.5 measured
Neither model has a result on the other 4 boards 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-5.4 Nano
BenchmarkClaude Sonnet 4.5GPT-5.4 NanoLeader
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 index201
General benchmarks for Claude Sonnet 4.5 and GPT-5.4 Nano
BenchmarkClaude Sonnet 4.5GPT-5.4 NanoLeader
SAGE (Vals AI)36.1%38.1%GPT-5.4 Nano
MedScribe (Vals AI)84.5%77.1%Claude Sonnet 4.5
Vals Multimodal IndexNot measured47.6%Only GPT-5.4 Nano measured
IFBenchNot measured75.9%Only GPT-5.4 Nano measured
Long context reasoning (AA-LCR)Not measured76.7%Only GPT-5.4 Nano measured
DTBench83.2%80.3%Claude Sonnet 4.5
LMCA38.8%36.9%Claude Sonnet 4.5
LMArena Text14381372Claude Sonnet 4.5
LMArena Text: instruction following14591362Claude Sonnet 4.5
LMArena Text: creative writing14421315Claude Sonnet 4.5
LMArena VisionNot measured1196Only GPT-5.4 Nano measured
LMArena Text: English14501381Claude Sonnet 4.5
LMArena Text: non-English14251359Claude Sonnet 4.5
LMArena Text: Chinese14601391Claude Sonnet 4.5
LMArena Text: German14271368Claude Sonnet 4.5
LMArena Text: Japanese13901343Claude Sonnet 4.5
LMArena Text: Korean14021321Claude Sonnet 4.5
LMArena Text: French14591395Claude Sonnet 4.5
LMArena Text: Spanish14581371Claude Sonnet 4.5
LMArena Text: Russian14371363Claude Sonnet 4.5
LMArena Text: Polish14231366Claude Sonnet 4.5
LMArena Text: multi-turn14651382Claude Sonnet 4.5
LMArena Text: longer queries14751365Claude Sonnet 4.5
LMArena Text: writing and language14421338Claude Sonnet 4.5
LMArena Text: entertainment and media14281325Claude Sonnet 4.5
LMArena Vision: EnglishNot measured1202Only GPT-5.4 Nano measured
LMArena Vision: ChineseNot measured1232Only GPT-5.4 Nano measured
LMArena Vision: reading textNot measured1204Only GPT-5.4 Nano measured
LMArena Vision: humorNot measured1161Only GPT-5.4 Nano measured
LMArena Vision: recognizing thingsNot measured1141Only GPT-5.4 Nano measured
LMArena Vision: creative writingNot measured1159Only GPT-5.4 Nano measured
LMArena Document1450Not measuredOnly Claude Sonnet 4.5 measured
Neither model has a result on the other 14 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-5.4 Nano
BenchmarkClaude Sonnet 4.5GPT-5.4 NanoLeader
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-5.4 Nano$0.0008Fits in one request

GPT-5.4 Nano costs less

Repository review

50K input + 3K output tokens

Claude Sonnet 4.5$0.195Fits in one request
GPT-5.4 Nano$0.014Fits in one request

GPT-5.4 Nano costs less

Agent loop

200K input + 10K output tokens

Claude Sonnet 4.5$0.750Fits in one request
GPT-5.4 Nano$0.052Fits in one request

GPT-5.4 Nano 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-5.4 Nano
SpecificationAnthropic Claude Sonnet 4.5OpenAI GPT-5.4 Nano
MakerAnthropicOpenAI
WeightsNo public weights listedNo public weights listed
ReleasedSeptember 29, 2025March 17, 2026
Context window1M400K
Input $/Mtok$3.00$0.20
Output $/Mtok$15.00$1.25
Coding index39.544.8
Independent measurements behind it32
Cost per solved task$1.16$0.14
SourceOpenRouter listingOpenRouter listing

Questions

Is Claude Sonnet 4.5 better than GPT-5.4 Nano for coding?

Pick GPT-5.4 Nano for coding: it scores 44.8 on the Vibe Coding Index against 39.5 for Claude Sonnet 4.5, though on 2 benchmarks against 3. Pick Claude Sonnet 4.5 for a larger context window (1M against 400K tokens) and work measured by SWE-bench Verified (Vals AI) or LMArena Text: coding, where it leads.

Which is cheaper, Claude Sonnet 4.5 or GPT-5.4 Nano?

Claude Sonnet 4.5 costs $3.00 per million input tokens and $15.00 per million output tokens; GPT-5.4 Nano costs $0.20 and $1.25. Per solved SWE-bench Verified task, Claude Sonnet 4.5 costs $1.16 and GPT-5.4 Nano $0.14.

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

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

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

61 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-5.4 Nano'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-sonnet-4-5-vs-gpt-5-4-nano" title="Claude Sonnet 4.5 vs GPT-5.4 Nano, 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-sonnet-4-5-vs-gpt-5-4-nano">LLMBenchmark.ai, Claude Sonnet 4.5 vs GPT-5.4 Nano</a></p>