Why Monthly LLM API Bills Can Differ by 50% Even at the Same Unit Price

    When comparing LLM API pricing, identical per-token rates do not guarantee identical monthly bills. This article explains why the "standard unit cost" and the actual "cost function" differ across platforms, covering batch processing discounts, subscription plans with overage pricing, cache billing, free quotas, regional price differences, and a reusable formula for estimating monthly costs across conservative, baseline, and optimistic scenarios.

    1. The Bottom Line: Same Unit Price Does Not Mean Same Total Cost

    When comparing LLM API pricing, many teams focus only on three numbers from the pricing table:

    • Input token price
    • Cached input token price
    • Output token price

    This approach works for judging the “baseline list price,” but it is not enough to predict how much you will actually pay in a month. The real bill is usually also affected by:

    1. Whether batch processing discounts are supported
    2. Whether subscription plans or resource bundles exist
    3. Whether a plan covers only specific models
    4. How usage beyond the plan quota is billed
    5. Whether off-peak or nighttime pricing rules apply
    6. Whether new users or new models come with free quotas
    7. Whether different regions use different prices
    8. Whether caching applies automatically and how long the cache lives

    Therefore, even if four platforms publish the same pay-as-you-go rates, you cannot conclude that their monthly bills will be the same. A more accurate statement is: their “standard unit costs” are identical, but their “cost functions” can be completely different.

    If your workload is entirely real-time requests, with no plans, batch processing, or regional differences, costs across platforms will usually be close. If your workload includes large volumes of offline tasks, fixed-model calls, or off-peak requests, the final bills can diverge significantly.


    2. A Unified Pricing Table: Establish the Baseline Cost First

    For easier comparison, normalize pricing across platforms to “CNY per million tokens” and record it along three dimensions:

    Model Category Input Cached Input Output
    High-performance general model 20 CNY 2 CNY 100 CNY
    Next-generation enhanced model 13 CNY 1.3 CNY 68 CNY
    Lightweight code and reasoning model 6.5 CNY 1.3 CNY 27 CNY

    The table above only represents standard pay-as-you-go pricing examples at a point in time. Always refer to the target platform’s latest pricing page for actual use. Note in particular that some platforms may not fully display cache pricing, or may only offer cache billing for specific models or regions.

    2.1 Input and Output Costs Are Not Symmetric

    For most LLM APIs, the output token price is significantly higher than the input token price. The reason is that output generation requires continuous inference and decoding, which typically consumes more compute resources.

    For example, a single request contains:

    • 1 million input tokens
    • 200,000 output tokens
    • No cache hits

    Using the “high-performance general model” example pricing:

    1. Input cost = 1 × 20 = 20 CNY
    2. Output cost = 0.2 × 100 = 20 CNY
    3. Total cost = 40 CNY

    If your application generates long reports, code, test cases, or structured results, output tokens can quickly become the dominant cost. Conversely, for scenarios like classification, retrieval rewriting, or short Q&A, input may account for a larger share.

    2.2 Do Not Estimate Cost by Request Count Alone

    “100,000 API calls per day” is not a useful cost metric, because context length and output length can vary dramatically between requests. More meaningful units include:

    • Input tokens per request
    • Output tokens per request
    • Cached prefix length
    • Cache hit rate
    • Call distribution across models
    • Ratio of real-time to offline calls

    It is recommended to log at least the following fields at the gateway layer:

    1. request_id
    2. model_category
    3. input_tokens
    4. cached_input_tokens
    5. output_tokens
    6. request_time
    7. region
    8. billing_mode

    With this data, you can convert “business call volume” into “verifiable billing volume.”


    3. The First Real Differentiator: Batch Processing Discounts

    Batch processing suits tasks that do not require immediate results, such as:

    • Summarizing historical data
    • Bulk document classification
    • Offline content moderation
    • Search index generation
    • Code repository scanning
    • Bulk report and tag generation
    • Training data cleaning and format conversion

    Some platforms charge batch jobs at a fixed percentage of the standard pay-as-you-go price. Taking a 40% discount (60% of standard price) as an example, if the original cost is 10,000 CNY, the batch cost is:

    1. Batch cost = 10,000 × 60% = 6,000 CNY
    2. Savings = 4,000 CNY

    This kind of discount does not mean every request should be converted to batch. Batch processing usually has the following constraints:

    1. Results are not returned immediately
    2. The submission, queuing, and result retrieval workflow is more complex
    3. Failed jobs require retries and idempotency control
    4. Some jobs may have submission size or file size limits
    5. It cannot directly replace online chat or real-time APIs

    Therefore, the most important step is not “choosing the cheapest platform,” but splitting your workload into two categories:

    Real-time workloads

    Typical characteristics: users are waiting for results, and latency directly affects the experience. Examples:

    • Online Q&A
    • AI customer service
    • Code completion
    • Real-time search summarization
    • Interactive data analysis

    These requests should prioritize stable latency, availability, geographic proximity, and failover capability.

    Offline workloads

    Typical characteristics: tasks can finish minutes or hours later. Examples:

    • Overnight batch processing
    • Log archival analysis
    • Re-indexing document libraries
    • Large-scale data annotation
    • Periodic content generation

    These requests are better suited to batch processing, off-peak windows, or resource bundles. Sending all offline tasks as real-time requests usually means giving up available cost discounts outright.


    4. The Second Real Differentiator: Subscriptions Combined with Overage Pricing

    Another common model is “fixed plan plus pay-as-you-go overage”:

    • The plan includes a fixed usage quota
    • The plan may cover only designated models
    • Usage beyond the quota reverts to pay-as-you-go pricing
    • Off-peak requests may enjoy additional rules
    • Unused quota may have an expiration date or may not roll over

    This model works especially well for workloads with stable call volumes. Suppose a team has a fixed demand of 10 million tokens per month, and about half can be scheduled during off-peak hours—then a subscription model can be significantly cheaper than pure pay-as-you-go.

    But subscriptions are not cost-effective for every team. Key risks include:

    1. Insufficient usage, leaving plan quota unconsumed
    2. The models actually used are not covered
    3. Business growth exhausts the plan quickly
    4. Overage pricing is high
    5. Off-peak rules do not match your scheduling windows
    6. Input, output, and cache quotas within the plan are metered separately and cannot be mixed

    So you cannot compare only “plan prices”—you must also verify the metering rules of the plan. In particular, confirm:

    • Whether the plan is metered by tokens or by requests
    • Whether input and output share one quota pool
    • Whether cache hits consume plan quota
    • Whether different models use different quota coefficients
    • Whether overage pricing matches standard pricing
    • Whether the plan supports auto-renewal and usage alerts

    5. Why “the Monthly Bill Can Differ by Half”: A Mixed-Workload Example

    Suppose a workload generates the following monthly usage:

    • Standard real-time requests: 5 million input tokens
    • Real-time output: 1 million tokens
    • Offline tasks: 5 million input tokens
    • Offline output: 1 million tokens

    If everything is billed at standard pricing with the high-performance general model:

    1. Input cost = 10M tokens ÷ 1M × 20 CNY = 200 CNY
    2. Output cost = 2M tokens ÷ 1M × 100 CNY = 200 CNY
    3. Total cost = 400 CNY

    If half of the offline tasks can use batch processing at 60% of standard price, the original offline cost is:

    1. Offline input cost = 0.5 × 20 = 10 CNY
    2. Offline output cost = 0.1 × 100 = 10 CNY
    3. Offline list price = 20 CNY
    4. After batch pricing = 20 × 60% = 12 CNY

    The real-time portion stays at 20 CNY, making the total:

    1. Real-time cost: 20 CNY
    2. Offline cost: 12 CNY
    3. Total: 32 CNY

    The absolute amounts in this example are only illustrative—real costs scale with token volume. But it demonstrates a key point: when a significant share of calls can be moved to a discounted channel, the bill reduction can be far larger than what the pricing table alone suggests.

    If the workload also combines subscription quotas, cache hits, and off-peak scheduling, the monthly bill can drop further. Conversely, if most requests run in real time during peak hours, even a platform offering plans may not yield noticeable savings.


    6. Cache Billing: A Lower Price Does Not Mean Automatic Savings

    LLM applications frequently send repeated system prompts, tool descriptions, knowledge base prefixes, or long document contexts. Some billing systems recognize repeated prefixes and bill them separately as cache hits.

    You generally need to distinguish three situations:

    1. First-time cache write
    2. Repeated hits while the cache is still valid
    3. Re-writing the cache after expiration

    Cache-hit pricing is usually lower than standard input pricing, but caches are not permanent. Common influencing factors include:

    • Cache lifetime
    • Whether the prefix is exactly identical
    • Whether request ordering satisfies matching conditions
    • Whether the model version has changed
    • Whether the cache is shared across regions or instances
    • Whether cache writes incur additional charges

    Therefore, applications should place stable content at the front of the prompt and frequently changing content at the back. For example:

    1. Stable parts:
    2. - System role instructions
    3. - Tool definitions
    4. - Fixed business rules
    5. - Long-lived document prefixes
    6. Variable parts:
    7. - User question
    8. - Current time
    9. - Retrieval results for this turn
    10. - Temporary context

    At the same time, do not endlessly accumulate historical context just to chase cache hits. Excessively long contexts can lead to:

    • Higher input costs
    • Increased request latency
    • Lower cache hit rates
    • Reduced effective information density for the model

    The goal of cache optimization is not “the more caching the better,” but ensuring that high-reuse, low-change content hits the cache consistently.


    7. Free Quotas and Regional Pricing: The Most Overlooked Bill Variables

    Some platforms offer free quotas for new models, new users, or specific services. Free quotas usually come with conditions:

    • Only available to newly registered users
    • Only cover designated models
    • Only apply in specific regions
    • Have an expiration period
    • May only offset input or output
    • Automatically switch to pay-as-you-go once exhausted

    Therefore, free quotas should not be treated as a long-term cost advantage. For budgeting, it is recommended to calculate separately:

    1. First-month cost = paid consumption - available free quota
    2. Steady-state monthly cost = normal paid consumption

    Regional differences matter as well. Cross-region calls may incur surcharges due to resource costs, network conditions, or regional pricing strategies. When comparing, at least normalize:

    • The calling region
    • The service deployment region
    • The data storage region
    • The user access region
    • Whether cross-region transfer occurs

    If your users are concentrated in a specific area, connecting to a nearby region generally helps reduce network latency. But if you choose an overseas or cross-region endpoint, you cannot look at API unit price alone—you also need to evaluate network transfer, compliance requirements, and data flow costs.


    8. A Reusable Monthly Cost Formula

    You can estimate monthly cost with the following general formula:

    1. Monthly cost =
    2. Input cost
    3. + Output cost
    4. + Cache write cost
    5. + Cache hit cost
    6. + Batch processing cost
    7. + Plan fixed fee
    8. + Overage cost
    9. + Cross-region related cost
    10. - Redeemable free quota

    Where:

    1. Input cost = standard input tokens × input unit price
    2. Output cost = output tokens × output unit price
    3. Cache hit cost = cached tokens × cache unit price
    4. Batch cost = batch list price × batch discount
    5. Overage cost = usage beyond plan × overage unit price

    To avoid distorted estimates, it is recommended to budget under three scenarios:

    Conservative scenario

    Assume:

    • Low cache hit rate
    • All requests billed at real-time pricing
    • No free quota used
    • Output tokens on the high side
    • Some retries occur

    Baseline scenario

    Assume:

    • Historical average token volumes
    • Real cache hit rates
    • All offline-eligible tasks use batch processing
    • Plan quota is mostly consumed

    Optimistic scenario

    Assume:

    • High cache hit rate
    • More than half of tasks run during off-peak hours
    • Low retry rate
    • Free quota still valid

    Measuring all three scenarios together prevents a budget that only holds under ideal conditions.


    9. Selection Advice: Do Not Decide by “Who Has the Lowest Unit Price”

    If four platforms publish identical standard pay-as-you-go prices, choose based on workload characteristics.

    9.1 Mostly real-time calls

    Focus on comparing:

    • API stability
    • Access latency
    • Rate limiting policies
    • Failover capability
    • Logging and monitoring
    • Authentication and access management
    • Fit with your existing network environment

    At this point, price differences may not be the primary factor.

    9.2 Mostly offline tasks

    Focus on:

    • Whether batch processing is supported
    • The batch discount rate
    • Maximum job size
    • Result retention period
    • Failure retry mechanisms
    • Whether job status queries are supported

    Migrating tasks from the real-time channel to the batch channel is usually more effective than simply switching providers.

    9.3 Stable usage with fixed models

    You can evaluate subscriptions or resource bundles, but first collect at least one full billing cycle of real usage before deciding on plan size. Do not buy a large plan based solely on projected peak demand.

    9.4 Already deployed on a specific cloud environment

    If your business already uses that environment’s networking, logging, monitoring, identity, and security systems, connecting within the same environment often reduces migration costs. Even with identical token prices, it can lower operational complexity and cross-platform transfer costs.


    10. Pre-Launch Cost Control Checklist

    Before going live, confirm each of the following:

    • Are input, output, and cache prices listed separately?
    • Do cache writes and cache hits use different prices?
    • Does batch processing support your target models?
    • Do batch results meet your timeliness requirements?
    • Does the plan cover the models you actually use?
    • How is usage beyond the plan billed?
    • What are the validity period and scope of free quotas?
    • Do prices differ across regions?
    • Will cross-region network charges apply?
    • Can bills be split by model, project, and caller?
    • Are usage caps and alerts available?
    • Do failed retries generate duplicate token charges?
    • Will pricing or metering rules change after model upgrades?

    Ultimately, judging whether a plan is cost-effective cannot be based on “price per million tokens” alone. You should observe unit business costs, such as:

    • Cost per report generated
    • Cost per document page processed
    • Cost per code review completed
    • Cost per thousand customer service sessions
    • Cost per million data records cleaned

    Only by mapping token prices to actual business output can you accurately judge platform differences—and explain why seemingly identical unit prices can produce monthly bills that differ by a factor of two or more.