Skip to content
llmmodels

Claude Sonnet 5 vs GPT-5.4

GPT-5.4 wins 5 of 6 benchmarks both models report and has a higher Epoch Capabilities Index (157.9 vs 156.9). Claude Sonnet 5 is about 1.4× cheaper on a blended (3:1 input:output) token price. GPT-5.4 has the larger context window (1.1M vs 1M).

SpecClaude Sonnet 5GPT-5.4
ProviderAnthropicOpenAI
ReleasedJun 29, 2026 (better)Mar 5, 2026
TypeReasoning LLMReasoning LLM
Parameters——
Context window1M1.1M (better)
Max output125K125K
Input price / 1M$2 (better)$2.50
Output price / 1M$10 (better)$15
Input modalitiestext, image, pdf, filetext, image, pdf, file
Open weightsNoNo
LicenseProprietaryProprietary
Reasoning modeYesYes
Tool callingYesYes
API providers56 (better)51
Epoch Capabilities Index156.9157.9 (better)
GPQA Diamond90.5%93.3% (better)
Humanity's Last Exam—36.2%
SWE-bench Verified—76.9%
Terminal-Bench—81.8%
WebDev Arena1537 (better)1463
OTIS Mock AIME94.7%97.8% (better)
FrontierMath65.6%78.6% (better)
ARC-AGI-2—74.0%
SimpleQA Verified33.7%45.1% (better)
METR Time Horizon—342 min

Cost example

For a workload of 10M input + 2M output tokens per month: Claude Sonnet 5 costs $40.00 and GPT-5.4 costs $55.00 at list price (Anthropic / openai pricing).

About Claude Sonnet 5

Claude Sonnet 5 is a proprietary reasoning llm from Anthropic, released Jun 29, 2026. It has a 1M-token context window and accepts text, image, pdf, file input. API pricing starts at $2 per million input tokens and $10 per million output tokens. It is available from 56 API providers. It scores 156.9 on the Epoch Capabilities Index. Full Claude Sonnet 5 specs →

About GPT-5.4

GPT-5.4 is a proprietary reasoning llm from OpenAI, released Mar 5, 2026. It has a 1.1M-token context window and accepts text, image, pdf, file input. API pricing starts at $2.50 per million input tokens and $15 per million output tokens. It is available from 51 API providers. It scores 157.9 on the Epoch Capabilities Index. Full GPT-5.4 specs →

Compare other models

FAQ

Which is better, Claude Sonnet 5 or GPT-5.4?

GPT-5.4 wins 5 of 6 benchmarks both models report and has a higher Epoch Capabilities Index (157.9 vs 156.9). Claude Sonnet 5 is about 1.4× cheaper on a blended (3:1 input:output) token price. GPT-5.4 has the larger context window (1.1M vs 1M).

Is Claude Sonnet 5 cheaper than GPT-5.4?

Claude Sonnet 5 costs $2 input / $10 output per 1M tokens; GPT-5.4 costs $2.50 / $15. Claude Sonnet 5 is cheaper overall.

Which has a bigger context window?

Claude Sonnet 5: 1,000,000 tokens. GPT-5.4: 1,050,000 tokens.

Are Claude Sonnet 5 and GPT-5.4 open source?

Claude Sonnet 5 is proprietary; GPT-5.4 is proprietary.