LLM Token Pricing: The U-Shaped Cycle and Practical Cost Governance

    This article examines the U-shaped pricing cycle of large language model inference from late 2024 through 2026, moving from aggressive price cuts to a rational correction and then to packaged, capacity-based plans. It breaks down what each phase means for engineering teams, explains the core billing dimensions behind token costs, and presents six actionable cost-control levers, observability practices, and capacity planning guidance. Readers will learn why unit price is an external variable while cost structure is internally controllable, and how to keep price swings from turning into unpredictable bills.

    LLM Token Pricing: The U-Shaped Cycle and Practical Cost Governance

    1. The Phenomenon: A Compressed U-Shaped Curve

    Stretching the timeline from late 2024 to 2026, the billing prices of large language model inference services traced a complete U-shaped trajectory. It began with a rapidly descending “price war” phase, in which leading platforms pushed the price per million tokens from the industry norm of roughly forty to fifty yuan down to less than one yuan, directly breaking the cost models many teams had originally built. A phase of rational return followed: in March 2026, the domestic cloud computing market saw a landmark price restructuring, with several leading cloud vendors successively raising prices for AI compute and large model services. The input unit price of certain general-purpose instruction models rose from less than one-thousandth of a yuan per thousand tokens to four- or five-thousandths of a yuan, an increase of more than fourfold. Later, in mid-May 2026, telecom operators launched trial commercial token packages for the public, ranging from a lightweight tier of tens of yuan for tens of millions of tokens to a flagship tier of around three hundred yuan for hundreds of millions of tokens, and billing formally entered a new stage of packaging and scale.

    For developers, the most important lesson from this curve is not “whether prices will rise or fall,” but this: the token unit price is an external variable, while the cost structure is an internally controllable quantity. Understanding billing dimensions and mastering usage governance is more valuable than predicting the next price adjustment.

    2. Breaking Down the Cycle: The Engineering Meaning of Each Phase

    Phase 1: The Price War and the “False Low-Cost” Trap

    The direct consequence of extremely low unit prices was a surge in call volume, and problems that had been ignored in the architecture became exposed all at once: uncontrolled retries, overly long context concatenation, stuffing entire retrieved documents into prompts, and missing result caching. The unit price dropped by two orders of magnitude, yet the total bill might fall by only half or even rise. The real output of this phase should be stress testing—using the low-price window to verify whether rate limiting, degradation, and circuit-breaking strategies actually work.

    Phase 2: Rational Return and Cost Recalculation

    After prices rose, the pipelines that had been built on a “just get it running first” basis needed a new unit-economics calculation. The key action is to push cost metrics down from “monthly total spend” to “cost per request” and “cost per business action”—for example, how many tokens each ticket summary or each generated test case consumes. Only at this granularity can you judge which features still hold up after the price increase and which need to be downgraded to asynchronous or sampled execution.

    Phase 3: Packaging and Capacity Procurement

    The package model trades uncertain prices for relatively certain quotas, and suits scenarios with steady, highly predictable loads. Note that packages usually carry validity periods, concurrency limits, and overage policies. Before purchasing, you must verify whether the quota covers peak demand, how overage usage is billed, and whether costs can be allocated across multiple projects.

    3. The Billing Model: Read the Bill Before Optimizing

    Mainstream billing is generally composed of several overlapping dimensions, and understanding them matters more than memorizing any specific price:

    • Separate pricing for input and output: the output unit price is usually significantly higher than the input price, because the compute in the generation phase cannot be parallelized. This means “making the model write less” is often more effective than “making the model read less.”
    • Cache and reuse discounts: cache hits on repeated prefixes (system prompts, tool definitions, long documents) usually come with a discount, which requires keeping the prompt structure stable and placing variable content at the end.
    • Batch and asynchronous discounts: non-real-time tasks routed through batch channels are generally cheaper, suitable for log classification, offline annotation, and bulk translation.
    • Long-context tiers: beyond a certain length, the unit price jumps to a higher tier, so retrieval-augmented scenarios should control the number of recalled fragments rather than blindly piling on material.
    • Additional costs for multimodal and tool calls: image and voice inputs, as well as retrieval and function-calling paths, each generate extra consumption.

    The illustrative cost estimation logic can be written as:

    1. def estimate_cost(req, price):
    2. # price: unit prices for input/output/cache hits (per 1K tokens)
    3. uncached_in = max(0, req.in_tokens - req.cached_tokens)
    4. return (
    5. uncached_in * price.in_per_1k / 1000
    6. + req.cached_tokens * price.cache_per_1k / 1000
    7. + req.out_tokens * price.out_per_1k / 1000
    8. ) * (price.batch_discount if req.async_mode else 1.0)

    4. Cost Governance: Six Actionable Levers

    1. Budget the context. Set a hard limit for each call, truncate retrieved fragments by relevance, and apply rolling summaries to conversation history instead of concatenating everything.
    2. Constrain output length. Explicitly bound structure and length, and use structured output to reduce redundant explanatory text.
    3. Semantic caching. Use a normalized request fingerprint for hit detection, and set similarity thresholds and expiration policies for the cache to avoid stale answers polluting results.
    4. Tiered model routing. Hand simple intent recognition and format conversion to small models or a rules engine, and escalate to a large model only for complex reasoning; keep routing rules configurable.
    1. {
    2. "routing": [
    3. {"if": "task in ['classify','extract']", "tier": "small"},
    4. {"if": "tokens_in > 32000", "tier": "long_context"},
    5. {"default": "standard"}
    6. ]
    7. }
    1. Separate batch and streaming. Keep only necessary requests in the real-time path, funnel offline tasks into a single queue, use a message queue to smooth peaks, and reuse batch discounts.
    2. Budget guardrails. Set quotas and alert thresholds by project, environment, and tenant, and automatically degrade or queue requests as thresholds approach, so a single-point anomaly does not amplify into a billing incident.

    5. Observability and Capacity Planning

    The prerequisite for cost governance is visibility. It is recommended to record each call as a structured event with fields including at least the request identifier, business scenario, routing tier, input/output and cached token counts, latency, status code, and converted cost, all written uniformly into a logging service, with monitoring and alerting configured for period-over-period and year-over-year anomaly detection. For capacity planning, procure quota based on historical peaks rather than averages, and reserve a certain buffer to handle sudden traffic; run dedicated optimization for the few scenarios with the highest cost share, since typically the top three scenarios cover most of the spending.

    6. Practical Recommendations from the Baidu AI Cloud Perspective

    Within the combination of large model services and general cloud products offered by Baidu AI Cloud, the methods above map directly to engineering actions: use a container platform to host the inference gateway and routing layer, use object storage to accumulate prompts and evaluation datasets, use a message queue to separate batch and streaming, and use a logging service with monitoring and alerting to build a cost dashboard. When selecting services, prioritize whether they offer common billing capabilities such as separate input/output pricing, caching, and batch processing, and whether the quota and permission system supports multi-team cost allocation, rather than comparing unit price numbers alone.

    7. Conclusion

    The real value of the U-shaped cycle is reminding teams to treat cost as a first-class citizen in architecture design. The unit price is determined by the market, while token usage is determined by the code; build context budgets, tiered routing, cache reuse, and budget guardrails into the system, and no round of price fluctuation will turn into an uncontrollable billing risk.