Rebuilding LLM Cost and Call Strategies After an API Price Increase

    This article explains how to respond to LLM API price increases by measuring the full cost of completing a qualified task, not by comparing list prices alone. It shows how to break token billing into uncached input, cache-hit input, and output costs, use a hypothetical bill to find the main cost drivers, and calculate qualified task cost. It also covers how to compare alternatives with a fixed test set, reduce migration risk through an adapter layer and gradual rollout, and cut waste through context, output, caching, and retry controls.

    After an API price increase, developers usually react in one of two ways. They look for a cheaper option right away, or they keep the same service and reduce call volume. Neither choice should rest on the price list alone.

    The real cost of an LLM service depends on input size, output length, cache hit rate, retry count, task success rate, and the human effort needed to correct results. The same price change can affect short text classification, long-document Q&A, and multi-turn code generation very differently.

    So the real question is not “how much more expensive is each million tokens?” It is: how much does it now cost to complete one business task that meets quality requirements? And under a fixed budget, how many valid results can the system still deliver?

    This article does not treat unverified price change dates, call rankings, or internal platform reports as confirmed facts. Any numbers are hypothetical scenarios that explain the calculation method. They do not represent the actual prices of any specific service.

    1. Break Down the Bill Before Judging the Impact of a Price Increase

    1. Calculate input, output, and cached input separately

    A token is the unit a model uses to process text. Its count does not equal the number of Chinese characters, characters, or English words. Different tokenizers map the same content to different token counts, so cost estimates should use the usage data returned by the service, not estimates based on text length.

    For a service that charges per token and prices cache-hit input separately, you can use this simplified formula:

    1. Cost per request = uncached input tokens × uncached input price ÷ 1,000,000
    2. + cache-hit input tokens × cached input price ÷ 1,000,000
    3. + output tokens × output price ÷ 1,000,000

    Avoid double counting. Cache-hit input and uncached input are two mutually exclusive parts of total input. Do not charge all input at the full rate and then add the cache charge on top.

    Real bills may include other charges. If the service bills separately for extra computation, tool calls, or storage, add those according to the confirmed billing rules. Do not assume the formula above covers every cost.

    2. The largest price increase does not always have the largest impact

    Suppose output accounts for 70% of an application’s model spending and input accounts for 30%. If the output price triples while the input price stays the same, and request volume, token volume, and cache structure all stay constant, total cost becomes:

    70% × 3 + 30% × 1 = 2.4 times the original.

    Conversely, if the price of cached input rises sharply but cached input made up only a small share of the bill before, total cost may not rise much.

    To judge the impact of a price change, weight each billing item by its historical share of spending instead of averaging the percentage increases. For applications that repeatedly send long contexts, also recalculate the share of cache spending on the new bill.

    3. Capacity under a fixed budget does not fall by the same percentage as the price

    If the average cost per request becomes k times the original, and the budget, traffic mix, and success rate stay the same, the number of requests the budget can support falls to about 1/k of the original.

    For example, if the average request cost rises to 3.5 times the original, the budget supports about 28.6% of the original number of requests, a drop of about 71.4%.

    Capacity can fall further in practice. Outputs may grow longer, cache hit rates may drop, retries may increase, or the task structure may change. Do not assume that the request volume change in this example applies to every application.

    2. Build a Model That Turns Request Costs into Task Costs

    1. Use the distribution of workloads, not a single average

    Track the following data for each business type:

    • Input and output token counts, and their distributions;
    • Cache hit rate, measured in tokens;
    • Number of requests triggered per task;
    • Timeouts, failures, retries, and fallbacks;
    • End-to-end response time;
    • Business acceptance pass rate;
    • Time spent on human review and correction.

    The share of requests that hit the cache and the share of input tokens that hit the cache are different metrics. A request may hit a short prefix and still have most of its input billed at the uncached rate. For cost calculation, the token-based metric is usually more direct.

    Averages work for estimating total budget, but they hide the risk from a small number of very long requests. Also look at median and high-percentile values for input, output, and latency. These reveal the cost tail caused by long contexts, multi-turn loops, and abnormal retries.

    2. Use a hypothetical bill to see the cost structure

    Suppose an application sends 1 million requests per month. Each request averages:

    • 2,000 input tokens;
    • 500 output tokens;
    • 50% of input tokens hitting the cache.

    Assume three unit prices