Price per 1M logo

GPT 5.4 vs Claude Sonnet 4 6 pricing

Side-by-side token pricing for GPT 5.4 (OpenAI) and Claude Sonnet 4 6 (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 4 6
Input $/1M tokens$2.5$3
Output $/1M tokens$15$15
Cached input $/1M$0.25$0.3
Context window1.1M1M
Max output128K128K
Visionyesyes
Tool callingyesyes
Cache pricingyesyes

Total cost by workload

WorkloadGPT 5.4Claude Sonnet 4 6Cheaper
1M tokens in · 300K out$7$7.5GPT 5.4 (7% less)
10M tokens in · 3M out$70$75GPT 5.4 (7% less)
100M tokens in · 30M out$700$750GPT 5.4 (7% less)

On blended cost (weighted 3:1 toward input), GPT 5.4 comes out cheaper by roughly 17% on input pricing. Pick GPT 5.4 when the workload is price-sensitive and its context window covers your prompts; Claude Sonnet 4 6 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 4 6

Frequently asked

Is GPT 5.4 cheaper than Claude Sonnet 4 6?

On input pricing, GPT 5.4 is cheaper ($2.5 vs $3 per 1M tokens). On blended cost the winner is GPT 5.4, 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.