LLM Inference Engineering Behind a Revenue Surge: Capacity Planning, Cost Optimization, Multi-Tenancy, and Compute Supply

    A technical analysis of how a fast-growing large-model vendor turns rapid API and enterprise-subscription growth into sustainable inference capacity. Using public financial metrics as a starting point, it covers token-based capacity planning, continuous batching, paged KV cache management, prefix caching, cost observability, multi-tenant isolation and quotas, layered compute supply, and a phased rollout roadmap.

    LLM Inference Engineering Behind a Revenue Surge: Capacity Planning, Cost Optimization, Multi-Tenancy, and Compute Supply

    A leading large-model developer recently filed an updated prospectus with regulators that disclosed its latest quarterly results. Public reports say quarterly total revenue rose more than tenfold year over year, with API calls, enterprise subscriptions, and custom services driving the increase. The company also said that none of its product lines runs advertising. Revenue growth was accompanied by large investments in compute infrastructure and R&D, as well as large outstanding contracts and long-term compute procurement commitments.

    For developers and platform architects, the most important question behind these numbers is simple: when call volume grows by orders of magnitude, how can a scalable, auditable, and governable inference system turn that growth into sustainable service capacity? Using public financial metrics as a starting point, this article systematically reviews capacity planning, cost optimization, multi-tenant architecture, and compute supply strategy for large-model inference platforms.

    1. From Financial Metrics to Inference Platform Engineering

    Public reports summarize the key figures in five categories:

    • Quarterly revenue of about $16.96 billion, up about 1,127% year over year.
    • Cumulative revenue from the start of the year through the end of Q3 of about $33.24 billion, up about 1,200% year over year.
    • More than 11,900 enterprise customers with annualized revenue of at least $100,000.
    • Total outstanding contract obligations at period end of about $320 billion.
    • A current-period net loss of about $23.3 billion under GAAP.
    • Total spending commitments at period end of about $895.4 billion under compute purchase commitments and long-term lease agreements.

    These are business results, but when compared with the technical characteristics of inference systems, they point to four signals that most directly affect architecture decisions:

    1. Revenue is tightly coupled to call volume, so unit cost must keep falling. In a model where the company does not run ads and revenue comes entirely from API calls and enterprise subscriptions, revenue growth is nearly equivalent to call-volume growth. Inference compute is consumed roughly linearly with load. If the decline in unit token cost is slower than the decline in pricing, then as scale grows, profit margins can narrow rather than expand.

    2. Large customers form the base, so multi-tenant governance must come first. More than 10,000 enterprise customers have annualized revenue above $100,000. A single large customer may generate high-frequency, long-context, latency-sensitive production workloads. A traffic spike from one large customer can affect service quality across an entire cluster.

    3. Large outstanding contracts mean future load is already locked in. The roughly $320 billion in outstanding contract obligations at period end is essentially signed but not yet delivered service volume. The platform must accurately translate contractual commitments into compute demand curves; otherwise, it risks resource shortages during delivery periods or idle resources in normal periods.

    4. The net loss and massive compute commitments show that capacity is the core asset. In the short term, heavy-asset investment bought customer growth. In the long term, the scale and structure of compute commitments determine whether the platform can maintain supply elasticity as model generations change rapidly.

    2. Capacity Planning: Use Token Throughput Instead of Request Count

    2.1 Why Requests per Second Can Mislead

    Traditional online-service capacity models are built around QPS—queries per second—on the assumption that each request has roughly the same computational cost. Large-model inference is the opposite. A request that rewrites only a dozen characters and a request that analyzes a document with tens of thousands of input tokens and thousands of output tokens can differ in computational cost by more than two orders of magnitude. If capacity is measured only by QPS, a platform can be overwhelmed by a small number of very long requests even when average load looks moderate.

    A more reasonable approach is to use tokens as the core unit and split load into two dimensions:

    • Prefill: processes all input tokens at once. It is compute-intensive, primarily limited by accelerator compute, and directly determines time to first token (TTFT).
    • Decode: generates output tokens one at a time. It is memory-intensive. Every step must read model weights and the KV cache, so it is primarily limited by memory bandwidth and memory capacity. It determines time per output token (TPOT).

    2.2 Key Capacity Metrics

    Metric Meaning Role in capacity planning
    Total throughput (tokens/s) Input and output tokens processed per second across the cluster Measures overall cluster capacity
    Output throughput (tokens/s) Output tokens generated per second Measures the decode-stage bottleneck
    TTFT (time to first token) Time from request submission to receiving the first token Mainly composed of prefill time and queue wait
    TPOT (time per output token) Average interval between adjacent tokens in the generation phase Mainly determined by batch size and memory bandwidth
    KV cache occupancy Used KV memory as a share of allocatable KV memory Determines concurrency limits and preemption frequency
    Batch efficiency Actual throughput relative to theoretical peak throughput under the same configuration Identifies scheduling, communication, and fragmentation losses

    2.3 Top-Down Capacity Estimation

    The sample code below shows a common estimation approach: first derive the required output throughput from business goals, then estimate concurrency and instance count.

    1. # Capacity estimation sample code: values only illustrate order of magnitude.
    2. def estimate_capacity(qps, avg_input_len, avg_output_len,
    3. ttft_slo=1.0, tpot_slo=0.05,
    4. tokens_per_s_per_replica=3000):
    5. """Estimate required inference replicas from workload and SLA."""
    6. # 1. Target throughput: input and output are converted separately to tokens/s.
    7. input_tps = qps * avg_input_len
    8. output_tps = qps * avg_output_len
    9. total_tps = input_tps + output_tps
    10. # 2. Steady-state concurrency: determined jointly by output throughput and decode latency.
    11. decode_concurrency = output_tps * tpot_slo
    12. prefill_concurrency = input_tps * ttft_slo
    13. target_concurrency = max(decode_concurrency, prefill_concurrency)
    14. # 3. Replica count: estimated from throughput demand, with headroom for bursts.
    15. replicas = total_tps / tokens_per_s_per_replica * 1.3
    16. return {
    17. "target_concurrency": target_concurrency,
    18. "replicas": replicas,
    19. "bottleneck": "prefill" if prefill_concurrency > decode_concurrency else "decode",
    20. }

    One detail is easy to overlook. If input tokens greatly exceed output tokens, the bottleneck is in prefill, so expansion should prioritize accelerators with stronger compute and faster prefill. Conversely, the platform should prioritize machines with more memory capacity and higher memory bandwidth. In the sample code, a per-replica throughput of about 3,000 tokens/s corresponds to the common engineering range in which a single replica delivers several thousand output tokens per second and decode latency is on the order of tens of milliseconds. Actual values must be based on your own load testing.

    3. Inference Architecture: Key Ways to Lower Unit Call Cost

    3.1 Continuous Batching: Remove the Rigid Barrier Effect

    Static batching requires all requests in a batch to start and finish together. A single long-output request makes the whole batch wait, causing large amounts of accelerator idle time. Continuous batching refines the scheduling granularity from the request to the iteration step. When a generation step ends, completed requests leave immediately and waiting requests fill their place. The greater the variance in output length, the more noticeable the throughput gain. This is especially beneficial in code-generation and reasoning workloads with long outputs.

    1. # Continuous batching scheduling loop (sample code)
    2. while True:
    3. # 1) Sort the waiting queue by priority; priority considers tenant tier, queue time, and SLO.
    4. waiting.sort(key=lambda r: r.priority, reverse=True)
    5. while waiting and kv_pool.can_allocate(waiting[0]):
    6. req = waiting.pop(0)
    7. # 2) On a prefix-cache hit, reuse the KV directly and skip repeated computation for those tokens.
    8. cached_len = prefix_cache.lookup(req)
    9. kv_pool.allocate(req, reserved_len=cached_len)
    10. running.append(req)
    11. # 3) Run one decode step for the entire running batch.
    12. for req, token in engine.decode_step(running):
    13. if token is None: # Decode failure: preempt and reschedule.
    14. preempt(req)
    15. elif token == req.stop_id: # Normal completion: release KV and let a waiting request fill in.
    16. kv_pool.release(req)
    17. meter.record(req) # Record usage for metering and cost accounting.

    3.2 Paged KV Cache Management: Reduce Fragmentation and Improve Memory Utilization

    In long-context scenarios, each request’s KV cache grows as generation proceeds. Reserving contiguous memory based on the maximum possible length causes significant internal fragmentation and lowers concurrency. Block-based page management, combined with copy-on-write, can substantially reduce fragmentation. Requests that share the same prefix can share physical blocks and copy only at the point of divergence. This greatly reduces repeated computation for parent-child dialogues or multi-turn follow-ups in the same session.

    3.3 Prefix Caching: Compute Repeated Inputs Only Once

    Many enterprise workloads have fixed prefixes, such as system prompts, long document or knowledge-base snippets, and few-shot examples. With prefix caching enabled, the KV cache for the same prefix can be reused directly. TTFT drops significantly, and prefill compute consumption falls as well.

    It is important to note that prefix-cache hit rate depends on workload characteristics and is not effective for every scenario. If nearly every request has a different input, cache benefits are limited, and the additional lookup and maintenance overhead can even be negative. Before launch, use offline statistics on online request samples to decide cache capacity and eviction policy.

    3.4 Scheduling Protection for Long Requests

    A single very long request can continuously occupy a large amount of KV cache once it enters a batch, squeezing resources for other requests. Common countermeasures include:

    • Split the prefill of long inputs into multiple smaller blocks and interleave them with normal requests, avoiding long pauses in the decode phase.
    • Set an upper limit on output length per request and guide business teams to pass reasonable values explicitly.
    • When memory is tight, preempt requests based on tenant tier and queue time. A preempted request’s KV cache can be swapped out to memory, or it can be discarded and recomputed, trading a small amount of repeated computation for stable overall latency.

    3.5 Speculative Decoding: Trade a Little Compute for Lower Latency

    Speculative decoding uses a lightweight draft model to guess several tokens at once, then has the main model verify them in parallel. Correctly guessed tokens can be confirmed in one step, lowering the average latency per output token. It does not raise the overall throughput ceiling. It is suitable for latency-sensitive small batches or high-priority requests. With larger batches, the benefit is diluted, so whether to enable it should be decided through a canary experiment.

    4. Cost Model: Make Every Call Accountable

    High revenue growth alongside massive investment means cost control matters more than revenue growth for long-term profitability. Inference cost can be expressed as follows:

    1. unit token cost = resource cost per unit time / effective token throughput
    2. effective token throughput = output token throughput + prefill token throughput saved by cache hits

    This implies three paths to cost reduction:

    1. Improve effective throughput through scheduling, batching, and caching.
    2. Lower resource cost per unit time through procurement and lease structure, machine matching, and utilization.
    3. Improve resource utilization through off-peak scheduling and co-location.

    To implement this, three layers of observability are needed:

    1. Request level: record input length, output length, queue time, TTFT, TPOT, cache-hit status, and whether the request was preempted.
    2. Instance level: record accelerator utilization, memory usage, KV cache occupancy, and actual batch size.
    3. Tenant level: aggregate token usage, resource consumption, and SLA attainment by tenant, as a shared basis for internal accounting and external billing.

    For high-frequency large customers, in addition to tiered pricing, a “cache-hit discount” is a common design. It passes some of the savings from technical optimization back to customers and encourages business teams to reuse fixed prefixes proactively, creating a win-win cycle between platform and customer.

    1. # Usage-item breakdown sample code: describes billing dimensions only, not any specific product rules.
    2. def build_usage_item(tenant_id, input_tokens, cached_tokens, output_tokens):
    3. return {
    4. "tenant": tenant_id,
    5. "billable_input": input_tokens - cached_tokens, # Cache-hit input is billed separately.
    6. "cached_tokens": cached_tokens,
    7. "output_tokens": output_tokens,
    8. }

    5. Multi-Tenant Architecture: Serving the Large Customers That Form the Base

    5.1 Choosing the Isolation Level

    • Shared instances: lowest cost, suitable for small and medium customers and internal tooling. Requires robust quota and priority mechanisms.
    • Shared instances with dedicated queues: gives key customers independent waiting queues so they are not dragged down by a “noisy neighbor.”
    • Dedicated instances: resources are exclusive, suitable for top customers with data-compliance or stable-latency requirements. Costs are correspondingly higher.

    5.2 Quotas and Admission Control

    Quotas should cover at least four dimensions—request rate, token rate, concurrency, and per-request input/output limits—and be validated at the gateway so invalid requests do not enter the inference cluster and waste resources:

    1. # Tenant quota configuration sample
    2. tenant: example-corp
    3. tier: enterprise
    4. quota:
    5. requests_per_minute: 6000
    6. tokens_per_minute: 3000000
    7. max_concurrency: 64
    8. max_input_tokens: 128000
    9. max_output_tokens: 8000
    10. policy:
    11. on_exceed: reject_with_retry_after # Return a clear retry time when the quota is exceeded.
    12. priority: high
    13. burst_allowance: 1.5 # Allow short bursts.

    For sudden traffic peaks, a message queue can be used to smooth load. Non-real-time batch tasks, such as bulk document summarization, can be placed in a delayed queue and executed after peak hours. This significantly improves overall utilization without affecting online-request latency.

    5.3 Security and Data Governance

    Enterprise customers often care more about data security than latency. At a minimum, the platform should:

    • Provide logical isolation between tenants, and ensure KV caches and logs are not shared across tenants.
    • Mask sensitive information at the gateway.
    • Retain request and response logs for the agreed period and delete them when they expire.
    • Offer each tenant a configurable data-usage policy, such as whether data may be used for model improvement.

    6. Compute Supply: Balancing Short-Term Commitments and Long-Term Capacity

    6.1 Converting Outstanding Contracts into Compute Demand

    The roughly $320 billion in outstanding contract obligations at period end corresponds to service volume over future quarters. Planning teams can convert this into compute demand through the following steps:

    1. Extract the expected consumption period and call-volume commitments from contracts.
    2. Combine these with trends in model unit call cost to calculate the required token scale.
    3. Convert that token scale into accelerator scale based on typical input/output ratios and SLA requirements.
    4. Subtract the “natural cost reduction” from model-efficiency improvements, cache hits, and scheduling optimization to obtain net incremental demand.

    6.2 Layered Supply Strategy

    • Base layer (long-term lease): covers the predictable baseline and aims for the lowest unit cost. Longer agreements can secure better pricing.
    • Elastic layer (short-term on-demand): absorbs pulse loads from large-customer signings, model releases, or marketing campaigns.
    • Buffer layer (reserved headroom): leaves room for sudden hotspots and failover. A common recommendation is to reserve a fixed percentage of peak capacity.

    The roughly $895.4 billion in compute spending commitments at period end can be understood as long-term locking of the base layer plus part of the elastic layer. Such commitments can significantly reduce unit costs, but they bring two risks: idle capacity if demand falls short, and early depreciation of older machines as technology iterates. The corresponding management approach is to retain resource-adjustment clauses in contracts, establish machine-generation refresh and retirement mechanisms, and continuously monitor commitment utilization.

    6.3 Resource Allocation Between Training and Inference

    When quarterly revenue grows more than tenfold year over year, inference load growth usually outpaces training load growth. Cluster planning should avoid being dominated by a “training mindset.” Training tasks require extremely high interconnect bandwidth and are suitable for centralized deployment. Inference tasks can be distributed across multiple regions and deployed closer to customers. The two have clearly different hardware needs; when co-located, they require task scheduling, resource quotas, and topology-aware scheduling for isolation.

    7. Engineering Roadmap and Key Metrics

    Implementation can proceed in three phases:

    • Startup phase (supporting internal and small-scale external calls): primarily single-instance or small-scale deployment. Build token-centric instrumentation and metering.
    • Growth phase (large-scale enterprise adoption): introduce continuous batching, paged KV cache management, and prefix caching. Establish multi-tenant quotas and priority mechanisms.
    • Scale phase (large customers and global delivery): establish cross-region scheduling, dedicated instances, capacity forecasting, and commitment management. Complete unit-cost accounting and link it to pricing.

    The core metrics should include:

    Dimension Core metrics
    Performance TTFT P99, TPOT P99, timeout rate, preemption rate
    Capacity KV cache occupancy, actual batch size, peak concurrency, queue time
    Cost Unit token cost, cache-hit rate, effective accelerator utilization, commitment utilization
    Business Large-customer SLA attainment, quota trigger rate, month-over-month usage

    Conclusion

    A year-over-year revenue increase of more than 1,127% in a single quarter is, on the surface, a commercial result. In substance, it reflects an inference system that is simultaneously working across capacity, cost, multi-tenant governance, and compute supply. For developers and technology decision-makers, four transferable lessons stand out:

    1. Use tokens, not request count, as the basic unit for capacity and cost planning, so that planning assumptions align with real load.
    2. Make continuous batching, prefix caching, and paged KV cache management standard capabilities for inference platforms, using architectural gains to offset call-volume growth.
    3. Prioritize isolation and quotas in multi-tenant architecture, because large-customer service quality determines the revenue base.
    4. Make compute supply layered and commitments adjustable, balancing cost advantages with elasticity.

    Competition in large-model applications is shifting from “whose model is stronger” to “who can carry more calls at lower cost and with more stable service.” If these capabilities are built solidly, enterprises can preserve both profit margins and service quality during high growth.