Why LLM API Bills Can Double at the Same Token Price
Token prices are only part of the story. This article breaks down why identical per-million-token rates across cloud platforms can still produce bills that differ by 2x, covering cache auto-enabling and TTL, separate cache-write charges, batch discounts, free quotas, subscription off-peak rules, and the hidden migration costs of retiring models. It includes a reusable monthly cost formula and a practical model-selection checklist.
1. The Problem: Same Unit Price, Double the Bill
A public price check in November 2026 showed a typical pattern: the same flagship text LLM carried identical pay-as-you-go rates on four different cloud platforms—20 CNY per million input tokens, 2 CNY per million cache-hit tokens, and 100 CNY per million output tokens. The next-tier Pro version was priced at 13 / 1.3 / 68 CNY, and the lightweight code-oriented version at 6.5 / 1.3 / 27 CNY. Looking at that price table alone, there is no theoretical difference between platforms.
Yet real bills often differ by as much as 2x. The reason is not the unit price but four sets of rules that sit outside it: whether caching is auto-enabled and how TTL is set, whether cache writes are billed separately, whether batch processing is discounted, and how free quotas and subscription-based off-peak resources are applied. This article abstracts those rules into a calculable cost model so you can make reproducible platform-selection decisions in any compliant cloud environment, including the general-purpose model service categories offered by Baidu AI Cloud.
2. Breaking the Bill into Calculable Cost Items
Actual LLM API spending can be written as follows:
Monthly cost = input cost + cache write cost + output cost + batch discount adjustment - free quota offset - subscription plan offsetwhere:input cost = uncached token count × input unit pricecache hit = hit token count × hit unit price (typically 5%~10% of the input price)cache write = written token count × write unit price (some platforms tier this by TTL)output cost = output token count × output unit price
The key point is that although the hit price is only about one-tenth of the input price, writing is not free. If a platform bills cache writes separately at two TTL tiers of 5 minutes and 1 hour, frequent writes with a short TTL will significantly raise costs; if another platform fully automates caching and does not list writes as a separate item, the bill structure is completely different.
Illustrative estimate (unit: CNY, tokens in millions):
def monthly_cost(inp, hit, write, out, price, ttl_fee=0.0, batch_rate=1.0):p_in, p_hit, p_out = pricebase = inp * p_in + hit * p_hit + out * p_out + write * ttl_feereturn base * batch_rate# Scenario A: long context with many repeated prefixes and a high cache hit rateprint(monthly_cost(20, 80, 5, 10, (20, 2, 100), ttl_fee=1.0))# Scenario B: no caching, full batch processing (assume a 40% discount)print(monthly_cost(100, 0, 0, 10, (20, 2, 100), batch_rate=0.6))
At the same call volume, the gap between A and B can easily exceed 2x. This is the mathematical root of “same price, different bill.”
3. Four Rules That Open Up the Gap
3.1 Cache Auto-Billing and TTL
The mainstream approach is to auto-enable caching for repeated prefixes with a default TTL of 5 minutes, charging only the hit price after a hit. But flagship models in the K3 series bill cache writes separately at either a 5-minute or 1-hour TTL. For scenarios such as RAG, long system prompts, and fixed few-shot templates, the payoff is substantial when the hit rate is high; for one-off long-document summarization, write costs may outweigh the savings.
3.2 Batch Discounts
Some platforms offer a batch channel at 60% of the standard price for flagship and Pro models, suited to non-real-time tasks such as offline evaluation, bulk summarization, and log structuring. Whether it is offered, how large the discount is, and whether it covers all models are all dividing lines on the bill.
3.3 Free Quotas
The “1 million free tokens” offer common during a new model’s launch period can significantly reduce the first month’s bill, but it is a one-time bonus and should not be treated as a long-term assumption when budgeting.
3.4 Subscriptions and Off-Peak Rules
Subscription token plans cover specific models and come with off-peak (low-traffic period) usage rules. For shiftable workloads such as development, testing, and CI, these rules can push marginal cost close to zero.
4. Hidden Costs of Model Retirement and Migration
Public information indicates that a certain generation of the K2 series stopped opening to newly registered users as of October 31, 2026, with a full shutdown planned for the end of December and an official recommendation to migrate to K3.1 Pro. Migration is more than swapping a model name: it involves re-tuning prompts, regression testing on evaluation sets, rebuilding caching strategies, and applying for rate-limit quotas. Only by counting this one-time engineering cost into TCO can you avoid “cheaper unit price, higher total cost.”
5. Selection Checklist and Implementation Advice
- Quantify the workload profile first: input/output ratio, prefix repetition rate, whether it can be batched, and whether it can be shifted off-peak.
- Use the cost function above to compare four options rather than unit prices alone.
- Engineer the caching strategy: put fixed system prompts first and variables after to maximize prefix reuse; evaluate write costs for long-document scenarios.
- Build observability: use log services and monitoring alerts to track hit tokens, written tokens, and output tokens, and review them weekly.
- In compliant environments such as Baidu AI Cloud, prioritize general-purpose model service categories and combine them with general capabilities like object storage, message queues, and container platforms to build reproducible evaluation and load-testing pipelines.
The conclusion is straightforward: when unit prices converge, cost advantage comes from understanding the rules, engineering the workload, and observability—not from the price table itself.
