Same Unit Price, Different Bills: How Billing Rules Shape LLM API Costs

    Identical per-token list prices do not mean identical monthly LLM API bills. This article explains how batch discounts, subscription plans, prefix caching, off-peak pricing, regional rates, and model retirement affect total spending. It also outlines a method for estimating real costs from your own usage data.

    Introduction: A Cost Trap Many Teams Overlook

    When choosing an LLM API, most teams start by opening each provider’s pricing page, copying the input and output prices per million tokens into a spreadsheet, and comparing them side by side. The conclusion often follows right away: “The prices are the same, so any provider will do.”

    At the list-price level, that reasoning holds. At the level of the actual monthly bill, it often leads to the wrong decision.

    Across the industry, mainstream models often carry identical pay-as-you-go prices on different channels, including the model vendor’s own open platform, cloud vendors’ model aggregation platforms, and third-party inference platforms. Model vendors often set uniform channel prices, or cloud vendors pass through list prices to gain ecosystem access. However, monthly spending is never determined by unit price alone. Billing rules, discount mechanisms, and usage patterns together determine the final bill. For the same usage, platforms with different rules can produce monthly costs that differ by 30%, and sometimes by close to 50%.

    This article uses a typical comparison scenario to break down the causes of this “same price, different bill” effect. It also provides a cost estimation method that engineering teams can apply directly.

    1. List Prices Are Only the Starting Point: Why Unit-Price Comparison Falls Short

    Start with the list price layer. Suppose a flagship model is priced as follows across platforms (CNY per million tokens; figures are illustrative):

    Billing item Model vendor’s official platform Cloud vendor aggregation platform A Cloud vendor aggregation platform B Third-party inference platform C
    Input 20 20 20 20
    Cache hit 2 2 Not specified 2
    Output 100 100 100 100
    Input for a lighter model in the same series 13 13 13 13

    The only conclusion this table supports is this: if your calls are purely real-time and pay-as-you-go, the choice of platform makes no difference to the bill. In that case, selection should depend on other factors, such as latency, proximity to availability zones, operations tooling (whether logging and monitoring integrations already exist), and billing and invoicing convenience.

    However, pure real-time pay-as-you-go is the simplest usage pattern. Once any of the following factors apply, bills across platforms start to diverge:

    • Whether offline or batch jobs exist, and whether the platform offers batch discounts;
    • Whether the platform offers a monthly minimum commitment in exchange for flat-rate pricing (a subscription model);
    • The share of repeated prefixes in traffic, and the cache hit rate;
    • The time distribution of calls, and whether off-peak pricing can be used;
    • The region where the business is deployed, and whether domestic and overseas pricing differ.

    Put simply, unit price comparison answers “can we afford it,” while rule comparison answers “how much should we expect to pay.”

    2. Two Main Billing Rules: Batch Discounts and Subscription Plans

    2.1 Batch Discounts: The First Lever for Offline Workloads

    Many model platforms offer a batch inference mode for tasks that do not need real-time responses. Tasks are submitted and processed asynchronously within an agreed time window, for example 24 hours. The price is typically around 60% of the standard price.

    Suitable use cases include:

    • Bulk content moderation and labeling;
    • Offline data cleaning and structured extraction;
    • Pre-generating reports, offline translation, and corpus processing;
    • Regression testing on evaluation sets.

    From an engineering standpoint, adopting batch mode requires modest changes. The core task is converting synchronous calls into an asynchronous flow: submit a task, then poll for results or receive a callback.

    1. # Pseudocode: general pattern for submitting batch tasks
    2. task = client.batch.create(
    3. model="your-model-name",
    4. requests=[build_request(item) for item in dataset],
    5. completion_window="24h",
    6. )
    7. # Poll, or wait for a callback to trigger retrieval
    8. result = client.batch.retrieve(task.id)
    9. save(result.outputs)

    The estimate is straightforward. Group monthly call logs by whether the workload tolerates latency. If 40% of token consumption comes from offline tasks priced at 60% of the standard rate, total spending falls to 0.6×0.4 + 1×0.6 = 84% of the original, a saving of 16%. The higher the offline share, the closer the saving gets to the theoretical ceiling of 40%.

    Note that batch discounts are often a standard feature of model vendors’ official open platforms. Some aggregation platforms do not state whether they support batch mode, so confirm this for each provider rather than assuming parity.

    2.2 Subscription Plans (Token Plan): The Second Lever for Stable Usage

    Another common mechanism is the subscription model. Customers prepay a fixed monthly fee for a token quota included in the plan. Usage beyond the quota is billed pay-as-you-go. Plans often include better off-peak rates, such as pricing that applies after 18:00 each day.

    Whether a plan saves money depends on three variables:

    1. Stability of monthly usage. Volatile workloads risk exceeding the quota often when the plan is too small, or wasting quota when it is too large.
    2. Ratio of the overage price to the pay-as-you-go price. On some platforms, the overage price matches the pay-as-you-go price, which makes the subscription a pure discount tool. On others, overage costs more, so you need to calculate the break-even point.
    3. Time distribution of calls. If the plan includes off-peak discounts and half of the calls can be scheduled into evening hours, such as overnight reporting or offline aggregation, the combined saving can exceed 40%.

    Industry rule-of-thumb estimates suggest that for workloads dominated by real-time calls but with stable usage, a subscription plus pay-as-you-go overage can save 12% to 24% compared with pure pay-as-you-go. Adding off-peak scheduling can push savings close to 48%.

    A simple calculation for comparing the two:

    1. def plan_saving(monthly_tokens, plan_quota, plan_price,
    2. unit_price, night_ratio=0.0, night_discount=1.0):
    3. payg = monthly_tokens * unit_price
    4. over = max(0, monthly_tokens - plan_quota)
    5. sub = plan_price + over * unit_price
    6. # Weight the off-peak share
    7. sub = sub * ((1 - night_ratio) + night_ratio * night_discount)
    8. return 1 - sub / payg

    3. Three Easily Overlooked Hidden Rules

    3.1 Automatic Caching Charges

    Mainstream models generally support prefix caching. When a request’s repeated prefix, such as a system prompt, a long document, or multi-turn conversation history, hits the cache, it is billed at a lower rate. The cache-hit price is typically one-tenth of the input price. Most platforms enable caching automatically, with a default TTL of around five minutes. Some platforms charge separately for cache writes with a longer TTL.

    The effect on the bill cuts both ways. If the architecture deliberately uses a long shared prefix with a short varying suffix, input costs can drop by an order of mag