Pricing at a glance
| Metric | Claude Sonnet 4.6 | GPT-5.4 |
|---|---|---|
| Provider | Anthropic | OpenAI |
| Tier | Balanced | Multimodal |
| Input / 1M tokens | $3.00 | $2.50 |
| Output / 1M tokens | $15.00 | $15.00 |
| Cached input / 1M | $0.30 | $1.25 |
| Context window | 200,000 tokens | 128,000 tokens |
Cost per 1,000 calls, by workload
Output tokens cost more than input tokens, so the “cheaper” model flips depending on how much your workload reads versus writes. Each row prices 1,000 identical calls:
| Workload | Claude Sonnet 4.6 | GPT-5.4 | Cheaper |
|---|---|---|---|
| Short chat turn1K in / 500 out — a typical assistant reply | $10.50 | $10.00 | GPT-5.4 (−5%) |
| RAG answer8K in / 800 out — retrieved context + grounded answer | $36.00 | $32.00 | GPT-5.4 (−11%) |
| Long-doc summary50K in / 2K out — summarize a long document | $180.00 | $155.00 | GPT-5.4 (−14%) |
| Bulk classification2K in / 50 out — label/route at high volume | $6.75 | $5.75 | GPT-5.4 (−15%) |
These are list prices for the exact token mix shown. Model your real traffic — your own token counts, prompt-cache hit rate, and monthly volume — in the LLM API Cost Calculator, or see where both land among all 25 models in the 2026 LLM API Pricing Study.
The verdict
On the workloads above, GPT-5.4 is the cheaper option more often (4 of 4 task shapes), driven mainly by its lower output rate ($15.00 vs $15.00 per 1M output). A simple chat turn at 1,000 calls is $10.00 on GPT-5.4 versus $10.50 on the other — a 5% difference that compounds at scale.
Don't ignore prompt caching
If your prompts share a large fixed prefix (a system prompt, retrieved docs, few-shot examples), caching changes the math. Claude Sonnet 4.6 bills cached input at $0.30/1M (vs $3.00 fresh), and GPT-5.4 at $1.25/1M (vs $2.50 fresh). For input-heavy, repetitive traffic that can swing the cheaper choice — the calculator lets you set a cache-hit ratio.
Cost is one axis — not the whole decision
This page compares price only. It does not rank quality, latency, tool-use reliability, or rate limits, which differ between Claude Sonnet 4.6 and GPT-5.4 and often matter more than a few dollars per thousand calls. Use cost to size the budget, then validate the cheaper model on your own evals before you switch.
FAQ
Is Claude Sonnet 4.6 or GPT-5.4 cheaper?
GPT-5.4 wins on most workloads we model, e.g. $10.00 vs $10.50 per 1,000 short chat turns. Your real answer depends on your input/output ratio — output tokens are the expensive half.
Are these the official prices?
They reflect each provider's published list pricing, verified 2026-05-28, sourced from Anthropic and OpenAI. Enterprise and committed-use discounts can lower them — always confirm on the provider's pricing page before budgeting.
Pricing verified 2026-05-28. Independent analysis, not affiliated with Anthropic or OpenAI. Confirm live rates on each provider's official pricing page.