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

    Many teams compare LLM API platforms by copying the per-million-token price from each pricing page and concluding that the options are roughly the same. Yet at month-end, identical call volume can produce bills that differ by nearly 2x depending on how the API is integrated. This article breaks the bill into independently estimable factors—pay-as-you-go usage, batch discounts, subscriptions, credits, and region—explains the three rules that create most of the gap (cache-hit billing, batch channels, and subscription plus off-peak scheduling), and offers a decision path and governance steps for controlling LLM API costs.

    1. The Problem: Same Unit Price, Different Bills

    When evaluating LLM APIs, many teams copy the “price per million tokens” from each platform’s pricing page into a spreadsheet, compare them side by side, and conclude that everything is about the same. But during month-end reconciliation, they discover that the same call volume can cost nearly twice as much under a different integration approach.

    The reason is not mysterious: the unit price is only one factor in the bill. A real bill can be abstracted as:

    1. monthly bill = Σ(request volume per category × corresponding unit price × discount factor) + fixed subscription fee - credits

    As long as the discount factor, fixed fee, and credits differ, the bill will diverge even when the base unit prices are identical. So the right thing to compare is not a single number on a pricing page, but the full set of billing rules.

    2. Modeling the Bill: Breaking Rules into Computable Factors

    To decide which option is cheaper, break the bill into four parts that can be estimated independently.

    1. Base pay-as-you-go usage. This usually consists of three segments: input tokens, cache-hit tokens, and output tokens. Their unit prices differ significantly, and output is often the most expensive segment. This means the bill is highly sensitive to output length, and compressing output is more effective than compressing input.

    2. Batch discount. Offline, latency-tolerant workloads (log summarization, batch labeling, offline evaluation, data cleaning) can go through an asynchronous batch channel. A common industry practice is to apply a discount factor relative to the standard price. The source material shows that for a certain class of models, batch pricing on some platforms is about 60% of the standard price, while other platforms do not state on their pages whether batch is supported at all. This kind of “rule gap” is itself a source of cost uncertainty.

    3. Subscription and plans. When call volume is stable and predictable, a prepaid plan turns variable cost into fixed cost, with overage billed pay-as-you-go as a fallback. Whether it pays off depends on two parameters: the in-plan coverage ratio and the overage ratio.

    4. Credits and region. Free quotas during a new model’s launch period and unit-price markups in different regions both change the bill in real terms. The material notes that overseas-region unit prices are about 10% higher than domestic-region prices, a difference that gets amplified in cross-border business.

    Illustrative estimation code:

    1. def monthly_cost(std_price, calls, avg_in, avg_out, cache_ratio=0.0,
    2. batch_ratio=0.0, batch_discount=0.6,
    3. plan_fee=0.0, plan_quota=0.0, free_quota=0.0):
    4. billable = max(0.0, calls - free_quota)
    5. realtime = billable * (1 - batch_ratio)
    6. batch = billable * batch_ratio
    7. per_call = (avg_in * (1 - cache_ratio) + avg_in * cache_ratio * 0.1 + avg_out)
    8. on_demand = realtime * per_call * std_price / 1_000_000
    9. batch_cost = batch * per_call * std_price * batch_discount / 1_000_000
    10. over = max(0.0, realtime - plan_quota)
    11. covered = realtime - over
    12. plan_total = plan_fee + over * per_call * std_price / 1_000_000
    13. return min(on_demand + batch_cost, plan_total + batch_cost), covered

    3. Three Rules That Actually Open Up the Gap

    Rule 1: Cache-hit billing. Repeated prefixes (system prompts, long documents, code context) are automatically reused. Once a hit occurs, they are billed at a price significantly lower than the input price; misses or writes may be billed separately and are subject to a validity period. The engineering implication is direct: put stable, unchanging content first and variable content last. A higher hit rate will show up directly on the bill.

    Rule 2: The batch channel. It trades the “must respond in seconds” constraint for a price discount and fits replayable offline pipelines. The practical requirements are that tasks can be split, results can be rewritten idempotently, and failures can be retried.

    Rule 3: Subscription and off-peak scheduling. Moving deferrable real-time calls into low-traffic periods, combined with plan coverage, can lower unit cost without changing business semantics. The magnitudes given in the material: a plan plus pay-as-you-go overage saves 10% to 20% versus pure pay-as-you-go, and if about half of calls can be shifted to nighttime hours, the savings can approach 50%.

    4. Decision Path

    • Not tied to a specific model version, mostly pay-as-you-go: platforms are at the same price, so just pick the one with the nearest access and the smoother operational fit.
    • Mainly offline batch: prioritize platforms that explicitly offer a batch discount.
    • Stable, high-frequency real-time calls: use a plan to cover baseline traffic, send overage to pay-as-you-go, and apply time-of-day scheduling.
    • Existing cloud workloads: access nearby to avoid cross-cloud traffic and compliance costs.

    5. Common Pitfalls and Governance Recommendations

    Pitfalls include: comparing only unit prices while ignoring discount rules; overlooking the leverage of output length on the bill; treating caching as an “advanced feature” that requires explicit rework instead of layering prompts; and sizing a plan tier from peak capacity, which wastes the fixed fee.

    For governance, a three-step approach is recommended: first, add instrumentation to collect the real token distribution (input / hits / output, and time-of-day distribution); then use the model above to recompute multiple options; finally, set budget alerts and a monthly review mechanism, turning cost optimization into a continuous process rather than a one-time action. If an organization is already using the relevant model services from Baidu AI Cloud, the same advice applies: evaluate with the “set of rules” rather than a single unit price.