Why LLM API Monthly Bills Can Differ by 2x at the Same Token Price

    This article explains why monthly LLM API bills can vary by as much as 2x even when published per-token prices are identical across cloud platforms. It breaks down the four-layer billing structure—pay-as-you-go, prompt caching, batch processing, and subscription/off-peak pricing—and shows how input, cache-hit, cache-write, and output token ratios drive real costs. It also covers overlooked rules such as automatic cache billing, legacy model retirement, and pricing disclosure gaps, then offers a reusable cost-modeling approach and a practical cost-governance checklist.

    1. The Symptom: Identical Unit Prices, Bills That Differ by 2x

    During a cross-platform review in November 2026, one general-purpose LLM family listed exactly the same pay-as-you-go prices on four cloud platforms: the flagship tier at 20 CNY per million input tokens, 2 CNY per million cache-hit tokens, and 100 CNY per million output tokens; the sub-flagship tier at 13 / 1.3 / 68 CNY; and the lightweight code tier at 6.5 / 1.3 / 27 CNY (source: public pricing pages on each platform, verified on 2026-11-17, in CNY per million tokens). One platform did not list a cache-hit price on its pricing page. This is a difference in disclosure, and it should not be interpreted as “no caching capability” or “free caching.”

    If unit prices are identical, why can real monthly bills differ by half? The answer is not in the price table but in billing dimensions and call patterns. Look at the bill as the following formula and the problem becomes clear:

    1. Monthly bill = Σ(input tokens × input price)
    2. + Σ(cache-hit tokens × hit price)
    3. + Σ(cache-write tokens × write price)
    4. + Σ(output tokens × output price)
    5. - batch/off-peak discounts
    6. - free quotas and credits

    Unit price is only three of the coefficients. What really determines the magnitude is the ratio of the four token components, and whether you take advantage of discounts and quotas.

    2. The Four-Layer Billing Structure: Where Bill Differences Really Come From

    2.1 Pay-as-you-go: Same Unit Price, Different Structure

    Input and output are usually priced at different rates, and output is often significantly more expensive. This makes the “output ratio” the most sensitive lever: for the same 10 million tokens of call volume, raising the output ratio from 10% to 30% can increase the bill several times over. When doing cost attribution, the first step is always to measure the proportions of input, output, and cache tokens—not to stare at unit prices.

    2.2 Caching: Hit Price and Write Price Are Two Separate Charges

    Mainstream implementations automatically enable caching for repeated prefixes, with a default time-to-live (TTL) commonly set to 5 minutes. For long-context scenarios, you can request a 1-hour TTL, but cache writes are billed separately. After a hit, only the hit price is charged; on a miss, the standard input price applies. The most easily overlooked point here is that caching is not free acceleration—it is a trade of “paying a write fee in exchange for a hit discount.” When a repeated prefix appears infrequently or at intervals longer than the TTL, the write fee is paid for nothing.

    A rough break-even judgment:

    1. Let standard input price be P, hit price H, write price W (CNY per million tokens)
    2. A single request hit saves (P - H) × L
    3. If the prefix is reused N times within the TTL, net benefit ≈ (N-1) × (P-H) × L - W × L
    4. Only enable long-TTL caching when net benefit > 0

    The engineering implication is direct: stable prefixes such as system prompts, tool definitions, and long documents are suitable for caching; user input that changes every turn is not.

    2.3 Batch Processing: Trading Latency for Price

    Some platforms offer a discount off the standard price for asynchronous batch processing (for example, the two flagship tiers billed at 60% of the standard price), but queueing and return latency are uncontrollable. Offline batch jobs, log analysis, and bulk summarization are suitable for batch processing; online conversations and real-time risk control are not. Whether to use batch processing is essentially trading SLA for cost.

    2.4 Subscription and Off-Peak: Moving Volatile Load into Fixed Cost

    When a platform offers token-based subscription packages with off-peak (low-traffic period) rules, the cost model shifts from “pure variable cost” to a “fixed + variable” mix. Covering stable load with a subscription and sending burst traffic to pay-as-you-go is a common cost-structure optimization. However, subscription packages usually have validity periods and coverage limits, so they must be sized against actual monthly usage to avoid overbuying for a discount.

    In addition, free quotas during a new model’s launch period (such as million-token grants) can only offset first-month or initial validation costs and should not be counted in long-term unit economics.

    3. Three Overlooked Rules That Often Decide the Bill

    • Automatic cache billing: Repeated prefixes are enabled by default with a default TTL of 5 minutes. For K3-class models, cache writes are billed separately by tier at 5 minutes or 1 hour, and only the hit price is charged after a hit. If prefix stability is not explicitly managed, write fees become a hidden expense.
    • Legacy model retirement: The previous-generation series to which a lightweight code tier belongs stopped opening to newly registered users on October 31, 2026, and is planned to be fully retired by the end of December, with the official recommendation to migrate to the sub-flagship tier. Migration changes both the unit-price structure and the cache hit rate, so costs must be recalculated.
    • Disclosure differences: Some platforms do not list a cache-hit price on their pricing pages. For cross-platform comparisons, rely on actual bills or ticket confirmation, and avoid misreading “not listed” as “zero cost.”

    4. A Reusable Cost-Estimation Method

    It is better to build cost modeling as code rather than a spreadsheet:

    1. def monthly_cost(reqs, price):
    2. # price: dict, in CNY per million tokens
    3. total = 0.0
    4. for r in reqs:
    5. total += r["in"] * price["in"] / 1e6
    6. total += r["hit"] * price["hit"] / 1e6
    7. total += r["write"] * price["write"]/ 1e6
    8. total += r["out"] * price["out"] / 1e6
    9. if r.get("batch"):
    10. total *= 1 # apply the platform's batch discount rules here
    11. return total

    The key is to instrument and collect the three components—hit / write / out—from day one. Without component-level data, any discussion of “which platform is cheaper” lacks a basis.

    5. Cost-Governance Checklist

    1. Prefix governance: Fix the order of system prompts and tool definitions, and avoid placing dynamic fields first, which invalidates the cache.
    2. TTL selection: Use a short TTL for high-frequency, short-interval reuse; use a long TTL for low-frequency long documents, but calculate break-even first.
    3. Output compression: Constrain output length and degree of structure. Output has the highest unit price, so compression yields the most direct savings.
    4. Load tiering: Send online traffic to pay-as-you-go, offline traffic to batch processing, and stable baselines to subscription coverage.
    5. Generation migration: Complete evaluation and migration before the legacy model is retired, avoiding quality fluctuations from last-minute switching.
    6. Observability: Integrate monitoring, alerting, and logging services, and set threshold alerts for each type of token usage.

    6. Conclusion

    Converging unit prices are a signal of market maturity, and competition is shifting toward billing rules and engineering fit. Once token structure, caching strategy, batch processing, and subscription combinations are built into architecture design, a 2x difference in monthly bills is no longer mysterious. If an enterprise wants to implement similar governance on Baidu AI Cloud, it can build a cost-observability system on top of general-purpose container platforms, logging services, and monitoring and alerting capabilities, making decisions with data rather than price tables.