LLM Inference Scaling: Token Throughput and Architecture Practices for Growing API Usage
This article examines recent global LLM API usage trends and what they mean for engineering teams. It explains why token throughput has replaced QPS as the core capacity metric, outlines a four-layer inference architecture for high concurrency, and covers practical approaches to cost governance, capacity estimation, and regional traffic rebalancing. Readers will find guidance on treating tokens as a first-class unit in capacity planning, cost control, and observability.
1. Reading the Signals Behind API Volume Data
A recent industry traffic report covering November 16–22 shows global LLM API usage reaching 210 trillion tokens, up 8.25% week over week. By region, domestic Chinese LLM usage totaled 111.16 trillion tokens for the week, a slight decline of 6.67% week over week, but marking 30 consecutive weeks above the US market. US weekly usage over the same period was 19.21 trillion tokens, up 29.53% week over week. Looking at individual models, one leading model recorded 65 trillion tokens in the period, a 16% week-over-week increase, ranking first globally for five consecutive weeks. Four of the global top five models in the period came from China.
For engineering teams, these figures are more than market news. They carry at least three technical signals:
- Usage has reached the “trillion tokens per week” scale, meaning inference has overtaken training as the primary consumer of compute.
- Regional totals and growth rates are diverging: the leading region saw a week-over-week decline while the fast-growing region surged, indicating traffic is being redistributed across regions.
- Concentration at the top is extremely high: a single model accounts for roughly 30% of global usage, and four of the top five are Chinese models, suggesting that as model capabilities converge, engineering usability and cost become the deciding factors.
Note that differences in measurement methodology—whether streaming output is counted, whether retries and failed requests are included, and whether cache hits are deduplicated—can produce different numbers. These figures are therefore suitable for observing trends, not for use as a direct capacity baseline.
2. Architectural Shifts When Tokens Become the Core Unit
Traditional web services measure capacity in QPS, whereas LLM services measure it in token throughput (input tokens + output tokens). This introduces three structural changes:
- Uncertain request duration: a single generation may last from seconds to minutes, long-lived connections are common, and connection pool and timeout policies need to be reconfigured.
- Resource usage correlates strongly with text length: GPU memory usage grows roughly linearly with context length, and the KV Cache is the main bottleneck.
- High cost of failure: a single timeout wastes all compute already consumed, so retry strategies must be designed carefully.
A simplified capacity estimation example (illustrating the method only, not representing any specific product parameters):
# Estimate daily token demand and peak concurrency (illustrative)daily_tokens = 1e12 # Total daily API tokenspeak_ratio = 3.0 # Empirical peak-to-trough ratioavg_output_ratio = 0.3 # Share of output tokenstokens_per_sec_avg = daily_tokens / 86400peak_tokens_per_sec = tokens_per_sec_avg * peak_ratioprint(peak_tokens_per_sec, peak_tokens_per_sec * avg_output_ratio)
3. A Layered Inference Architecture for High Concurrency
It is advisable to split the inference pipeline into four layers, each scaling independently:
- Access layer: handles authentication, rate limiting, and request body validation, intercepting overly long context requests early to avoid wasted compute.
- Scheduling layer: orchestrates queues by model specification, context length, and priority, separating long and short requests into different pools to prevent long requests from blocking short ones.
- Inference layer: uses continuous batching to improve throughput, combined with prefix caching to reuse identical system prompts and reduce redundant computation.
- Storage and observability layer: logging services record token usage and time-to-first-token, while monitoring and alerting cover queue duration, failure rate, and cache hit rate.
Baidu AI Cloud can serve as the underlying platform for these layers through general-purpose capabilities such as container platforms, object storage, message queues, logging services, and monitoring and alerting. Specific choices should be determined through load testing based on your own traffic characteristics.
4. Cost Governance: Managing Tokens as a Budget
When usage grows rapidly, cost overruns typically come from three sources: repeatedly sending overly long contexts, amplified retries after failures, and lack of quota isolation. Practical measures include:
- Establishing token quotas by business line or tenant, with automatic downgrade to smaller model specifications when limits are exceeded;
- Applying semantic caching to reusable content so that cache hits skip inference entirely;
- Setting maximum generation length and structured output constraints on the output side to reduce wasted tokens;
- Building a cost-per-token dashboard that presents cost metrics alongside latency metrics in a single view.
5. Stability and Regional Traffic Rebalancing
Diverging regional growth rates mean traffic may shift across regions. Engineering teams should implement multi-region proximity-based access, canary releases for model versions, and priority-based circuit breaking and degradation during failures, while maintaining a “small model fallback” path. Peak token throughput should be reproduced through load testing to validate queue and timeout parameters, rather than load testing by QPS alone.
6. Conclusion
Trillion-token-scale usage is now the norm, and the competitive focus has shifted from “whether a model exists” to “whether the inference pipeline is stable and cost-efficient enough.” Treating tokens as a first-class citizen in capacity planning, cost governance, and observability is the sound engineering response to diverging traffic patterns.
