anthropic vs openai · list prices · table 2026-10-26

claude-sonnet-5 vs gpt-5.4

Fourteen priced metrics for the same 2,000-in / 300-out call, with and without provider caching, and what TokenZero's cascade would do with the pair.

At list prices as of 2026-10-26, claude-sonnet-5 costs $3.04 per million blended tokens on a 2,000-in / 300-out call against $4.13 for gpt-5.4, 26.3% less. With the static prefix cached both drop further: $4.30 versus $6.13 per thousand calls. TokenZero routes only prompts its classifier scores simple and holds a 99.8% parity floor.

· Source: provider list prices verified in pricing table 2026-10-26; costs computed by the same code that signs TokenZero receipts

Runs the four engines on a canned claude-sonnet-5 request and signs a real receipt. $0 provider spend.

At a glance

Cheaper per blended token
claude-sonnet-5 by 26.3% (computed)
claude-sonnet-5 blended $/1M
$3.04 (computed)
gpt-5.4 blended $/1M
$4.13 (computed)
Input $/1M
$2.00 vs $2.50
Output $/1M
$10.00 vs $15.00
Cached input $/1M
$0.200 vs $0.250
Cache discount
90% vs 90% (computed)
Monthly at 100k calls
$700 vs $950 (computed)
Saved per 1M calls
$2,500 (computed)
Providers
anthropic vs openai
Lifecycle
active, no retirement announced vs active, no retirement announced
Parity floor for routing
99.8% (shadow-eval breaker)

claude-sonnet-5 vs gpt-5.4: list prices and the same workload on both (USD, table 2026-10-26)

Metricclaude-sonnet-5gpt-5.4Delta
Provider · tieranthropic · midopenai · frontierdifferent providers
Input $/1M$2.00$2.5020% gap
Output $/1M$10.00$15.0033.3% gap
Cached input $/1M$0.200$0.25090% / 90% off input
Cache write $/1M$2.500no surcharge
Minimum cacheable prefix1024 tokens1024 tokens
Effective blended $/1M (2,000 in / 300 out)$3.04$4.13claude-sonnet-5 26.3% less
Per call$0.00700$0.00950$0.00250
Per month at 100k calls$700$950$250
…with the 1,500-token prefix cached$430$613$183
Long-context thresholdsingle tier272,000 tokens ($5.00 in / $22.50 out above)
Processing tiersspeed: fast 2xflex 0.5x · fast 2x
Lifecycleactive, no retirement announcedactive, no retirement announced
Cheaper sibling (cascade target)claude-haiku-5-5gpt-5.4-mini
TokenZero cascade recommendationnone (cascade stays within one provider; cross-provider moves only on failover)$2,500 saved per 1M calls if every call moved; $1,000 at a 40% simple-prompt share99.8% parity floor, breaker on

Use either model through TokenZero

ANTHROPIC_BASE_URL=https://tokenzero.sh
OPENAI_BASE_URL=https://tokenzero.sh/v1
# keep your own keys; cache formatting on, routing advisory, signed receipt per call

Free up to $500/month of routed spend; paid plans take 15% of verified savings with a 3x-ROI-or-$0 rule.

What is not on this page

Third-party quality scores (coding ELO, extraction accuracy, reasoning benchmarks) and per-model latency are not shown because TokenZero does not measure them; the numbers above are prices and the arithmetic on them. The latency benchmark shows what the gateway does measure.

Questions people ask

Which is cheaper, claude-sonnet-5 or gpt-5.4?

claude-sonnet-5. At list prices as of 2026-10-26 it costs $3.04 per million blended tokens versus $4.13 for gpt-5.4, a 26.3% gap on a 2,000-input / 300-output call. Per month at 100,000 calls that is $700 versus $950.

How much does prompt caching change the claude-sonnet-5 vs gpt-5.4 gap?

Cached input costs $0.200 on claude-sonnet-5 and $0.250 on gpt-5.4 per million. With a 1,500-token static prefix cached, 100,000 calls cost $430 and $613 respectively; TokenZero's formatter places the breakpoints and sets prompt_cache_key automatically.

Can TokenZero route gpt-5.4 traffic to claude-sonnet-5 safely?

Not automatically: cascade routing stays inside one provider so the request shape, tools and keys are unchanged. Cross-provider moves happen only on failover when you name the fallback model and key. Use the calculator to price a manual migration of the workload.

Is claude-sonnet-5 or gpt-5.4 being retired?

claude-sonnet-5: active, no retirement announced. gpt-5.4: active, no retirement announced. TokenZero audits flag retired ids and the gateway warns in X-TokenZero-Warning with the provider's replacement.

Related

Price your own workload on claude-sonnet-5 and gpt-5.4

Cut your gpt-5.4 spend automatically: swap base_url in 30 seconds, keep your key, get a signed receipt per call.Start free