Price per 1M logo

GPT 5.4 vs Claude Sonnet 5 pricing

Side-by-side token pricing for GPT 5.4 (OpenAI) and Claude Sonnet 5 (Anthropic), plus the total cost at three workload sizes so the crossover point is obvious. Prices refreshed 2026-09-13 13:40 UTC.

MetricGPT 5.4Claude Sonnet 5
Input $/1M tokens$2.5$2
Output $/1M tokens$15$10
Cached input $/1M$0.25$0.2
Context window1.1M1M
Max output128K128K
Visionyesyes
Tool callingyesyes
Cache pricingyesyes

Total cost by workload

WorkloadGPT 5.4Claude Sonnet 5Cheaper
1M tokens in · 300K out$7$5Claude Sonnet 5 (29% less)
10M tokens in · 3M out$70$50Claude Sonnet 5 (29% less)
100M tokens in · 30M out$700$500Claude Sonnet 5 (29% less)

On blended cost (weighted 3:1 toward input), Claude Sonnet 5 comes out cheaper by roughly 20% on input pricing. Pick Claude Sonnet 5 when the workload is price-sensitive and its context window covers your prompts; GPT 5.4 is the one to benchmark if you need vision, reasoning depth, or a different quality profile.

Full breakdown
GPT 5.4
Full breakdown
Claude Sonnet 5

Frequently asked

Is GPT 5.4 cheaper than Claude Sonnet 5?

On input pricing, Claude Sonnet 5 is cheaper ($2 vs $2.5 per 1M tokens). On blended cost the winner is Claude Sonnet 5, because output tokens are weighted differently for most workloads.

Which has the larger context window?

GPT 5.4 offers the larger context (1.1M tokens).

Do these prices include prompt caching?

Cached input is priced separately where a provider publishes a cache rate; the table above lists it per model so the comparison stays like-for-like.