LLM API Pricing in China: How to Adapt Model Selection and Control Costs
As Chinese LLM providers move away from subsidized pricing, developers face higher inference rates, peak-hour charges, and more granular context-cache billing. This article explains the technical drivers behind these changes and outlines a practical cost-management framework built around token-level accounting, tiered model routing, prompt optimization, and cloud cost-management tools.
1. LLM Services Are Moving Beyond the “Free Lunch”
Several cloud providers have recently adjusted their large language model API pricing, signaling a shift from low-cost market entry toward more granular billing. Community reports and publicly available information suggest three common patterns:
- Higher base prices: Inference prices for some flagship models have increased severalfold, substantially more than typical cloud service price adjustments.
- Time-based pricing: Providers are introducing different rates for peak and off-peak periods, with significantly higher charges during peak hours.
- More granular cache billing: Cached and uncached input tokens are priced separately. Although cache-hit input remains inexpensive, some of these rates have seen the largest relative increases—up to an order of magnitude.
One set of figures circulated in developer communities illustrates the trend. For an unnamed flagship model, peak-hour input pricing reached single-digit Chinese yuan per million tokens, while output pricing reached tens of yuan per million tokens. Compared with its earlier pricing, the output rate increased to more than four times its previous level. Cache-hit input remained much cheaper than uncached input, but its own rate rose by roughly tenfold.
These community-reported figures should not be treated as a current price quote. They illustrate a broader signal: the era of heavily subsidized LLM inference appears to be winding down, making underlying resource costs more visible.
2. Why Prices Are Changing: Three Technical Perspectives
2.1 Inference Has Real Resource Costs
LLM inference consumes resources in three main areas:
- GPU compute: Autoregressive decoding generates tokens sequentially. Producing output tokens is generally more expensive than processing input tokens during prefill, helping explain why providers commonly charge several times more for output than input.
- GPU memory and the KV cache: Longer contexts require larger key-value caches. Under concurrent workloads, long-context requests can substantially reduce the number of requests a GPU can serve.
- Networking and scheduling: Load balancing, streamed responses, and redundant deployments for resilience also contribute to service costs.
Free or extremely low pricing may be sustainable while usage is limited. As request volume grows rapidly and GPU supply becomes constrained, maintaining those subsidies becomes harder.
2.2 Peak Pricing Helps Manage Supply and Demand
Time-based pricing is not new to cloud computing. Traditional virtual machines and bandwidth services have long used flexible billing intervals, sometimes measured in hours or minutes. For LLM services, peak pricing uses a similar economic lever to encourage workloads to move away from busy periods.
The implications depend on the workload:
- Offline batch jobs, such as data cleaning, corpus generation, and bulk evaluation, should be scheduled during off-peak periods where practical.
- Interactive applications, such as chat and retrieval-enhanced search, need to weigh peak-hour costs against response-time requirements.
A simple scheduling policy might look like this:
def choose_model_slot(task_type, current_hour):if task_type == "batch":return "off_peak" # Schedule batch work off-peakelif is_peak_hour(current_hour):return "cache_optimized" # Prioritize caching during peak hoursreturn "standard"
This illustrates the scheduling logic rather than a provider-specific API implementation.
2.3 Granular Cache Pricing Rewards Better Context Design
Context caching is an important mechanism for reducing LLM service costs. When multiple requests share the same prefix—for example, a system prompt or a set of knowledge-base excerpts—the service can reuse previously computed KV-cache entries instead of repeating the prefill work.
Separate pricing for cache hits and misses gives developers an incentive to design requests for reuse. Cache-hit input rates often start at one-tenth of standard input pricing or less, even if their relative price increases are large.
Useful practices include:
- Place stable shared context, such as system instructions, RAG templates, and few-shot examples, at the beginning of the request and keep that prefix consistent.
- Avoid disrupting the shared prefix with dynamic content, such as timestamps or random IDs at the start of a prompt.
- Use caching for frequently repeated document passages rather than repeatedly processing the same context from scratch.
3. A Practical Cost-Management Framework for Enterprises
The new pricing environment calls for cost governance across four areas.
3.1 Establish Token-Level Cost Accounting
Many teams discover excessive spending only when the bill arrives. Instrument the request path to track token usage and the applicable rates.
A simplified accounting model is:
Cost per request = Input tokens × Input rate+ Output tokens × Output rate+ Cache-miss prefix tokens × Cache-miss rate difference
The calculation must align with the provider’s billing definitions so that cached and uncached tokens are not counted twice.
Aggregate costs by business dimension—such as product line, feature, or tenant—and build a cost dashboard. This makes it possible to identify the workloads responsible for the largest share of spending.
3.2 Use Tiered Model Routing
Not every task requires a flagship model. A common tiering strategy is:
| Task type | Model tier | Rationale |
|---|---|---|
| Intent classification and format conversion | Lightweight model | Costs can be an order of magnitude lower |
| Everyday question answering and summarization | Mid-tier model | A practical balance of cost and capability |
| Complex reasoning and code generation | Flagship model | Use selectively when the task requires it |
A router can classify the request’s intent and send it to the appropriate model tier. The original cost-saving expectation for this approach is a reduction of 30% or more in overall spending, although the actual outcome depends on the workload and pricing.
The central principle is to reserve expensive capabilities for tasks that benefit from them.
3.3 Optimize Prompts and Output Length
Because output tokens typically cost much more than input tokens, controlling generation length is one of the most direct ways to reduce spending.
Practical measures include:
- Set reasonable maximum output-token limits and use structured output to reduce unnecessary text.
- Simplify system prompts by removing redundant instructions.
- For long-document workflows, use a summarization model to compress the material before passing it to a flagship model.
These measures reduce token consumption without requiring every request to use a cheaper model.
3.4 Use Cloud Cost-Management Tools
Major cloud providers commonly offer budget alerts, billing allocation, and usage analytics. Some also provide managed model inference and elastic scaling.
For example, Baidu AI Cloud’s Qianfan platform provides capabilities for unified model access, invocation tracking, and cost management, supporting visibility across multi-model deployments. Organizations considering such platforms should verify the relevant service availability for their deployment region rather than assume global access.
Using these platform capabilities can be more reliable than maintaining ad hoc scripts to track model calls and spending.
4. Market Outlook: From Price Competition to Value Competition
A shift toward paid services does not necessarily mean that LLM adoption will become less accessible. It may instead encourage a clearer division of roles across the market.
- Leading models focus on high-value workloads. Complex reasoning, code generation, and other specialized tasks are more likely to justify paying for higher quality.
- Lightweight models and open-source ecosystems serve the long tail. Standardized, lower-complexity tasks can move toward less expensive alternatives.
- Middleware becomes more valuable. Model routing, cache optimization, evaluation, and model selection become central engineering capabilities for enterprise AI deployments.
- Transparent pricing increases pressure to differentiate. As prices converge, reliability, latency, concurrency capacity, and tooling become more important competitive factors.
Model selection therefore needs to consider more than the advertised price per token. The operational value of a service increasingly depends on how well it fits the workload and the surrounding application architecture.
5. Conclusion
The move from free or heavily subsidized LLM services toward paid inference reflects a maturing industry. For developers, it is an opportunity to strengthen engineering practices rather than simply react to higher prices.
The priorities are straightforward: establish token-level cost visibility, improve context design, implement tiered model routing, and use caching effectively.
The next phase of competition will be less about which provider is cheapest and more about which architecture delivers reliable service with a sustainable cost structure. Enterprises that establish this cost-management foundation early will be better positioned as AI applications scale.
