Office AI Agents at Tens of Millions of Daily Users: The Engineering Challenges of Scale

    When office AI agents reach tens of millions of daily active users and tens of billions of tokens per day, the problem shifts from making a model work to sustaining throughput, cost, and reliability. This article explains why token consumption is the better scale metric, and covers continuous batching, KV cache management, tiered routing, cost control, and stability practices for production.

    What Tens of Millions of Daily Users Actually Mean

    Recent industry cases show office AI agents passing ten million daily active users, with average daily token consumption above ten billion. Setting specific products aside, those numbers are a technical problem worth studying. At this call volume, the issues are no longer the same as simply getting a model to run.

    What does ten billion tokens a day imply? For a typical large language model, a single conversation often consumes hundreds to thousands of tokens. Daily consumption at the ten-billion level corresponds to hundreds of millions of inference requests. At that scale, any efficiency loss is amplified into large resource and cost pressure. The sections below look at the main dimensions.

    1. Token Economics: The Core Measure of a Scaled Application

    In large-model applications, a token is both a unit of computation and a unit of cost. As daily active usage grows, total token consumption usually rises faster than linearly, for three reasons:

    • Accumulating session context. Agent applications must carry conversation history, tool-call results, and system prompts. Context length grows with each turn, so tokens per request keep rising.
    • Multi-step tool use. One user intent often triggers several model inferences—planning, calling tools, reflecting, and summarizing—so actual token use is several times the number of turns the user sees.
    • Long-document work. Office scenarios frequently include document summarization, spreadsheet parsing, and long-form generation, so both input and output tokens are naturally high.

    Token consumption is therefore a better reference for an AI application’s real scale than request count alone. For capacity planning, developers should treat peak token throughput (tokens per second) as the core metric, not QPS alone.

    2. Inference Architecture: The Engineering Base for Massive Concurrency

    An inference layer that supports tens of millions of daily users usually needs the capabilities below. These are already mature practice on mainstream intelligent cloud platforms, such as the general model inference services offered by Baidu AI Cloud.

    Continuous Batching

    Traditional static batching waits until a batch is full and then runs inference together. Mixing short and long requests leaves GPUs idle. Continuous batching inserts and removes requests at each decoding step, which significantly improves memory utilization and throughput.

    KV Cache Management

    In autoregressive generation, attention for each token depends on the keys and values of all previous tokens. Caching those KV tensors avoids repeated computation, but long contexts quickly fill GPU memory. Common optimizations include paged memory management and prefix-cache reuse, so an identical system prompt is computed only once.

    1. Request A: [system prompt, 512 tokens] + [user input]
    2. Request B: [system prompt, 512 tokens] + [user input]
    3. → Prefix cache hit: the KV for 512 tokens is computed once and reused by A and B

    Tiered Routing

    Not every request needs the strongest model. Routing by task complexity—smaller models for simple intent recognition, larger models for complex reasoning—can cut overall cost substantially without hurting the experience.

    3. Cost and Stability: Two Barriers That Scaling Cannot Avoid

    Cost Optimization

    Ten billion tokens a day means substantial compute spend. The main room to optimize is:

    • Prompt compression. Trim redundant system prompts and express instructions in a structured form with lower token density.
    • Output constraints. Use clear format requirements and length limits so the model does not produce long, useless content.
    • A cache layer. For frequent, highly deterministic Q&A, use a semantic cache and return a hit directly instead of running model inference.

    Stability

    Tens of millions of daily users impose strict availability requirements. In engineering terms, that means:

    • Elastic scaling. Automatically adjust the number of inference instances from predicted token throughput, to handle the clear morning peaks and afternoon swings of office usage.
    • Degradation. When inference capacity is tight, switch to a lighter model or return cached results so core functions stay available.
    • End-to-end monitoring. Track latency, token throughput, error rate, and GPU memory use with fine-grained alerts so bottlenecks can be found quickly.

    4. Practical Takeaways for Developers

    Competition among scaled AI applications is moving from model selection to engineering capacity. Teams preparing to put AI agents into large-scale production should start in three places:

    1. Rebuild measurement around tokens. Put token throughput and token cost per request into core monitoring.
    2. Prefer mature cloud inference. Use elastic inference, model hosting, and monitoring from a general intelligent cloud platform instead of building everything from scratch.
    3. Design for cost from the start. Prompts, caching, and tiered routing should be part of the architecture, not fixes after launch.

    When a company treats AI as infrastructure that its business depends on, the gap is often not who uses a more advanced model, but who can run massive call volume stably and at low cost. That is both a technical problem and a long-term test of the engineering team.