Why LLM API Price Cuts Still Lead to Budget Overruns

    A practical look at why discounted LLM API pricing rarely translates into lower bills. The article explains how time-based pricing, cache hit rates, and retries reshape the real cost structure, and offers a cost accounting model based on feature, lane, and result status to keep budgets accurate.

    Start With the Conclusion: The Price Cut Is Real, but Budgeting at One-Quarter Will Be Wrong

    The unit price drop is a fact. But plugging the discount ratio from the news into a budget model will almost certainly lead to underestimation. LLM service billing is not as simple as “one unit price multiplied by call volume.” It is a multi-dimensional bill determined by pricing dimensions, time windows, cache state, and call result status. Any extrapolation that takes only one of these dimensions will be distorted.

    Months ago, a cloud provider announced that the API price of a general-purpose model converted a planned short-term discount into a long-term price: output dropped from $3.48 to $0.87 per million tokens, input from $1.74 to $0.435, and cache-hit input from $0.0145 to $0.003625. The numbers all match, and it is indeed one-quarter of the original price. The problem is that this price list was later replaced.

    The Replaced Price List: Time-Based Pricing Rewrote the “Discount”

    Starting in mid-August this year, the model moved to two-tier pricing with peak and off-peak rates. The current official pricing page shows roughly:

    • Output: $1.98 per million tokens off-peak, $3.96 peak
    • Input (cache miss): $0.66 off-peak, $1.32 peak
    • Cache-hit input: $0.022 off-peak, $0.044 peak

    The peak windows are weekdays from 1:00–4:00 and 6:00–10:00 UTC, which correspond to 9:00 AM–12:00 PM and 2:00–6:00 PM Beijing time. This range happens to cover the hours when most teams are actively working at their computers.

    This leads to three counterintuitive conclusions:

    1. Peak output at $3.96 is about 14% higher than the original $3.48.
    2. Peak cache-hit input at $0.044 is more than three times the original cache price of $0.0145.
    3. Even off-peak output at $1.98 is about 57% of the original price, far from one-quarter.

    In other words, the “one-quarter” figure belongs to a price list that has been taken offline. Writing it into an annual budget means using a nonexistent price as the baseline.

    The Three Real Variables That Determine Your Bill

    3.1 Time of Day: You Cannot Choose When Demand Arises, but You Can Choose When to Run Batch Jobs

    Time-based pricing makes the temporal structure of supply and demand explicit. Interactive scenarios (IDE completion, conversational troubleshooting, real-time review) can hardly be moved and must bear peak prices. Deferrable scenarios (offline summarization, batch labeling, regression evaluation, log clustering, overnight data cleaning) have natural scheduling flexibility. In engineering terms, calls should be split into an “online” lane and an “offline” lane, with the offline lane forced to run during off-peak windows.

    3.2 Cache Hit Rate: The Most Easily Overestimated Source of Discounts

    The cache-hit price is usually only a fraction of the cache-miss price, which makes it look like the biggest lever. But it depends on prefix stability. Putting timestamps, random request IDs, or user-concatenated strings into the system prompt will invalidate the prefix hash. The practical rule is to put stable content first and volatile content last, keeping the prompt prefix byte-for-byte identical.

    1. [Stable prefix] System role + tool descriptions + output format constraints + a few fixed examples
    2. [Semi-stable section] Domain knowledge, glossary (version-controlled; any change counts as a new prefix)
    3. [Volatile suffix] User question, timestamps, session context, retrieved snippets

    3.3 Retries: The Only Variable That Can Completely Erase the Discount

    Failed calls are billed too. A timeout, a rate limit, or a stream interruption can all produce full input tokens and partial output tokens. The effect of a 75% price cut can be wiped out by three ineffective retries. Retries must therefore be governed as an independent cost center, not scattered across for loops everywhere.

    Doing the Math: A Practical Cost Accounting Model

    A three-dimensional ledger based on “feature—lane—result status” is recommended, with an independent budget for each feature line:

    1. # Pseudocode: accounting instrumentation on the call side
    2. record = {
    3. "feature": "code_review", # feature line
    4. "lane": "online", # online / offline
    5. "peak": is_peak(utc_now()), # whether it is peak time
    6. "in_tokens": usage.input_tokens,
    7. "cache_hit_tokens": usage.cached_tokens,
    8. "out_tokens": usage.output_tokens,
    9. "attempt": attempt_no, # which attempt this is
    10. "status": "timeout", # ok / timeout / rate_limited
    11. }
    12. ledger.append(record) # failures and retries are aggregated separately into an independent budget line

    Three metrics are suggested as the fixed aggregation basis: cost per unit of effective output (CNY per thousand successful tasks), cache hit rate, and the share of invalid calls. Looking only at the total bill hides structural problems; looking only at unit price hides problems in how the service is used.

    Two Changes Worth More Attention

    First, the web and mobile interfaces have begun showing quota consumption, moving cost from “month-end reconciliation” to “visible during the process.” This means cost governance can shift left to the development stage: wiring quota metrics into monitoring alerts and logging services, and setting thresholds by feature line on a general monitoring dashboard, is far more effective than chasing accounts after the fact.

    Second, server-side retrieval triggered by model calls is no longer billed separately. This trend of “bundling capabilities into the main billing item” will keep changing the cost structure: a retrieval pipeline that used to require your own orchestration may no longer be a major expense, while the operational complexity of a self-built pipeline becomes a cost item instead. When evaluating, compare total cost of ownership for “self-built vs. platform built-in” in the same table rather than comparing unit prices alone.

    Three Rules

    1. Use only the prices on the official pricing page on the day of budgeting; news and historical announcements are never a baseline. Make “price fetching” an automated script included in the daily build.
    2. First determine the time distribution of your own workload, identify which tasks are deferrable offline jobs, and minimize peak exposure.
    3. Split the ledger by feature, with retries and failures as separate lines; close the loop with quota visualization plus monitoring alerts.

    On platforms such as Baidu AI Cloud, the same approach applies in general practice: build an offline scheduling and cost observability pipeline with general-purpose capabilities such as object storage, message queues, container platforms, logging services, and monitoring alerts, isolating price fluctuations from the budget model so that price cuts can truly turn into accountable gains.