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

gpt-5.4-mini vs grok-4.7

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, gpt-5.4-mini costs $1.24 per million blended tokens on a 2,000-in / 300-out call against $2.52 for grok-4.7, 50.9% less. With the static prefix cached both drop further: $1.84 versus $3.55 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 gpt-5.4-mini request and signs a real receipt. $0 provider spend.

At a glance

Cheaper per blended token
gpt-5.4-mini by 50.9% (computed)
gpt-5.4-mini blended $/1M
$1.24 (computed)
grok-4.7 blended $/1M
$2.52 (computed)
Input $/1M
$0.75 vs $2.00
Output $/1M
$4.50 vs $6.00
Cached input $/1M
$0.075 vs $0.500
Cache discount
90% vs 75% (computed)
Monthly at 100k calls
$285 vs $580 (computed)
Saved per 1M calls
$2,950 (computed)
Providers
openai vs xai
Lifecycle
active, no retirement announced vs active, no retirement announced
Parity floor for routing
99.8% (shadow-eval breaker)

gpt-5.4-mini vs grok-4.7: list prices and the same workload on both (USD, table 2026-10-26)

Metricgpt-5.4-minigrok-4.7Delta
Provider · tieropenai · fastxai · frontierdifferent providers
Input $/1M$0.75$2.0062.5% gap
Output $/1M$4.50$6.0025% gap
Cached input $/1M$0.075$0.50090% / 75% off input
Cache write $/1Mno surchargeno surcharge
Minimum cacheable prefix1024 tokens1024 tokens
Effective blended $/1M (2,000 in / 300 out)$1.24$2.52gpt-5.4-mini 50.9% less
Per call$0.00285$0.00580$0.00295
Per month at 100k calls$285$580$295
…with the 1,500-token prefix cached$184$355$171
Long-context thresholdsingle tier200,000 tokens ($4.00 in / $12.00 out above)
Processing tiersflex 0.5x · fast 2xstandard only
Lifecycleactive, no retirement announcedactive, no retirement announced
Cheaper sibling (cascade target)—grok-4.3
TokenZero cascade recommendationnone (cascade stays within one provider; cross-provider moves only on failover)$2,950 saved per 1M calls if every call moved; $1,180 at a 40% simple-prompt share99.8% parity floor, breaker on

Use either model through TokenZero

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, gpt-5.4-mini or grok-4.7?

gpt-5.4-mini. At list prices as of 2026-10-26 it costs $1.24 per million blended tokens versus $2.52 for grok-4.7, a 50.9% gap on a 2,000-input / 300-output call. Per month at 100,000 calls that is $285 versus $580.

How much does prompt caching change the gpt-5.4-mini vs grok-4.7 gap?

Cached input costs $0.075 on gpt-5.4-mini and $0.500 on grok-4.7 per million. With a 1,500-token static prefix cached, 100,000 calls cost $184 and $355 respectively; TokenZero's formatter places the breakpoints and sets prompt_cache_key automatically.

Can TokenZero route grok-4.7 traffic to gpt-5.4-mini 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 gpt-5.4-mini or grok-4.7 being retired?

gpt-5.4-mini: active, no retirement announced. grok-4.7: 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 gpt-5.4-mini and grok-4.7

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