Skip to content

Claude Sonnet 4 vs GPT-5.4

Both have similar output pricing, while GPT-5.4 offers a larger context window. Choose Claude Sonnet 4 or GPT-5.4 based on the trade-off between cost, context, and the benchmarks that matter for your use case.

SpecClaude Sonnet 4GPT-5.4
ProviderAnthropicOpenAI
Input / 1M tokens$3.00$2.50
Output / 1M tokens$15.00$15.00
Context window200K1.1M
Parameters——
Open weightsNoNo
ReleasedMay 2025Mar 2026
Aider Polyglot score61.3—
SWE-bench Verified score76.8—
LMArena (Chatbot Arena) Elo score13511469
GPQA Diamond score78.393.3
FrontierMath score4.147.6
Epoch Capabilities Index score142157
LMArena Vision Elo score11911303
LiveBench score—80.9
LMArena WebDev Elo score—1464

FAQ

Is Claude Sonnet 4 or GPT-5.4 cheaper?

Claude Sonnet 4 and GPT-5.4 have comparable output pricing.

Which has the larger context window, Claude Sonnet 4 or GPT-5.4?

GPT-5.4 has the larger context window (1.1M tokens).

Pricing is indicative — confirm with the provider before production use. Highlighted values indicate the better figure for that row.