How to Cut LLM Inference Costs After Reaching 100 Million Daily Active Users
This article explains why inference cost becomes the central engineering problem once a generative AI application passes 100 million daily active users, and why cost curves can rise rather than fall as usage grows. It covers demand complexity, the quadratic cost of long context, and peak concurrency overhead, then walks through practical cost-reduction paths: sparse MoE activation, KV cache and paged memory management, continuous batching and scheduling, model tiering and routing, and cost observability. A developer checklist and a blended per-token cost estimate are included to help teams treat cost as a first-class metric.
1. What 100 Million DAU Really Means: From “It Works” to “Cost Is Controllable”
Once a generative AI application crosses the 100 million daily active user threshold, the industry conversation shifts from “is the model capable enough” to “can the unit inference cost hold up.” In the same time window, a cloud provider disclosed that its large model processes tens of trillions of tokens per day, more than a tenfold year-over-year increase, with over a hundred enterprises each consuming more than a trillion tokens cumulatively. Put together, these figures do not point to one vendor’s victory; they reflect a structural fact: large models have moved from the demo stage into large-scale online service, and the cost model must be treated as a core engineering problem.
1. Call Volume Does Not Scale Linearly with User Count
DAU counts people; tokens count work. A user who only asks questions may consume a few thousand tokens per session, while a user running long-document analysis, code generation, or multimodal generation may consume hundreds of thousands of tokens per task. Doubling the user base can therefore drive a tenfold increase in compute consumption.
2. Cost Must Be Estimated as a Blended Unit Price
A common industry practice is to weight input and output prices by a typical conversation ratio into a blended price per million tokens. The order of magnitude given in the original text is roughly CNY 0.0008 per thousand input tokens and CNY 0.002 per thousand output tokens; weighted at a five-to-one input-to-output ratio, that is about CNY 1 per million tokens. If half of those calls serve the provider’s own applications at 25 trillion tokens per day, the cost equivalent of external API usage alone reaches roughly CNY 2.5 million per day. The point is not precision but a sense of scale: every architecture decision has to be measured against a “millions per day” baseline.
2. Why Costs Do Not Fall Automatically, and May Rise
Many people assume that larger scale means lower marginal cost, but in generative AI the cost curve trends upward if technical progress stalls.
1. Demand Complexity Escalates Naturally
Users do not stay with chit-chat, summarization, and polishing forever. Once habits form, demand migrates to text-to-image, audio and video generation, code engineering, and deep research. These tasks share three traits: longer single outputs, multi-turn tool calls, and retrieval plus reflection loops, which amplify token consumption by orders of magnitude.
2. Long Context Brings Nonlinear Overhead
Attention computation grows quadratically with sequence length, so long-context scenarios cost far more compute than short conversations. When a product starts supporting “an entire book” or “an entire code base” as context, cost pressure rises sharply.
3. Peak Concurrency Determines Resource Redundancy
Online services must be provisioned for peak load. With over 100 million DAU, the peak-to-trough ratio can reach several times; relying only on a static resource pool leaves average utilization low, and idle capacity is pure loss.
3. Cost-Reduction Paths That Actually Ship
1. Sparse Architectures: Activate Only the Necessary Parameters
A mixture-of-experts (MoE) architecture with sparse activation activates only about 10% of parameters at inference time, theoretically saving roughly 90% of inference compute compared with full-parameter activation. Two engineering concerns matter: routing balance, to avoid overloading popular experts, and communication overhead, since expert parallelism adds network transfer that must be matched to the cluster topology.
The routing logic can be abstracted schematically as:
# Pseudocode: Top-K sparse routinglogits = router(x) # [batch, num_experts]topk_val, topk_idx = logits.topk(k=2)gate = softmax(topk_val)y = sum(gate[i] * experts[topk_idx[i]](x) for i in range(k))
2. KV Cache and GPU Memory Management
Autoregressive generation requires caching historical keys and values, and the cache often consumes more memory than the weights. Paged memory management (commonly known in the industry as PagedAttention-style approaches) splits the cache into fixed-size blocks allocated on demand, substantially reducing fragmentation and waste. Combined with prefix cache reuse, shared prefixes such as system prompts and long documents are computed only once, saving meaningful compute for workloads with high hit rates. After these optimizations land, GPU utilization typically has several-fold room for improvement.
3. Scheduling and Batching
Continuous batching lets new requests join a batch that is already generating, so long and short requests no longer hold each other back. Adding a priority-tiered queue that isolates interactive requests from offline batch jobs lets a single cluster balance latency and throughput.
4. Model Tiering and Routing
Not every request deserves the most expensive model. A workable approach is to classify intent and split traffic: simple question answering goes to a small model or the cache, complex reasoning goes to the large model, forming a cost gradient.
request -> complexity check -> {cache hit? return directly}-> {simple: small model}-> {complex: large model + tool calls}
5. Observability and Cost Attribution
Cost reduction starts with visibility. Instrument token consumption across multiple dimensions: by business line, by user tier, by input-to-output ratio, and by cache hit rate, with monitoring and alerts for abnormal spikes. Logging and alerting systems should treat “token cost per ten thousand requests” as a first-class metric.
4. A Practical Checklist for Developers
- Set token budgets: cap per-task usage for each feature, and degrade or switch to async when the cap is exceeded.
- Prioritize prefix reuse: place stable system instructions and knowledge snippets up front and cache them.
- Control output length: use structured output and segmented generation instead of one long text block.
- Shift offline jobs off-peak: run batch summarization and index building during troughs, scaling with an elastic container platform.
- Continuously load-test the peak-to-trough ratio: replay real traffic to calibrate resource redundancy.
Overall, 100 million DAU is not the finish line but the starting gun for cost governance. Only by combining sparse architectures, memory and cache management, intelligent scheduling, model tiering, and cost observability into a system can the price of a unit of intelligence genuinely fall as scale grows, even while demand keeps escalating.
