LLM API Pricing Differences Across Platforms: A Cost Optimization Guide

    This article explains how to read LLM API bills, identify where charges come from, and adjust usage accordingly. It covers four billing factors beyond listed prices—batch processing, subscription plans and off-peak pricing, prefix caching, and regional nodes—using example rates (in CNY per million tokens) that are illustrative only, not actual quotes. All prices are examples; always refer to each platform's current official pricing announcements.

    This article discusses how to read your bill when calling large language model (LLM) APIs, how to determine where charges originate, and how to adjust your calling patterns accordingly. It does not target any specific vendor, nor does it claim savings percentages that apply to every scenario. All prices shown are illustrative examples, denominated in CNY per million tokens; they are not quotes. Always refer to each platform’s current official pricing announcements.

    1. Start with Listed Prices: Identical Prices Do Not Mean Identical Bills

    When evaluating options, many teams compare list prices. When a model developer distributes the same model through multiple cloud platforms, the base pay-as-you-go rates across those platforms are often close—sometimes identical. As a result, comparing price tables alone can lead to the conclusion that “switching platforms won’t affect costs.” That conclusion holds in simple scenarios, but billing differences usually come from rules beyond the listed prices.

    The following are example prices used to illustrate billing structures:

    Model Series Input Cached Input (Hit) Output
    A general-purpose model, 3.0 series ~20 ~2 ~100
    A general-purpose model, 3.1 Pro series ~13 ~1.3 ~68
    A code-specialized model ~6.5 ~1.3 ~27

    Prices in the table change with model versions and platforms. Keep three points in mind when reading it. First, different versions within the same series may be priced differently. Second, whether the cache-hit price applies depends on whether the platform supports cache billing. Third, output prices are typically much higher than input prices, so output length has a major impact on your bill.

    2. Four Types of Billing Rules That Affect Your Bill

    2.1 Batch Processing APIs

    Batch processing APIs are designed for tasks that don’t need real-time responses, such as historical data cleaning, bulk document summarization, and offline annotation. Requests are submitted to an offline queue and processed centrally during off-peak periods, so prices are lower than real-time calls.

    Discount depth varies by platform and model. For ease of calculation, the estimates later in this article assume the batch price is 60% of the real-time price—a 40% discount. This figure is for illustration only and does not represent any platform’s commitment. Before using batch processing, verify several conditions: the result return time limit, the maximum number of requests per batch job, whether all model versions are supported, and whether failed requests are still billed.

    2.2 Subscription Plans and Off-Peak Pricing

    Some platforms offer monthly token subscription plans. A plan includes a fixed quota, and usage beyond that quota is billed at an overage rate slightly below the list price. Whether a plan is cost-effective depends on whether your monthly usage is stable. If actual usage consistently falls below the plan quota, the fixed monthly fee may cost more than pay-as-you-go.

    In addition, some platforms lower per-call prices at night or during off-peak hours. The time windows, discount depth, and eligible models must all be confirmed against the platform’s official announcements. Whether you can take advantage of this depends on whether your workloads can shift some non-urgent calls to those time windows.

    2.3 Prefix Cache Billing

    Most conversational applications repeatedly send the same system instructions or conversation history. If the platform supports prefix caching, the repeated portion can be billed at the cache-hit price, which is significantly lower than the standard input price.

    Cache rules differ considerably across platforms, so verify each of the following:

    • Whether cache writes are billed separately, and at what price;
    • Cache retention time, which can range from minutes to hours depending on the platform;
    • The minimum prefix length eligible for caching;
    • The hit determination criteria—typically, the prefix content must match exactly and appear near the beginning of the request;
    • Whether cache-hit counts are visible in the bill or in API responses.

    To improve hit rates, place fixed system instructions and tool definitions at the very beginning of the request, and put the user input that changes each time at the end. This requires maintaining a stable prompt template and avoiding timestamps or random IDs inside the prefix.

    2.4 Regional Nodes and Network Location

    The same model may be priced differently at regional nodes in different geographic areas. Overseas nodes