← Back to Calculator

Claude Sonnet 4.6 vs GPT-5.4

Detailed comparison of API pricing, technical specifications, and benchmark scores. Updated 2026-06-29.

Cost at a Glance

Claude Sonnet 4.6 is 1.1× more expensive than GPT-5.4 (5.6% savings if you switch).

At 5M input + 2M output tokens per month:

Claude Sonnet 4.6$45.00/movsGPT-5.4$42.50/mo

Choosing GPT-5.4 could save you $2.50/mo

Price Comparison (per 1M tokens)

Input (per 1M tokens)
$3.00vs$2.50
Output (per 1M tokens)
$15.00vs$15.00
Cache Write (per 1M tokens)
$3.75vs$3.13
Cache Read (per 1M tokens)
$0.30vs$0.25
Batch Input (per 1M tokens)
$1.50vs$1.25
Batch Output (per 1M tokens)
$7.50vs$7.50

Prices are per 1 million tokens. Actual costs depend on your monthly token volume. Use the calculator →

Specifications

Context Window
1Mvs1M
Max Output Tokens
128Kvs128K
Knowledge Cutoff
2026-03vs2025-12
Modalities
Text, ImagevsText, Image
Prompt Caching
YesvsYes
Batch API
YesvsYes
Thinking / Reasoning
YesvsNo

Benchmark Scores

SWE-bench Verified
79.6vs78.0
MMLU-Pro
85.2vs84.5
HumanEval
94.1vs93.0

Benchmark scores from official provider reports. Higher is better. Missing scores indicate the provider has not published that benchmark yet.

Use Cases

Claude Sonnet 4.6

codinggeneralfast

GPT-5.4

codinggeneralbalanced

About the Providers

Claude Sonnet 4.6 is developed by Anthropic. GPT-5.4 is developed by OpenAI. This is a cross-provider comparison between Anthropic and OpenAI models. For the most up-to-date pricing, always check the official API documentation from each provider.

Compare More AI Models