LLM API Pricing: Limited-Time Discounts, Cache Billing Cuts, and a Practical Cost Guide
As LLM inference costs become a major factor in model selection, some providers are cutting prices through limited-time discounts and permanently lower cache-hit rates. This guide explains common per-million-token billing, how to judge the real impact of a discount, how to structure requests so prefix caching actually saves money, and a practical checklist for measuring and reducing cost.
Why LLM API Pricing Is Now a Core Decision
As large language models improve quickly, inference cost has become a primary factor in enterprise model selection, second only to model quality. A notable pattern has appeared in the market: even as some overall prices trend upward, certain providers are cutting prices through limited-time discounts and permanent reductions in cache billing. In some cases the cut exceeds 70% of the previous price. This countertrend pricing reflects the interplay of compute supply, model-architecture optimization, and competition.
For developers, tracking isolated headlines about “how much one vendor cut prices” is less useful than understanding how LLM API billing actually works and applying a reusable cost-evaluation method. This article covers four areas: the billing model, the cache mechanism, discount evaluation, and optimization practice.
A Common LLM API Billing Model
Most major cloud providers, including platforms such as Baidu AI Cloud, price LLM inference per million tokens and usually split the bill into three components:
1. Input (cache miss)
This is context the model processes for the first time in a request. Those tokens require a full prefill on the compute node, so they are the most expensive input. When the context is long—for example an entire code repository or a long document—cache-miss input often dominates the bill.
2. Input (cache hit)
When the prefix of repeated requests is identical, the service can reuse intermediate state already computed for that prefix (the KV cache) instead of recomputing it. Cache-hit tokens therefore usually cost only a fraction of cache-miss tokens, and in some cases an order of magnitude less. That is why a cache price cut can reduce cost sharply.
3. Output
This is the content the model generates. Decoding is autoregressive, token by token, and cannot be parallelized in the same way as prefill. Unit cost is typically higher than for input, and there is relatively little room to discount this component.
A typical rate card might look like this, per million tokens: cache-hit input at 1 yuan, cache-miss input at 12 yuan, and output at 24 yuan. The spread can be tens of times, which means the same business request can cost several times more or less depending on how the request is structured.
How Large a Cache Cut or Limited-Time Discount Really Is
When a provider announces a “75% off” offer (a 2.5-fold discount, meaning you pay 25% of the list price) or a permanent reduction in cache pricing, evaluate three things before treating the headline as savings.
First, which billing item the discount applies to. If it applies only to output, and your workload is dominated by long-context input—code review or document Q&A, for example—the real savings can be far below the advertised percentage. If the cache-hit price is cut sharply, multi-turn chat and other repeated-prefix applications can save a great deal.
Second, whether the discount is temporary or permanent. A limited-time discount is a marketing action. Providers often do not commit to whether the price will rise after the promotion, or by how much. A practical approach is to use the window for work that can be batched in advance—historical data cleaning, batch evaluation, and offline analysis—while designing core systems so the model can be replaced, rather than locking the architecture to one price.
Third, price relative to capability. A lower unit price is not automatically better value. Judge it together with how the model performs on public benchmarks. A newer model’s output price might be double the previous generation’s, but if accuracy on code-repair benchmarks rises substantially, teams running automated programming tasks with agents may save more on retries and rework than they spend in extra token fees.
Designing Requests So the Cache Saves Money
Once the billing model is clear, the next step is to shape requests so cache-hit rates stay high. Common practices include the following.
1. Keep the prefix stable
Put content that does not change—system prompts, tool definitions, long documents, and code-index material—at the front of the request, and put the changing user input at the end. Cache matching is prefix-based: one different token in the prefix invalidates the cache. Do not insert timestamps, random IDs, usernames, or other volatile fields into the prefix.
2. Bucket prefixes by workload
If different product lines use different system prompts, keep requests within the same line on the same prefix so they form a stable cache group. Folding every variable into one generic prefix causes frequent misses.
3. Reuse context across turns
In multi-turn chat, earlier messages are a natural stable prefix. Append conversation history in order at the prefix position and add only the latest user input. Earlier turns can then keep hitting the cache. A schematic request looks like this:
[system prompt] ← stable for a long time; highest cache-hit rate[tool / function defs] ← stable for the session[prior dialogue turns] ← grows with each turn; the existing prefix keeps hitting[latest user input] ← changes every time; billed as a cache miss
4. Control the context window
Very long context—windows on the order of a million tokens—raises both cache-miss input cost and time to first token. Not every task needs a full window. Retrieve and inject only the relevant passages first. That is often cheaper, and more effective, than stuffing the entire corpus into the prompt.
Why Providers Can Cut Prices: Inference Optimization and Compute Supply
Understanding why a provider can lower prices helps you judge whether a low price will last.
- Cache reuse lowers marginal cost. On a prefix cache hit, the service skips most of the prefill computation, so the real compute used by that request drops sharply. Those savings are passed through into the cache-hit price.
- Architectural optimizations such as sparse attention. Newer models commonly use more efficient attention and finer-grained quantization at serving time, which lowers inference cost per token.
- Domestic compute at scale. As domestically produced compute clusters come online in volume and large-scale node networking matures, the hardware cost curve on the inference side moves down, and providers gain more room to set prices. That is why some technical reports preview further price cuts once compute arrives in bulk.
The implication for enterprises is straightforward: structural cuts driven by technical progress are more likely to last; promotional, time-limited discounts should be treated as a window of opportunity. Handle the two differently.
A Practical Cost-Optimization Checklist
- Measure tokens by billing item. In the application, record cache-hit, cache-miss, and output token counts for each request, and aggregate them separately. That is how you find where cost actually comes from.
- Fix the prefix first. Many teams cut input cost by more than 50% simply by reordering the request prefix. It is an architectural change with little operational risk.
- Run batch work during the discount window. While a limited-time discount is active, concentrate deferrable jobs such as offline evaluation and historical corpus processing.
- Keep the stack switchable across clouds. Wrap model calls behind a single interface adapter—for example, one chat interface in code, with configuration routing to LLM services on different clouds—so you can move quickly when prices change, including among platforms such as Baidu AI Cloud.
- Select models by cost per successful task, not price per token. For agent-style work, one failed retry can cost as much as dozens of successful calls. A stronger model with a slightly higher unit price can still be cheaper overall.
Closing
The LLM API price competition is only beginning. Limited-time discounts and cache price cuts will keep recurring. What determines long-term cost is not the size of any single promotion. It is whether your request design actually captures cache savings, whether model choice is based on real metering, and whether the system can move between providers. Get those three things right, and you stay on the better part of the cost curve no matter how list prices move.
