Token Revenue Can't Keep Up with Storage Price Increases

    This article explains why high token call volume does not translate into proportional revenue for LLM API providers: revenue scales with tokens, while cost scales with resident state stored in memory and storage. It contrasts traditional chat workloads, where resources are released per request, with AI Agent workloads that keep long-lived context cached for hours. The article outlines four sources of underestimated cost, then presents engineering practices such as session lifecycle policies, context tiering and compression, prefix cache governance, capacity planning based on concurrent sessions, and aligned observability and metering. It closes with an action checklist for platform providers and developers.

    1. The Core Misconception: Revenue Is Priced per Token, Cost Is Priced per GB

    Discussion of large model APIs has long stayed within two dimensions: model capability rankings and price per million tokens. As a result, the market has accepted a simple narrative — Chinese models are taking budget away from overseas developers by competing on performance and price. Among aggregated API channels, the top three providers account for the vast majority of call traffic, and open-source models have reached nearly 20% of token consumption.

    The same dataset contains a more telling number: open-source models attract close to one-fifth of call volume but correspond to only about 4% of total enterprise model spending, while most of the budget still flows to closed-source capabilities. High call share does not equal high revenue share, because the call mix includes a large volume of low-priced, short-context, trial-oriented requests.

    Volume is not the real issue — cost structure is. Selling tokens looks like selling compute, but what is actually delivered is “state”: the full context of a request, intermediate computation results, and reusable prefix caches all have to reside somewhere. State does not depend on floating-point operations; it lands in memory and storage, which happen to be the components under the heaviest price pressure in the current hardware cycle. The conflict takes shape: revenue grows linearly with tokens, while cost grows with resident capacity, and the two curves are not synchronized.

    2. Two Workload Types, Two Resource Models

    2.1 Traditional Chat: The Request Is the Lifecycle

    The resource model for conventional question answering is straightforward: a request arrives, the inference cluster completes the computation and returns content; when the session ends, the cache used for that request is released and the hardware returns to idle. Under this idealized model, providers can approximate cost using total token volume, and while cluster utilization still has headroom, higher throughput dilutes unit cost — the logic of “low price, high volume, profit through scale” holds, and token count and resource consumption are assumed to grow at a similar pace.

    2.2 Agent Tasks: State Resides Long-Term

    The main driver of new traffic is shifting from scattered human-machine conversations to AI Agent tasks with automated chains, such as intelligent coding tools, batch document processing, and automated operations assistants. Their resource rhythm is clearly different:

    • Startup requires loading hundreds of thousands of tokens of upfront documents and business data;
    • This is followed by dozens of rounds of chained tool calls that continuously retrieve and read external information;
    • A single session may stay open for hours or longer, with the same upfront context reused repeatedly;
    • Unless the session is actively closed, the context cache keeps consuming resources — generating new tokens is only an append and does not automatically return that occupancy to the resource pool.

    The difference in resource occupancy can be expressed schematically:

    1. Traditional chat: occupancy ≈ single-request context × request duration (seconds)
    2. Agent task: occupancy ≈ resident context × session lifetime (hours) × concurrent sessions

    As the share of long-session traffic rises, the constraint point shifts: the competition is no longer only about output tokens per second. The ceiling on concurrently resident sessions becomes the new tight constraint, and that ceiling is determined by memory capacity and storage throughput, not by peak compute.

    3. Four Sources of Underestimated Cost

    1. Caches only grow. Chained calls keep appending new content, and prefix caches and intermediate state lack an explicit reclamation policy, so capacity rises monotonically.
    2. Sessions and requests are decoupled, which breaks accounting. Billing and monitoring operate per request, while capacity is consumed per session, so the capacity watermark stays “invisible” on dashboards.
    3. Reuse rate is proportional to residency time. Context reuse improves hit benefits but also locks the same state in place longer, amplifying benefit and cost at the same time.
    4. Long-tail sessions are forgotten. Sessions that exit abnormally or time out without cleanup form “zombie state” that occupies capacity indefinitely without generating revenue.

    4. General Engineering Solutions

    4.1 Define an Explicit Lifecycle for Sessions

    Set an idle timeout, a maximum lifetime, and a maximum accumulated context length for each workload type, and trigger state reclamation on timeout. Lifecycle parameters should be configurable and observable rather than hard-coded in the business layer.

    1. session_policy:
    2. idle_timeout: 120s # reclaim when no new request arrives
    3. max_lifetime: 2h # hard upper bound
    4. max_context_tokens: 200k # trigger compression or spill to storage
    5. on_evict: persist_or_drop # archive to object storage or drop

    4.2 Context Tiering and Compression

    Split state into hot, warm, and cold tiers: the hot tier holds the prefix cache required for the current turn, the warm tier holds recent tool call results, and the cold tier is written to object storage and pulled back when needed. Combined with summary compression, structured extraction, and retrieval-based recall instead of loading everything upfront, this can significantly reduce resident capacity.

    4.3 Prefix Reuse and Cache Governance

    Mark stable system prompts and document prefixes for explicit reuse and place volatile parts at the end to improve hit rates; also set capacity quotas and eviction policies for caches to prevent “grow-only” behavior. Hit statistics should include a capacity dimension, not just a hit-rate percentage.

    4.4 Capacity and Concurrency Planning

    Treat the number of resident sessions as a first-class capacity metric, estimate memory and storage needs using “average residency per session × target concurrency × safety factor,” and reserve headroom for price-increase cycles. Load testing should cover long-session scenarios rather than only peak throughput for short requests.

    1. required_capacity ≈ avg_resident_per_session × target_concurrency × 1.3

    4.5 Observability and Aligned Metering

    Collect request-level metrics (tokens, latency) and session-level metrics (residency, lifetime, eviction count) at the same time, and place both in a single cost view — only then can you locate the real cause of “revenue up, gross margin down.” Log services, monitoring alerts, and the elastic scaling policies of container platforms should be triggered by session semantics rather than CPU utilization alone.

    5. Action Checklist for Platform Providers and Developers

    • Platform providers: establish per-session capacity quotas and reclamation mechanisms, factor storage cost into the pricing model, and apply different resource policies to long-residency workloads than to short requests; on general capabilities from cloud platforms such as Baidu AI Cloud, combine object storage, message queues, container platforms, and monitoring alerts into a state management layer that is both reclaimable and observable.
    • Developers: control the volume of context loaded upfront and retrieve on demand instead of inserting everything; close sessions explicitly to avoid zombie state; make timeouts, compression, and archiving default behavior rather than options.

    6. Conclusion

    When call share and spending share diverge noticeably, it means the industry is still using an old cost model to explain a new workload shape. Agent workloads push the cost center from compute toward state residency, and the memory and storage price cycle amplifies that gap. Whoever first makes session lifecycle, context tiering, and capacity metering solid will be able to protect gross margin in the token price war and turn “chasing volume” into a sustainable business.