Global LLM Inference Token Usage: Trends, Measurement, and Capacity Planning
This article examines recent public data on global large language model token consumption and explains why usage rankings are useful for spotting trends but unreliable for capacity planning. It covers how to define a consistent token measurement spec, build a three-layer analytics pipeline with gateway instrumentation, streaming aggregation, and offline reconciliation, and translate peak traffic into resource estimates. It also outlines cost and observability metrics, common pitfalls, and practical recommendations for running stable and cost-efficient inference.
1. What the Usage Rankings Do and Do Not Tell Us
A recent report based on a public aggregation platform showed that global large model token consumption for one week was about 211 trillion tokens, up less than 1% week over week. Chinese models accounted for about 119.1 trillion tokens that week, up about 2.5%, while US models accounted for about 14.83 trillion tokens, up about 6%. Four Chinese models held the top positions. The first-place model consumed about 59.2 trillion tokens that week, up about 6%, and has stayed ahead for several consecutive weeks. Over a longer period, weekly token consumption for Chinese models has been higher than that of US models for 29 consecutive weeks.
The value of this data is not the ranking itself, but what it reveals about the real structure of inference-side load. It is important to note that any single aggregation platform covers only part of the traffic, and platforms count “one call,” “one conversation turn,” and “one tool call” differently. Rankings are therefore suitable for observing trends and relative relationships, not for use as an absolute basis for capacity planning. The more reliable engineering approach is to treat external rankings as an industry thermometer and self-built instrumentation as the real basis for capacity and cost.
Three conclusions can be drawn from a technical perspective:
- Inference load has become the main source of incremental demand in data centers, shifting the resource profile from “training first, inference second” to “training and inference equally important.”
- The head effect is clear: a small number of models carry most of the token traffic, which significantly increases the importance of single-point capacity and rate-limiting design.
- Week-over-week growth is generally in the single digits, indicating that the market has entered a phase of steady volume growth. The architectural focus is shifting from “can it run” to “does it run stably and can it be accounted for.”
2. Token Measurement: The Counting Spec Determines Whether Conclusions Are Trustworthy
A token is the smallest billing and measurement unit after text is split. Different tokenizers split the same text differently, so comparing token counts across models is inherently biased. When analyzing usage, at least the following specs must be fixed:
- Whether input and output are counted separately. Input is usually affected by context length and output by generation length, and the two differ significantly in cost magnitude.
- Whether failures and retries are included. Counting failed requests caused by timeouts, rate limiting, or content filtering will inflate usage.
- Whether multimodal inputs are converted. Image, audio, and video inputs are often converted to equivalent tokens by area or duration, and inconsistent conversion factors cause spec drift.
- Time window and time zone. Using a calendar week versus a rolling seven days can change conclusions by several percentage points.
A practical approach is to build a “spec dictionary” that records the meaning, unit, conversion factor, and missing-value handling of each field as configuration rather than scattering it across code:
metric_spec:window: rolling_7d # statistical windowtimezone: UTCtokens:input: count # input tokensoutput: count # output tokensmultimodal_factor: 1.0 # multimodal conversion factorfilters:exclude_status: [429, 499, 5xx] # exclude rate limiting and failuresdedup_by: request_id # deduplicate by request
Once the spec is fixed, derived metrics such as week-over-week, year-over-year, and share become comparable. Otherwise, it is easy to end up in the awkward situation where “usage went up but the bill did not.”
3. Collection and Aggregation: Building Your Own Usage Analytics Pipeline
To reproduce the analytics capability behind a ranking, the core is a three-layer architecture: instrumentation, streaming aggregation, and offline reconciliation.
- Instrumentation: record request metadata uniformly at the inference gateway, including request ID, model ID, input and output tokens, latency, status code, and tenant ID. The gateway is the only trusted measurement point, avoiding spec fragmentation caused by each business team reporting on its own.
- Streaming aggregation: use a message queue to receive instrumentation events, pre-aggregate them in minute-level windows, and write them to a time-series or columnar store to support dashboard queries from seconds to minutes.
- Offline reconciliation: run daily batch jobs to recalculate aggregates from raw details, and alert when the deviation exceeds a threshold, preventing long-term misjudgment caused by data loss in the streaming pipeline.
The aggregation logic is shown below (pseudocode, expressing the idea only):
def aggregate(events, window="1m"):acc = defaultdict(lambda: {"in": 0, "out": 0, "req": 0})for e in events:if e.status in EXCLUDE_STATUS: # filter failures and rate limitingcontinuekey = (e.model_id, e.tenant_id, e.ts // window_seconds)acc[key]["in"] += e.input_tokensacc[key]["out"] += e.output_tokensacc[key]["req"] += 1return acc
Three engineering points also need attention: instrumentation must be asynchronous and degradable, so that failures in the monitoring pipeline do not drag down the main path; model IDs must be versioned so that historical data remains aligned after model iterations; and a sampled copy of the raw details should be retained to facilitate post-hoc review of abnormal spikes.
4. Capacity Planning: How to Calculate Resources for High-Concurrency Inference
Usage ultimately translates into a resource bill. Capacity planning is best derived from “peak QPS × average tokens ÷ per-card throughput,” with headroom reserved for bursts. Key variables include:
- Input and output length distribution. Long-context requests significantly increase memory usage and time to first token, and should be described with percentiles (P50/P95/P99) rather than averages.
- Batching strategy. Continuous batching improves throughput but raises tail latency, requiring an explicit tradeoff between throughput and latency.
- Cache hit rate. Prefix caching and result caching can greatly reduce repeated computation in multi-turn conversations and fixed-prompt scenarios.
- Elastic scaling speed. Cold-starting inference instances involves loading weights, so scaling has minute-level delays and requires advance warm-up.
A simplified capacity estimation example:
Peak requests/second = 1200Average output tokens = 800Per-instance throughput = 6000 tokens/sRequired instances = ceil(1200 * 800 / 6000) ≈ 160With 30% burst headroom ≈ 208 instances
These numbers only demonstrate the algorithm and should be replaced with your own load-test results. Load tests should cover three profiles: “short input, long output,” “long input, short output,” and “mixed load,” and should record P99 latency and error rates to avoid optimistic conclusions based on average throughput alone.
5. Cost and Observability: Making Every Trillion Tokens Accountable
Usage must be placed on the same dashboard as cost and quality, otherwise it is easy to fall into a cycle of “the more you optimize, the more you lose.” Three categories of metrics are recommended:
- Cost: cost per token, savings from cache hits, and waste from failed retries.
- Quality: timeout rate, rate-limiting rate, content-filtering rate, and client-side retry rate.
- Efficiency: time to first token, average daily tokens per user, and average context length per request.
Attribution dimensions by tenant, model, and scenario should also be established, forming a closed loop with logging and monitoring alerts. The finer the attribution dimensions, the more precise the optimization actions. For example, if a scenario’s context keeps expanding, history trimming and summary compression can be applied at the gateway.
6. Common Pitfalls and Recommendations
- Looking only at totals and not structure: total token growth may come from a few abnormal tenants, so percentile and top-tenant analysis is needed.
- Describing latency with averages: inference latency has a clear long tail, and averages hide experience problems.
- Ignoring failed requests: failed retries consume resources and pollute statistics, and must be excluded in the spec.
- Treating rankings as a capacity basis: external samples are incomplete, and capacity must be based on your own load tests and instrumentation.
- Missing version alignment: without ID management after model iterations, historical trends break.
7. Conclusion
The significance of usage rankings is to confirm that inference load has become a long-term source of growth, not to provide capacity parameters that can be copied directly. For developers and enterprises, three fundamentals are more worth investing in: a unified and auditable measurement spec, an observability pipeline covering collection to reconciliation, and a capacity and cost model based on percentiles and load testing. With these three done well, regardless of how external rankings change, a sustainable balance between stability and cost can be achieved. Running on foundational capabilities such as the general container platform, message queue, logging service, and monitoring alerts offered by Baidu AI Cloud can help this pipeline land faster and evolve over the long term.
