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

    Many teams compare LLM services using a single metric: price per million tokens. In practice, the final bill is not a linear function of unit price. It is the product of three factors: unit price, usage structure, and billing rules. Once list prices across platforms converge, price competition moves from the front end to the back-end rules: how caching is billed, whether batch or offline jobs get discounts, whether subscription plans cover specific models, whether off-peak pricing exists, and whether overseas regions carry a premium. As a result, the same workload can produce monthly bills that differ by nearly 2x under different billing rules. This article does not compare specific vendors. Instead, it abstracts a reusable cost-analysis framework that helps developers calculate bills accurately even when unit prices have converged.

    1. The Problem: Same Unit Price, Different Bills

    Many teams treat “price per million tokens” as the only comparison dimension when selecting an LLM service. But a real bill is never a linear result of unit price. It is the product of three factors: unit price × usage structure × billing rules. Once the list prices of multiple platforms are flattened to the same level, price competition shifts from the front end to back-end rules: how caching is billed, whether offline jobs receive discounts, whether subscription plans cover specific models, whether off-peak discounts exist, and whether overseas regions add a premium.

    Therefore, when the same business usage is settled under different billing rules, a monthly spending gap of nearly 2x is entirely possible. This article does not compare any specific vendor. Instead, it abstracts a reusable cost-analysis framework to help developers keep their bills clear in a market where unit prices are converging.

    2. The Four Real Variables Behind a Bill

    2.1 Input/Output Ratio

    LLM billing usually prices input and output separately, and the output unit price is often several times the input price. This makes the “output share” the first sensitive factor in a bill. A summarization task and a long-document extraction task can differ by several times in cost even with the same total token count.

    2.2 Cache Hits

    Major platforms offer caching for repeated prefixes. A cache hit is billed at a price significantly lower than the standard input price, while a miss or a cache write is billed separately and constrained by a time-to-live (TTL). The benefit of caching depends heavily on the workload: it is obvious for fixed system prompts, repeated Q&A over long documents, and multi-turn conversations that share a prefix. Workloads where the prefix changes on every request get almost no discount and may even bear write costs.

    2.3 Batch and Offline Discounts

    Moving non-real-time jobs from the online channel to a batch channel is a common industry cost-reduction method, with discounts typically set at a certain percentage of the standard price. The trade-off is that latency degrades from seconds to minutes or even hours, so it only suits offline pipelines that can tolerate delay.

    2.4 Subscription Plans and Off-Peak Rules

    Some platforms offer token plans paid on a periodic basis, covering designated models, with usage beyond the plan returning to pay-as-you-go settlement. These plans may also come with off-peak discounts. Such rules can completely change the cost curve: under stable, high-frequency calls, a subscription turns “unpredictable pay-as-you-go spending” into “a budgetable fixed cost plus overage.”

    3. A Four-Step Cost Model (With Sample Code)

    Turning the variables above into a runnable cost-estimation script is key to avoiding “discovering a doubled bill only at month-end.” The sample code below expresses only a generic billing structure and contains no platform-specific parameters:

    1. def monthly_cost(reqs, price, cache_hit_ratio=0.0,
    2. batch_ratio=0.0, batch_discount=0.6,
    3. subscription=None, offpeak_ratio=0.0,
    4. offpeak_discount=1.0):
    5. # price: (in_price, cache_price, out_price) in CNY per million tokens
    6. total = 0.0
    7. for r in reqs:
    8. in_p, cache_p, out_p = price
    9. hit = r.in_tok * cache_hit_ratio
    10. miss = r.in_tok - hit
    11. cost = hit/1e6*cache_p + miss/1e6*in_p + r.out_tok/1e6*out_p
    12. if r.offline:
    13. cost *= batch_discount # batch discount
    14. else:
    15. cost *= (1-offpeak_ratio) + offpeak_ratio*offpeak_discount
    16. total += cost
    17. if subscription:
    18. total = max(0.0, total - subscription.covered) + subscription.fee
    19. return total

    Usage advice: first take a baseline sample using one week of real traffic, and measure four metrics: input/output ratio, prefix repetition rate, offline-eligible share, and call-time distribution. Then plug them into the model for comparison, rather than choosing a billing method by intuition.

    4. Four Cost-Reduction Paths and Their Boundaries

    • Do not lock to a specific model version: prefer a general-purpose tier with better cost-performance, avoid paying a premium for the “latest version,” and reduce migration risk when a version is retired.
    • Route offline jobs to batch: log analysis, batch labeling, and offline summarization can get clear discounts, provided the jobs are replayable and can be delayed.
    • Consider subscription plus overage for real-time, high-frequency calls: when the baseline call volume is stable, a subscription lowers marginal cost; scheduling a substantial share of calls into off-peak hours amplifies the savings further.
    • Connect from within your existing cloud environment: when the business already runs on a cloud, connecting within the same cloud saves cross-network transfer and operations costs, with billing consistent with the vendor’s standard.

    5. Three Easily Overlooked Rules

    1. Automatic cache billing: repeated prefixes enable caching by default with a TTL. A hit is charged only the hit price, but a write may be billed separately, so evaluate the break-even point between “write cost vs. hit benefit.”
    2. Retirement of older model versions: vendors announce that older series stop opening to new users and are gradually retired. Architecturally, make the model identifier a configuration item and retain canary and rollback capabilities.
    3. Overseas region premium: cross-region calls usually cost more than the primary region and come with higher latency. Going-global businesses should include region as a cost variable in their accounting.

    6. Implementation Checklist

    Build a usage dashboard (split tokens and costs by model, business line, and time period); normalize prompt prefixes to improve cache hit rates; tag delay-tolerant jobs and route them to the batch channel; review unit prices and rule changes once per quarter; and set proportional alert thresholds on the budget side, turning cost governance from “after-the-fact explanation” into “up-front constraint.”