GPT 5.4 vs Claude 4 Sonnet pricing
Side-by-side token pricing for GPT 5.4 (OpenAI) and Claude 4 Sonnet (Anthropic), plus the total cost at three workload sizes so the crossover point is obvious. Prices refreshed 2026-09-13 13:40 UTC.
| Metric | GPT 5.4 | Claude 4 Sonnet |
|---|---|---|
| Input $/1M tokens | $2.5 | $3 |
| Output $/1M tokens | $15 | $15 |
| Cached input $/1M | $0.25 | $0.3 |
| Context window | 1.1M | 1M |
| Max output | 128K | 64K |
| Vision | yes | yes |
| Tool calling | yes | yes |
| Cache pricing | yes | yes |
Total cost by workload
| Workload | GPT 5.4 | Claude 4 Sonnet | Cheaper |
|---|---|---|---|
| 1M tokens in · 300K out | $7 | $7.5 | GPT 5.4 (7% less) |
| 10M tokens in · 3M out | $70 | $75 | GPT 5.4 (7% less) |
| 100M tokens in · 30M out | $700 | $750 | GPT 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 4 Sonnet is the one to benchmark if you need vision, reasoning depth, or a different quality profile.
Frequently asked
› Is GPT 5.4 cheaper than Claude 4 Sonnet?
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.