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

    Many teams compare LLM inference costs by looking only at the per-million-token price. This article explains why monthly bills can still vary by nearly 2x across platforms with almost identical list prices, and shows how to build a workload profile, apply a portable cost model, and evaluate batch discounts, subscriptions, prefix caching, and region choices. It also covers call-level metering for cost attribution and common mistakes that quietly inflate spending.

    1. The Problem: Same Unit Price, Different Bills

    When evaluating LLM inference costs, many teams start by comparing the “price per million tokens.” But when the same usage is plugged into the pricing tables of several cloud platforms, a counterintuitive result often appears: the pay-as-you-go unit prices are almost identical, yet the monthly bill can differ by nearly 2x.

    The reason is not mysterious. The unit price is only one variable in the cost formula. What really determines the bill is the complete billing structure:

    1. Monthly bill = Σ(input tokens × input price + output tokens × output price)
    2. × (1 - cache hit rate × cache discount)
    3. × (1 - batch task ratio × batch discount)
    4. + subscription fixed fee + pay-as-you-go overage
    5. + cache write fee + region factor

    If any two of the following five items differ significantly—cache hit rate, batch task ratio, call-time distribution, region selection, and whether a subscription is used—the bill can easily diverge by a multiple. So the right approach is not to compare unit prices, but to first build your own usage profile and then determine which billing rule matches it.

    2. Cost Profile: Understand Your Usage Structure First

    Before choosing a platform, break the workload down into four measurable dimensions.

    1. Latency sensitivity. Real-time chat and code completion are online paths that typically require first-token latency at the second level or lower; offline summarization, batch annotation, and log analysis can accept completion at the minute or even hour level.
    2. Input-to-output ratio. Long-document understanding and repository-level code analysis have inputs far larger than outputs; short Q&A is the opposite. Because the output price is usually several times the input price, workloads with a high output share are more sensitive to unit price.
    3. Prefix repetition. Scenarios with a fixed system prompt, fixed few-shot examples, and fixed tool definitions often have a high prefix repetition rate, which is the main source of caching gains.
    4. Time distribution. If batch jobs can be scheduled freely, it becomes possible to shift the load to off-peak hours.

    Write these four items into a configurable profile file, and base all later cost decisions on it rather than on intuition:

    1. workload_profile:
    2. online_ratio: 0.55 # Share of online real-time calls
    3. avg_input_tokens: 8000
    4. avg_output_tokens: 600
    5. prefix_repeat_rate: 0.7 # Share of the fixed prefix
    6. batch_capable_ratio: 0.35 # Share of tasks that can be run offline
    7. peak_hour_ratio: 0.8 # Share of calls during peak hours
    8. region: domestic # Domestic / overseas

    3. A General Billing Model: A Portable Estimation Method

    The specific rules of different platforms will vary, but the cost skeleton is general and can be expressed uniformly with the following function:

    1. def estimate_cost(profile, price, rules):
    2. # price: three unit prices (CNY per million tokens) for input / cache hit / output
    3. in_tok, out_tok = profile.input_tokens, profile.output_tokens
    4. hit = profile.prefix_repeat_rate * rules.cache_hit_ratio_cap
    5. cache_write = in_tok * (1 - hit) * rules.cache_write_price if rules.ttl_enabled else 0
    6. base = in_tok * (1 - hit) * price.input \
    7. + in_tok * hit * price.cache_hit \
    8. + out_tok * price.output \
    9. + cache_write
    10. base *= (1 - profile.batch_ratio * rules.batch_discount)
    11. base *= rules.region_factor
    12. if rules.subscription:
    13. covered = min(base, rules.plan_quota)
    14. overage = max(0.0, base - rules.plan_quota) * rules.overage_factor
    15. return rules.plan_fee + overage
    16. return base

    The value of this model is that it demotes “unit price” to a single parameter and turns discounts, caching, region, and subscription into switchable policy flags, so the same usage can be compared across multiple options.

    4. How Four Types of Rules Create the Gap

    4.1 Batch (Offline) Channel

    The batch API submits tasks asynchronously, trading longer completion time for a significant discount. A common industry discount range is 50% to 60% of the standard price. It suits data cleaning, batch summarization, and evaluation-set generation. Note three points: results have a retention period and must be retrieved promptly; quotas and concurrency are usually lower than for the online API; and it is not suitable for requests where a user is waiting in the path.

    4.2 Subscriptions and Pay-As-You-Go Overage

    The subscription model uses a fixed monthly fee to cover part of the call volume, with the excess billed pay-as-you-go. The break-even point can be judged this way:

    1. If actual monthly usage < plan coverage, the subscription is cheaper
    2. If actual monthly usage > plan coverage × (1 + conversion factor of covered unit price / overage unit price), pay-as-you-go is cheaper

    For online workloads with stable usage concentrated in peak hours, a subscription is often better than pure pay-as-you-go; for workloads with sharp fluctuations and a very narrow peak, pure pay-as-you-go is more controllable.

    4.3 Caching and Prefix Reuse

    Prefix caching applies automatically to repeated content. On a hit, it is billed at a price far below the input price; only the missed part is charged at full price, and writes are usually billed separately with a shorter time-to-live. The engineering points are: put the unchanged content first and keep it byte-for-byte stable, avoiding volatile fields such as timestamps or random IDs near the front of the prompt; and match the time-to-live to the call interval so frequent writes do not cancel out the hit gains.

    1. Before: 8000 input tokens per request, no cache
    2. After: 6000 fixed-prefix tokens hit the cache, only 2000 tokens at full price
    3. Theoretical input cost reduction ≈ 6000/8000 × (1 - cache discount ratio)

    4.4 Region and Free Quotas

    Overseas regions are generally more expensive than domestic ones, and cross-border paths add network latency and compliance costs. New models often come with a one-time free quota in the early launch period, which is suitable for load testing and migration validation but should not be treated as a long-term cost assumption.

    5. Decision Path: Four Steps to a Plan

    1. When no specific model version is required, prefer a general tier with better cost performance. Since pay-as-you-go prices are the same across platforms, put the selection focus on engineering convenience.
    2. When the offline task share is high, use the batch channel and push all deferrable tasks down to it.
    3. When online calls are stable and peaks are concentrated, combine a subscription with pay-as-you-go overage; if some calls can be moved to off-peak hours, the gains are further amplified.
    4. If you already run workloads on a cloud, connect to a service in the same region to avoid cross-network transfer and extra compliance assessment, with the same cost as connecting directly to the vendor.

    6. Observability: Make the Bill Attributable

    Without metering there is no optimization. It is recommended to record the following fields for each call and aggregate them daily:

    1. {
    2. "ts": "2026-11-17T10:00:00Z",
    3. "model_tier": "pro",
    4. "input_tokens": 8123,
    5. "cached_tokens": 6000,
    6. "output_tokens": 587,
    7. "channel": "batch",
    8. "region": "domestic",
    9. "latency_ms": 1840
    10. }

    From this, compute three core metrics: cache hit rate, batch share, and cost per unit of effective output (CNY per thousand successful requests). When the bill looks abnormal, first check which of these three deviates from the baseline, then investigate unit price and region. Most cases of “mysteriously getting more expensive” can be located here.

    7. Common Mistakes

    • Comparing only unit prices: ignoring discounts and caching means looking at only the first term of the formula.
    • Unstable cache prefixes: concatenating dynamic content at the head of the prompt keeps the hit rate near zero over the long run.
    • Treating free quotas as the norm: they expire once the migration evaluation period ends, which distorts the budget model.
    • Ignoring output costs: the output price is usually several times the input price, and verbose answers are a hidden major cost.
    • Ignoring data compliance: the assessment and remediation costs of cross-border calls often exceed the savings.

    8. Conclusion

    The same price does not mean the same thing. Treat cost as a product of “unit price × structural discount × scheduling strategy × region factor,” first quantify your own usage profile, then match the three rules of batch, subscription, and caching, together with attributable call metering. This keeps monthly LLM inference spending in a reasonable range while staying fully neutral and able to switch platforms at any time, rather than being led by a single platform’s price sheet.