LLM API Cost Comparison Across Platforms: Why Identical Unit Prices Can Produce Nearly Half the Monthly Bill

    This article presents a methodology for comparing LLM API costs across platforms. It explains how to verify per-token unit prices, identify billing rules such as batch discounts, subscriptions, off-peak pricing, free credits, and cache billing, and estimate monthly bills by splitting usage into segments. Readers get a reusable decision order for platform selection and a checklist to avoid unit-price-only comparisons.

    1. Background: Same List Price, Different Bills

    Many teams encounter a counterintuitive situation when integrating LLM APIs: the same model from the same provider has exactly the same pay-as-you-go unit price on the official platform and on multiple cloud platforms, yet the monthly bill can differ by nearly half. The reason is not complicated. The pay-as-you-go unit price is only the starting point of pricing; what really determines the monthly bill is the billing rules layered on top of that unit price: batch discounts, subscription packages, off-peak periods, free quotas, cache billing methods, and so on.

    This article focuses on a general comparison methodology and explains how to systematically perform cross-platform cost accounting, avoiding the common mistake of looking only at the first line of a pricing page.

    2. Step One: Verify Pay-As-You-Go Unit Prices and Establish a Baseline

    Before integration, first put the pay-as-you-go unit prices of each platform into a table, using “CNY per million tokens” as the unified unit, and distinguish three pricing dimensions:

    • Input price: the prompt portion is billed by input tokens;
    • Cache hit price: the discounted price when a repeated prefix hits the context cache;
    • Output price: generated content is billed, usually 3–5 times the input price.

    A typical new-generation flagship model tier is roughly “input 20 / cache hit 2 / output 100” CNY per million tokens; a sub-flagship or high-value tier is about “13 / 1.3 / 68”. If these numbers are exactly the same across platforms, the conclusion is already clear: for pure pay-as-you-go, real-time calls without batch processing, there is no difference at the unit-price level; the price gap can only come from the rules layer.

    Additional details to verify:

    1. Whether caching is priced separately. Some platform pricing pages list only input and output columns, with the cache hit price “not listed on the page”. In this case, submit a support ticket or check the documentation to confirm; otherwise, cost estimates for high-repetition-prefix scenarios (such as long system prompts or fixed RAG context) will be distorted.
    2. Region and billing currency. Pricing for the same platform may differ by region; note the region when verifying.
    3. Price freshness. LLM prices change frequently; record the date when verifying to avoid making decisions with outdated data.

    3. Step Two: Identify the Rules That Actually Create the Price Gap

    Once unit prices are identical, differences in monthly bills almost entirely come from the following categories of rules. Check them one by one:

    3.1 Batch Processing Discounts

    Mainstream official platforms generally provide asynchronous batch interfaces: tasks that can return results within 24 hours are billed at 50%–60% of the standard price. Suitable scenarios include:

    • Offline data labeling and bulk content generation;
    • Batch benchmark runs on evaluation sets;
    • Non-real-time reports and summarization tasks.

    The judgment method is simple: measure the share of calls in the business that “do not require second-level response”. If it exceeds 30%, the Batch discount is the most important cost lever. In engineering terms, it usually only requires changing synchronous calls to asynchronous task submission and polling for results, with changes concentrated in the calling layer:

    1. # Pseudocode: convert synchronous calls to batch tasks
    2. task = client.batches.create(
    3. requests=[{"model": MODEL, "messages": m} for m in offline_jobs],
    4. completion_window="24h"
    5. )
    6. # Poll task status and fetch result files after completion

    3.2 Subscription Packages and Off-Peak Billing

    Some platforms offer token subscription packages (for example, purchasing a fixed monthly token quota at a unit price lower than pay-as-you-go), combined with off-peak discounts: lower unit prices for calls late at night or during specified periods. These rules bring obvious benefits to businesses with stable traffic:

    • If the subscription price is combined with overage pay-as-you-go, the blended cost can be 12%–24% lower than pure pay-as-you-go;
    • If nearly half of schedulable calls (such as scheduled jobs and asynchronous queues) can be moved to off-peak periods, the blended cost can drop further, saving about 48% in extreme cases.

    The key is traffic schedulability: the gateway layer classifies requests, puts delay-tolerant requests into an off-peak queue, and sends non-delay-tolerant requests through the real-time channel.

    3.3 Free Quotas and New Model Incentives

    Some cloud platforms provide one-time free token quotas for newly integrated models (commonly on the order of 1 million tokens). This is valuable for POC and gray-release stages, but for stable traffic it accounts for only a small share and should not be the main basis for selection.

    3.4 Cache Billing Rules (Most Easily Overlooked)

    This is the easiest place to make a costly mistake. The general rules are:

    • Automatic caching: repeated prefixes automatically enable caching, with a default TTL usually of 5 minutes;
    • Cache writes billed separately: some model families charge separately for cache writes by TTL tier (such as 5 minutes or 1 hour), and only charge the hit price after a hit;
    • The hit price is about 1/10 of the input price.

    This means that for scenarios with high-frequency repeated prefixes (fixed system prompt + multi-turn dialogue), caching can save significantly; for scenarios with highly dispersed prefixes, cache write fees may instead push up costs. During evaluation, measure the business’s prefix repetition rate before deciding whether to rely on cache optimization.

    3.5 Model Lifecycle and Retirement Pace

    LLMs iterate quickly, and older series will gradually stop being available to new users and eventually be retired. When selecting a model, also include migration cost: if the target model has an announced retirement schedule, plan directly for the successor model, so that savings on the bill are not consumed by migration and rework costs.

    4. Step Three: Usage Segmentation and Monthly Bill Estimation Model

    Combining the rules above, the monthly bill can be estimated with a simple segmented formula:

    1. Monthly cost = Σ(tokens in each traffic segment × corresponding unit price)
    2. + cache write fees
    3. - Batch discount savings
    4. - subscription package offsets
    5. - free quota offsets

    In practice, split traffic along four dimensions:

    Dimension Split method Corresponding rule
    Timeliness Real-time / delay-tolerant Batch, off-peak
    Prefix repetition rate High / low Cache billing
    Traffic stability Stable / fluctuating Subscription packages
    Model tier Flagship / value tier Baseline unit price

    Example: for a business with 50 million output tokens per day, if 40% of calls can be converted to Batch (billed at 60%), 30% can be scheduled to off-peak periods, and subscription packages cover stable traffic, the combined reduction commonly reaches over 30%—this is the source of “same list price, half the bill”.

    5. Selection Decision Tree

    Based on the analysis above, here is a reusable decision order:

    1. If you do not lock in a specific model and use pay-as-you-go real-time calls: platforms have the same price; prioritize a platform where you already have a cloud account and with nearby network access, reducing integration and reconciliation costs;
    2. If offline batch tasks exist: prioritize platforms that provide Batch discounts (usually the official platform from the model provider);
    3. If traffic is stable and schedulable: compare combinations of subscription packages plus off-peak rules; such solutions generally provide the largest combined reduction;
    4. If you already have existing business on a cloud provider: integrate the same model nearby, with unit prices consistent with the official platform, for easier operations and bill management;
    5. For high-repetition-prefix scenarios: confirm the target platform’s cache write billing rules before estimating, to avoid a reverse cost trap.

    6. Summary

    The core of cross-platform LLM API cost comparison is not comparing the first line of the pricing page, but comparing the rules layer: Batch discounts, subscriptions and off-peak pricing, free quotas, and cache billing—only by combining these four types of rules can you explain why the same price produces different bills. Teams should establish a semi-structured “billing rules checklist” to verify item by item whenever integrating a new model or platform, and use a segmented estimation model to translate rules into a predictable monthly bill. Cost optimization is never about switching to a cheaper platform; it is about correctly matching business traffic with billing rules.