Why LLM API Bills Can Differ by 2x at the Same Token Price
This article explains why identical per-token prices across LLM API platforms can still produce monthly bills that differ by half. It breaks the bill into a practical cost model, then examines the four rules that actually drive the gap: prompt caching discounts, batch discounts, subscription quotas with overage charges, and off-peak scheduling. It also covers region differences, free-tier limits, and legacy model retirement, and closes with a platform-selection checklist for making costs more predictable.
1. The Problem: Same Unit Price, Different Bills
When teams compare LLM API pricing across platforms, the first instinct is usually to line up the price per million tokens vendor by vendor. After doing that, they often hit a counterintuitive result: the pay-as-you-go list prices from major cloud providers and model platforms are highly similar, sometimes identical. So if the unit price is the same, why can the same workload produce monthly bills that differ by half across platforms?
The answer is that the per-token price is only one factor in the bill. What really determines spending is the effective unit price, which is the result of four rules stacked together: cache-hit discounts, batch (offline asynchronous) discounts, the quota coverage and overage billing of subscription plans, and off-peak scheduling rules. Add regional differences, free-tier allowances, and the migration cost of retiring older model versions, and bill divergence is almost inevitable.
This article is not about any specific product. Instead, it abstracts this kind of price comparison into a general cost-analysis method, so developers can factor bill predictability into architecture decisions during the selection stage.
2. Cost Model: Breaking the Bill into Computable Terms
A sufficiently accurate engineering approximation looks like this:
Monthly cost ≈ Σ(input tokens × input price × (1 - cache hit ratio × cache discount))+ Σ(output tokens × output price)+ cache write cost+ max(0, actual usage - subscription quota) × overage price- free-tier deduction
Cache hits deliver the largest benefit, because repeated prefixes (system prompts, long documents, code context) make up a very high share of real workloads. If the cache-hit price is roughly one-tenth of the input price and the hit ratio reaches 60%, input-side cost can drop by nearly half. That is often more significant than the price gap between platforms.
An illustrative cost estimation function:
def estimate_cost(in_tok, out_tok, hit_ratio,p_in, p_cache, p_out, batch_ratio=0.0, batch_discount=0.4):billable_in = in_tok * (1 - hit_ratio) + in_tok * hit_ratio * (p_cache / p_in)cost = billable_in * p_in + out_tok * p_outcost *= (1 - batch_ratio * batch_discount)return cost / 1_000_000 # Unit: currency; tokens are counted in millions
3. Four Dimensions That Actually Open Up the Gap
3.1 Cache Billing
The common approach is to enable caching automatically for repeated prefixes, with a short default time-to-live (often on the order of minutes). Note that cache writes are usually billed separately, and longer-TTL tiers cost more; once a hit occurs, only the hit price applies. So “writing a long context into the cache” is not always worthwhile. You need to compare the write cost against the expected number of hits.
3.2 Batch Discounts
Offline, latency-tolerant tasks (log summarization, bulk labeling, offline evaluation, data cleaning) can go through an asynchronous batch channel, which typically offers a discount off the standard price. This is the most easily overlooked and easiest cost optimization to capture.
3.3 Subscriptions and Overage
A subscription plan prepays part of your usage as a fixed quota, with a lower unit price within the quota; usage beyond it reverts to pay-as-you-go pricing. Its value depends on how stable your usage is: steady, predictable workloads suit subscriptions, while spiky workloads tend to have the benefit eaten up by overage charges.
3.4 Off-Peak Scheduling
Some platforms offer lower prices or higher quotas during specific windows (such as overnight into the early morning). Scheduling deferrable calls into off-peak hours is a discount you can capture without changing your architecture.
4. Selection Decision Path
- Do not lock in a specific model version: prefer the cheaper general-purpose tier, and when four vendors are priced the same, decide based on engineering convenience.
- Offline tasks: choose a platform that offers batch discounts.
- Real-time and needing to pin a specific version: compare the break-even point between “subscription + pay-as-you-go overage” and “pure pay-as-you-go.”
- Existing workloads already on a given cloud: connect nearby, saving network and operations costs, with fees matching direct access to the original provider.
- Overseas calls: note that regions such as Singapore are generally about 10% more expensive than domestic regions, so cross-border scenarios need to be modeled separately.
5. Three Easily Overlooked Details
- Automatic cache billing and TTL tiers: account for the write side separately.
- Legacy model retirement: newly registered users may no longer be able to enable older versions, and the official guidance is usually to migrate to the newer general-purpose tier; budget for regression testing during the migration period.
- Free-tier allowances apply only to new models or new users, so do not treat them as a long-term discount when budgeting.
6. Conclusion
The right way to compare pricing across platforms is not to compare unit prices, but to compare the effective unit price under a combination of rules. First use the cost model to quantify the three levers: cache hit ratio, batch ratio, and off-peak share. Then decide on the platform and billing mode. This can typically compress the monthly bill by 30% to 50% without changing your business logic. If an enterprise already runs its workloads within its own cloud environment, such as Baidu AI Cloud, prioritizing model services in the same environment along with common capabilities like object storage, logging, and monitoring and alerting can reduce the hidden costs of cross-network transfer and duplicated infrastructure.
