How LLM Inference Makes Money: Routing, Unit Cost, and Utilization

    This article breaks down the economics of the LLM inference layer: why inference has shifted from a model-capability problem to a throughput and unit-cost problem, what the aggregation layer actually sells, the three main pricing models, where costs go, and how self-hosted, managed cloud, and decentralized compute supply paths compete. It also gives practical advice for consumers on cost normalization, routing and fallback, caching, model tiering, and capacity quotas.

    1. A Change in Scale Worth Noting

    Over the past year or so, the inference call market has jumped by an order of magnitude. A certain type of platform that only does “request relaying” grew its annualized inference spend fivefold within a year, processing tens of trillions of tokens per month. Its revenue model is extremely simple: it adds a percentage-based fee on top of the customer’s inference spend, with one rate tier for non-crypto payments and another for crypto payments. At roughly a 5% cut on hundreds of millions of dollars in annualized spend, the platform’s annual revenue lands in the tens of millions of dollars.

    The key point is not the numbers themselves, but the structural fact they reveal: inference has shifted from a “model capability problem” to a “throughput and unit cost problem.” When call volume is large enough, routing and settlement in the middle layer constitute a standalone business.

    2. What the Inference Layer Actually Sells

    Breaking inference services into four layers makes the business logic clear:

    1. Compute layer: accelerator cards, memory bandwidth, and interconnect networks determine the physical ceiling.
    2. Runtime layer: batch scheduling, GPU memory management, quantization, and graph optimization determine how many tokens the same card can produce.
    3. Service layer: authentication, rate limiting, billing, observability, and SLAs.
    4. Aggregation layer: cross-vendor routing, failover, price and quality selection, and unified settlement.

    The aggregation layer neither trains models nor holds compute. It makes money from information asymmetry and switching costs: customers do not want to maintain keys, quotas, and disaster-recovery logic across multiple vendors, and are willing to pay a few points of premium for “one entry point, one bill, and the ability to switch at any time.”

    3. Three Pricing Models on the Revenue Side

    • Usage markup: the most common model, adding a fixed percentage on top of upstream spend. Revenue is linearly correlated with call volume with almost no marginal cost, but the ceiling depends on whether customers are willing to pay the premium long term.
    • Subscriptions and credit packages: turn volatile revenue into predictable cash flow, at the cost of bearing idle capacity risk.
    • Tiering and value-added services: cache-hit discounts, batch asynchronous jobs, private deployment, and audit and compliance reports monetize through features rather than rates.

    4. The Cost Side: Where the Money Finally Goes

    Inference cost can be roughly written as:

    1. Cost per token ≈ (accelerator depreciation + power + data center and network + labor) / effective throughput tokens

    The denominator is where the value of all optimization work lies. Common ways to improve effective throughput include continuous batching, prefix cache reuse, paged KV cache management, weight quantization and sparsification, speculative decoding, and splitting and scheduling long-context requests. Doing any one of these well is equivalent to lowering your quote by a tier without hurting gross margin.

    The aggregation layer’s cost is mainly engineering complexity: multi-vendor adaptation, quota and rate-limit alignment, bill reconciliation, and unified cross-vendor observability.

    5. Competitive Factors Across Three Supply Paths

    Path Advantages Main Risks
    Self-built inference cluster Controllable unit cost, deep optimization possible High upfront investment, utilization swings are fatal
    Cloud-hosted inference Good elasticity, no ops burden Higher unit price for large sustained usage over the long term
    Decentralized idle compute Broad supply sources, low marginal price Network jitter, data compliance, hard-to-guarantee SLAs

    The dividing line in competition is utilization. A card running at 30% utilization versus 70% can differ by more than a factor of two in unit cost, which explains why price wars tend to eliminate the party with weaker scheduling capability first.

    6. Practical Advice for Consumers

    1. Establish a common unit of measure: compare using “blended cost per million tokens,” pricing input, output, and cache hits separately.
    2. Routing and fallback: run primary and backup vendors, switching automatically based on error rate and time to first token.
    1. def pick_provider(candidates, stats):
    2. healthy = [c for c in candidates if stats[c]["error_rate"] < 0.02]
    3. return min(healthy, key=lambda c: stats[c]["p95_latency"] * stats[c]["price"])
    1. Cache first: turn system prompts, long documents, and few-shot examples into stable prefixes; the cached portion often saves the bulk of the cost.
    2. Model tiering: use small models for intent recognition and escalate to large models only for complex reasoning; in practice this often cuts consumption by more than half.
    3. Capacity and quotas: reserve token buckets for peaks to avoid sudden traffic triggering upstream rate limits.
    1. # Example: call wrapper with retry and backoff
    2. async def call_with_fallback(providers, payload, max_retry=3):
    3. for attempt in range(max_retry):
    4. for p in providers:
    5. try:
    6. return await p.invoke(payload)
    7. except RateLimited:
    8. await asyncio.sleep(2 ** attempt)
    9. raise RuntimeError("all providers unavailable")

    7. Conclusion

    How the inference layer makes money is not mysterious: the aggregation layer collects a few points in routing and settlement fees, while suppliers earn the cost difference from utilization and optimization. The former’s success depends on coverage breadth and billing experience; the latter’s depends on scheduling, caching, and quantization skills. For consumers, there are really only three levers to pull: unify the cost measure, make routing switchable, and get caching and model tiering solid. If you need elasticity and no ops burden, choosing a cloud provider such as Baidu AI Cloud for a combination of general inference hosting, object storage, log services, and monitoring and alerting capabilities usually gets you to stable operation faster than building your own cluster.