LLM API Pricing and Cost Comparison: Why Identical Token Prices Can Still Produce Very Different Bills

    This article explains why models with identical per-million-token list prices can still generate very different monthly bills. It breaks the bill into four dimensions—unit of measurement, usage structure, settlement channel, and billing cycle—and shows how to compare platforms using a consistent estimation function. It also provides practical selection guidance for real-time, batch, subscription, off-peak, and existing-cloud scenarios.

    1. Start with a Price Table That Looks Identical

    A common model-selection scenario is this: several candidate platforms offer pay-as-you-go pricing, and when you compare the price tables cell by cell, they look exactly the same.

    For example:

    • Flagship tier: CNY 20 per million input tokens, CNY 2 per million cache-hit tokens, CNY 100 per million output tokens.
    • Pro tier: CNY 13 / CNY 1.3 / CNY 68.
    • Lightweight code tier: CNY 6.5 / CNY 1.3 / CNY 27.

    Four price tables match cell for cell, so the initial conclusion seems simple: any choice should cost the same.

    But at the end of the month, the same usage volume can produce bills that differ by almost two times across the four platforms. This is usually not because one vendor is secretly adding a surcharge. It comes from the gap between the list price and the billing rules.

    A list price only defines how much one unit of usage costs. The monthly bill is determined by four things:

    1. Monthly bill = f(unit price per usage, usage structure, settlement channel, billing cycle)

    Comparing only the first item means comparing only one quarter of the information needed. This article makes the other three dimensions explicit and provides an estimation formula and a practical process that can be applied directly.

    The sample prices below are for illustrating the billing rules only. Actual prices should always be based on each platform’s current pricing page.

    2. Break Unit Price into Four Comparable Dimensions

    2.1 Unit of Measurement: The Easiest Place to Make an Order-of-Magnitude Mistake

    The biggest pricing trap is not that token pricing is expensive, but that the unit of measurement differs across platforms:

    • Unit differences: Some platforms quote per thousand tokens, while others quote per million tokens. When copying numbers across platforms, forgetting to multiply by 1,000 can create a 1,000x error.
    • Token definitions: The same Chinese text can produce token counts that differ by more than 20% across different tokenizers. Estimating usage by character count can introduce error that changes with the writing style.
    • Cache-hit definition: Cache-hit pricing is often around one tenth of the input price, but platforms define what counts as a cache hit differently. Some require an exact matching prefix and a minimum length. Some bill system prompts, multi-turn conversation history, and tool definitions separately. For the same codebase, a cache-friendly implementation and a non-cache-friendly implementation can produce several times’ difference in cost.
    • Output billing: Output pricing is often around five times input pricing. Therefore, input-heavy tasks and output-heavy tasks can have very different cost structures.

    2.2 Batch Processing Channel: The Discount Lever for Offline Tasks

    An asynchronous batch-processing interface submits requests as files and returns results later. It trades latency for a discount. A common form is billing at 50% of the standard price.

    The criteria for using this channel are clear:

    • Suitable for: offline data cleaning, batch summarization, log labeling, evaluation-set construction, and nighttime data processing.
    • Not suitable for: any call that enters a user-facing request path. Batch result retrieval time is usually measured in hours. Putting that into an online interface can directly break the SLA.

    The key point is that the batch discount applies to the call pattern, not the model tier. It is usually unrealistic to move real-time calls into batch processing. However, moving offline tasks from the online interface to a batch channel can cut their cost by half without changing the model or the business logic.

    2.3 Subscription and Overage: Another Discount Path Once the Model Is Locked

    Pay-as-you-go billing is purely linear. A subscription-based resource package is nonlinear: you pay an upfront package fee, receive a covered amount, and any usage above that amount is billed at an overage price. The overage price is usually higher than the list price.

    This means “subscription is always cheaper” is never universally true. It is a conditional conclusion.

    Define:

    • F = package fee
    • D = monthly bill under pure pay-as-you-go pricing at the same usage
    • C = amount covered by the package
    • k = overage price markup ratio above the list price

    The actual cost under the subscription model is:

    1. F + max(D - C, 0) × (1 + k)

    Therefore:

    1. Subscription is cheaper when:
    2. F + max(D - C, 0) × (1 + k) < D

    There are two direct conclusions:

    • When C >= D, the condition reduces to F < D. If the package fully covers usage, the only question is whether the package fee is lower than the pay-as-you-go total.
    • When C < D, the condition becomes F < C - (D - C) × k. The overage portion must cover the shortfall and also pay the markup, so the package fee must be lower to make the subscription worthwhile.

    This explains why the claim that “subscription plus overage saves 10% to 20% compared with pure pay-as-you-go” only holds within a specific usage range. Usage should be close to the package-covered amount: not so low that unused package value is wasted, and not so high that large overage markups erase the savings.

    2.4 Billing Cycle: Off-Peak Arithmetic

    Some platforms distinguish between peak and non-peak call periods in their resource packages, offering lower prices during non-peak hours. The value of this rule depends on one multiplication:

    1. Total reduction = transferable ratio r × off-peak discount s

    To cut the bill by half, you need approximately:

    1. r × s ≈ 0.48

    This means two conditions must both hold: a sufficiently large share of calls must be movable to off-peak hours, and the off-peak discount must be deep enough. If either one is missing, the reduction will not reach that scale.

    In practice, the achievable ratio depends heavily on the business pattern. For batch offline tasks, the transferable ratio can approach 100%. For real-time paths facing end users, it is almost 0.

    3. Billing Formula and Executable Example

    The four dimensions above can be written as one function. Any platform’s rules can then be compared using the same set of parameters:

    1. M = 1_000_000 # price unit: CNY per million tokens
    2. def estimate(inp, hit, out, price, *,
    3. batch_ratio=0.0, batch_discount=0.0,
    4. offpeak_ratio=0.0, offpeak_discount=0.0,
    5. plan_fee=0.0, plan_cover=0.0, overage_factor=0.0):
    6. """Estimate the monthly bill in CNY.
    7. price: tuple of (input, cache-hit, output) list prices per million tokens.
    8. batch_ratio / offpeak_ratio: share of usage in each channel.
    9. batch_discount / offpeak_discount: discount magnitude; 0.4 means billed at 60% of standard price.
    10. plan_fee / plan_cover: subscription fee and amount covered by the package.
    11. overage_factor: markup ratio of overage price above the list price.
    12. """
    13. # 1. Base pay-as-you-go bill
    14. base = (inp * price[0] + hit * price[1] + out * price[2]) / M
    15. # 2. Batch processing channel
    16. batch = base * batch_ratio * (1 - batch_discount)
    17. rest = base - base * batch_ratio
    18. # 3. Off-peak pricing applied to the remaining usage
    19. offpeak = rest * offpeak_ratio * (1 - offpeak_discount)
    20. peak = rest - rest * offpeak_ratio
    21. # 4. Payable amount after discounts, then subscription settlement
    22. payable = peak + offpeak + batch
    23. return {
    24. "pay-as-you-go after discounts": round(payable, 2),
    25. "subscription amount payable": round(plan_fee + max(payable - plan_cover, 0) * (1 + overage_factor), 2),
    26. }
    27. flagship = (20.0, 2.0, 100.0)
    28. # Monthly usage: 280 million input tokens, 80 million cache-hit tokens, 20 million output tokens
    29. print(estimate(280e6, 80e6, 20e6, flagship))
    30. print(estimate(280e6, 80e6, 20e6, flagship, batch_ratio=0.7, batch_discount=0.5))

    Example output:

    1. {'pay-as-you-go after discounts': 7760.0, 'subscription amount payable': 7760.0}
    2. {'pay-as-you-go after discounts': 5044.0, 'subscription amount payable': 5044.0}

    With the same usage, moving 70% of calls into the batch-processing channel reduces the bill from CNY 7,760 to CNY 5,044, a 35% reduction. No model change is made, no prompt is modified, and only the call pattern is changed.

    The next step is sensitivity analysis. Because output pricing is often around five times input pricing, changes in output volume have a much larger effect on the total bill than changes in input volume. Running the same function with three parameter sets—doubling output volume, improving the cache-hit rate, and reducing the batch share from 70% to 30%—helps identify the main cost driver.

    In practice:

    • For generative tasks, output length is often the first sensitive factor.
    • For long-context tasks, cache-hit rate is often the first sensitive factor.

    Measure these two factors accurately before making a final model-selection decision.

    4. Selection Conclusions for Five Typical Scenarios

    Scenario Recommended strategy Reason
    The model tier can be replaced, and the workload is real-time online Pay-as-you-go on any platform List prices are identical, so the price difference is zero. Decision weight can shift to operational cost and nearby access.
    Offline batch tasks Batch-processing channel Trades latency for discount, often saving about half, without affecting the online path.
    The model is locked in and call volume is large Subscription package plus overage settlement When usage is close to the package-covered amount, it can save roughly 10% to 20% compared with pure pay-as-you-go.
    There is a large amount of non-real-time traffic Add off-peak rules on top of the subscription model Total reduction = transferable ratio × off-peak discount. Both must be sufficiently large.
    Existing workloads already run on one cloud Access the model through the same cloud Network latency and egress cost can be reduced. This is independent of the model list price but affects the total bill.

    The last row deserves special attention. Calls within the same cloud can save cross-network egress traffic costs and reduce round-trip latency. These savings do not appear on the model bill, but they do appear on the network bill and in user experience. Placing model calls in the same cloud where the business already runs is an easily overlooked but real cost benefit.

    It is also worth noting that some platforms’ public pricing pages may not list every model family. This is a difference in supply coverage, not a price difference. Before comparing prices, availability should be treated as a hard prerequisite: whether the model is available on that platform, whether there are regional restrictions, and what the quota limit is.

    5. Quote Alignment Template

    To achieve a comparison that is truly equivalent rather than one that only looks equivalent, fix eight variables before comparing:

    1. Verification date: Price pages can change at any time. A quote must include a date stamp, and expired quotes should be discarded.
    2. Region: Prices and available model lists may differ by region.
    3. Unit of measurement: Normalize all quotes to CNY per million tokens.
    4. Cache definition: Clarify hit conditions, minimum prefix length, and cache retention duration.
    5. Batch-processing rules: Discount magnitude, result retrieval time, and result retention period.
    6. Subscription rules: Package fee, covered amount, overage markup ratio, and whether quota can be shared across models.
    7. Time-of-day rules: Definition of off-peak hours, discount magnitude, and whether off-peak pricing can be combined with subscriptions.
    8. Rate limits and quotas: Concurrency limits, tokens per minute, and the quota-increase process.

    A matching engineering action is labeled telemetry. On the calling side, each request should be tagged with business line, scenario, model tier, and call pattern—real-time, batch, or off-peak. These dimensions can then be aggregated.

    Without this telemetry, the monthly bill only shows a total number. It becomes impossible to identify which scenario chose the wrong call pattern.

    6. Pricing Trap Checklist

    These issues often reappear during real billing reconciliation. It is recommended to confirm them item by item in the contract:

    • Whether failed requests, timed-out requests, and requests rejected by rate limiting are billed.
    • Whether retried requests are billed again, and whether retries count against quota.
    • Free quota allocation: whether it is issued independently by model, how long it remains valid, and whether quotas can be merged across accounts.
    • Whether system prompts, tool definitions, and few-shot examples count toward input tokens.
    • How multimodal inputs are converted into tokens.
    • Whether different context-length tiers are priced separately.
    • Rules for cancellation and downgrade, and whether resource packages can roll over across months.
    • Whether quota limits can cause queuing during peak periods, and whether queuing time is included in the SLA.

    7. Implementation Process

    The conclusions above can be turned into a repeatable process in four steps.

    Step 1: Build a usage profile.
    At minimum, measure four ratios:

    • input / cache-hit / output share
    • real-time / batch share
    • share of usage that can be moved to off-peak hours
    • distribution across model tiers

    These four data points are the foundation for all decisions. Missing any one of them can lead to a wrong conclusion.

    Step 2: Compare prices with aligned definitions.
    Use the same usage profile and the function in Section 3. Fill in each platform’s rule parameters and produce comparable numbers. For subscription pricing, apply the break-even formula rather than assuming that a package is automatically cheaper.

    Step 3: Validate with a small canary and keep a rollback path.
    After switching channels, validate with a small share of real traffic. Focus on:

    • result retrieval time for batch processing
    • rate-limit trigger rate for subscription overage
    • latency jitter during non-peak periods for off-peak channels

    These are side effects of the billing rules. They are not visible during the price comparison, but they can appear after launch.

    Step 4: Review periodically.
    Set up a monthly price snapshot and record the verification date and parameters. Price changes, free-quota issuance, and off-peak rule adjustments can invalidate the previous conclusion. The review frequency should be no less than quarterly.

    8. Decision Order

    Taken together, the decision path can be compressed into one chain:

    1. Can the model tier be replaced?
    2. No -> check the subscription break-even formula
    3. Yes -> pay-as-you-go, with the same price across vendors
    4. |
    5. v
    6. Are there offline tasks?
    7. Yes -> use the batch-processing channel
    8. No -> check whether there is already business on one cloud
    9. Yes -> access the model in the same cloud
    10. No -> pay-as-you-go, with decision weight shifting to operational cost
    11. If calls can be moved:
    12. No -> check for transferable calls
    13. Yes -> add off-peak rules

    The core of this chain is not memorizing specific numbers. It is remembering one principle:

    1. List price sets the lower bound.
    2. Billing rules set the upper bound.
    3. Usage structure determines where you fall within that range.

    Measure usage structure accurately, apply each platform’s rules once, and the variance in the bill will naturally narrow. Any approach that skips usage profiling and directly compares price tables will eventually be corrected by the month-end bill.