Why Inference Costs Keep Rising Despite Falling Token Prices

    While the price per token for LLM inference has dropped by orders of magnitude, many enterprises are seeing their monthly inference bills grow rapidly. This article explains why total spending is the product of unit price, call volume, and token size per call, breaks down the real cost drivers—including context bloat, agentic call chains, model-tier mismatch, and poor observability—and outlines a practical governance path: usage attribution, tiered routing, context slimming and caching, batching, output constraints, and elastic capacity. It also argues for treating cost as a first-class engineering metric alongside latency and accuracy.

    1. The Counterintuitive Trend: Unit Prices Fall, Bills Rise

    Over the past two years, the per-token price of model inference has fallen faster than most people expected. Take a model that only delivered mid-tier conversational quality two years ago: its price per million tokens dropped by more than two orders of magnitude in less than two years, from roughly $20 per million tokens to around $0.07 per million tokens. The drivers are no mystery: better chip efficiency, maturing compression techniques such as quantization and sparsification, finer-grained batching and memory management, and extensive operator fusion and reuse in inference engines.

    But switch the lens from “unit price” to “what an enterprise actually pays each month for inference,” and the conclusion is almost the opposite: total spending is climbing fast. The reason is straightforward—total cost equals unit price multiplied by call volume multiplied by the token size of each call, and the latter two often grow exponentially. A two-order-of-magnitude drop in unit price is easily swallowed by a three-order-of-magnitude increase in call volume.

    A frequently cited comparison illustrates the structural issue: training a large model of one generation cost on the order of $150 million, while its inference spending in production over one year can reach around $2.3 billion. Meanwhile, the industry widely expects that by around 2030, inference will account for roughly three-quarters of all AI compute. In other words, training is a one-time capital expense, while inference is an ongoing operating expense—and the latter is the main source of long-term financial pressure.

    2. Breaking Down Inference Costs: What You Are Actually Paying For

    To manage cost, you first need the right cost model. An inference bill is not a single variable but the product of multiple factors:

    • Input tokens: prompts, system instructions, retrieved document fragments, conversation history.
    • Output tokens: content generated by the model, usually priced higher than input.
    • Caching behavior: whether repeated prefixes hit the cache, which directly determines how long prompts are billed.
    • Concurrency and peaks: peak concurrency dictates how much throughput capacity you must reserve, and idle capacity is billed too.
    • Model tier: using a flagship model versus a lightweight one for the same task can differ in unit price by one to two orders of magnitude.
    • Failures and retries: repeated calls caused by timeouts, rate limits, and format-validation failures are a hidden major cost.

    A piece of illustrative pseudocode expresses this relationship more clearly than any prose:

    1. # For illustrating cost structure only; not any specific platform API
    2. def estimate_monthly_cost(calls, in_tok, out_tok,
    3. price_in, price_out, cache_hit=0.0, retry=0.0):
    4. billable_in = in_tok * (1 - cache_hit)
    5. per_call = billable_in * price_in + out_tok * price_out
    6. return calls * per_call * (1 + retry)

    This formula reveals three key levers: reducing token size per call, improving cache hit rate, and cutting wasted retries. Their benefits are multiplicative, so the optimization order should be measure first, then cut the largest term.

    3. Four Real Sources of Rising Total Spend

    First, context bloat. To make answers more reliable, engineering practice commonly adds retrieval augmentation, long-document summarization, multi-turn memory, and tool-call instructions, pushing input tokens per request from a few hundred to tens of thousands quickly. Input-side growth often outpaces business growth.

    Second, a structural rise in call frequency. Agent-style applications split a single user request into planning, retrieval, execution, validation, summarization, and other stages, each of which is one or more model calls. The user feels they “asked once,” but the bill shows a dozen-plus calls.

    Third, tier mismatch. Many classification, extraction, and format-conversion tasks that a lightweight model could handle are routed uniformly to a flagship model—the most common and easiest waste to fix.

    Fourth, lack of observability. Without usage attribution broken down by business line, scenario, and user, you cannot locate cost hotspots, and optimization becomes guesswork.

    4. A Practical Path to Cost Governance

    Governance should follow the order: quantify first, then tier, then automate.

    1. Build usage attribution. Tag every call with scenario, version, and tenant labels, and break costs down to the smallest accountable unit; combine this with logging services and monitoring alerts to produce daily reports and anomaly alerts.
    2. Tiered routing. Use intent recognition or rules upfront to distribute requests across capability tiers, escalating to a stronger model only when confidence is low.
    1. def route(task):
    2. if task.type in {"classify", "extract", "format"}:
    3. return "light" # lightweight tier
    4. if task.confidence < 0.6:
    5. return "strong" # escalate for complex reasoning
    6. return "standard"
    1. Context slimming and caching. Place stable system instructions and knowledge fragments upfront and reuse cached prefixes, rerank and truncate retrieval results, and summarize and compress conversation history instead of concatenating it in full.
    2. Batching and asynchrony. Merge offline tasks into batch submissions, use queues to smooth peaks and fill valleys, and replace peak-reserved capacity with a flatter throughput curve.
    3. Output-side constraints. Use structured output and maximum-length limits to control generation size and reduce retries caused by format-validation failures.
    4. Capacity and elasticity. Deploy the stateless inference layer on a container platform for horizontal scaling, with metrics-driven scaling policies, to avoid paying for peak capacity year-round.

    5. Treat Cost as a First-Class Engineering Metric

    The essential shift in inference cost is that it has moved from a “technology selection problem” to a “unit economics problem.” Falling unit prices are an industry trend that no single team controls; but call volume, context length, model tier, and retry rate are entirely within a team’s control. The mature approach is to put metrics like “cost per successful request” and “cost per valid result” on the same dashboard as latency and accuracy, and to set cost-budget gates in the release process, turning optimization from firefighting into routine practice.

    In related practice at Baidu AI Cloud, the general approach also centers on observable usage attribution, tiered model routing, and elastic containerized hosting, turning inference spending into a predictable, attributable, and optimizable operational item. Whoever builds the cost model first is more likely to maintain healthy unit economics when application usage surges.