How to Calculate the Profitability of a High-Throughput LLM Inference Service

    When evaluating whether buying high-end accelerators and running a high-throughput lightweight model as a service can be profitable, the real question is not whether the model can answer, but whether the same GPUs can serve more billable requests at lower total cost. This article breaks down the unit economics of LLM inference: per-GPU-hour revenue and cost models, break-even throughput, disaggregated Prefill/Decode architectures, long-window KV cache reuse, multi-chip compatibility, and why third-party inference providers struggle. It provides formulas, example tables, pseudocode, and a capacity planning checklist for teams evaluating this business.

    How to Calculate the Profitability of a High-Throughput LLM Inference Service

    When discussing “buy a batch of high-end accelerators, deploy a high-throughput lightweight model, and sell inference as a service — can it make money?”, the real question is not “can the model answer”, but “can the same GPUs serve more billable requests at a lower total cost”. Model capability defines the service boundary; the inference system determines the cost and margin per token. Public cases of clusters generating quadrillions of tokens per day, with per-GPU hourly revenue reaching tens of dollars, are worth dissecting not because the numbers look impressive, but because they frame the problem in unit economics: revenue is counted in billable tokens, while costs are counted in GPU-hours, storage, networking, operations, and redundancy. If any link in the chain is inefficient, the margin gets eaten.

    1. Do the Math First: A Per-GPU-Hour Margin Model

    The profitability of an inference service can be written as a simple formula:

    1. Per-GPU-hour revenue = peak effective throughput (tokens/s/GPU) × utilization × 3600 / 1,000,000 × price per million tokens
    2. Per-GPU-hour cost = depreciation + electricity + networking + storage + operations + redundancy
    3. Per-GPU-hour margin = per-GPU-hour revenue - per-GPU-hour cost

    Here, “peak effective throughput” is not the instantaneous speed of a single request in a lab, but the sustained throughput under mixed input/output lengths, concurrent batching, and cache hits. Utilization does not come for free with the hardware either — it depends on whether there is enough request volume, whether scheduling is smooth, and how fast failures recover. The break-even throughput can be written as:

    1. R_be = C × 1,000,000 / (3600 × P × U)

    R_be is the minimum effective throughput per GPU per second, C is the total per-GPU-hour cost, P is the price per million tokens, and U is billable utilization. This formula reveals a key fact: once a price war starts, the break-even point rises quickly. If the per-GPU-hour cost is 8 currency units, utilization is 0.6, and the price per million tokens is 1 currency unit, each GPU needs roughly 3,700 tokens/s of effective throughput to break even. If the price drops to 0.6, the break-even throughput rises to about 6,170 tokens/s. For lightweight models, this cannot be solved by accelerating individual requests — it requires batching, cache reuse, and staged scheduling.

    Example scenario Peak throughput/GPU Utilization Effective throughput/GPU Price per M tokens Hourly revenue Hourly cost Hourly margin
    Inefficient scheduling 5000 0.35 1750 1.0 6.3 8 -1.7
    Standard optimization 5000 0.60 3000 1.0 10.8 8 2.8
    Cache reuse + high utilization 6500 0.75 4875 0.8 14.0 8 6.0

    The numbers in the table are for illustration only and do not represent the actual pricing or performance of any specific product. In practice, input tokens, output tokens, cache hits, SLA, and failure redundancy must all be included in the calculation.

    2. Disaggregated Hardware: Accounting for Prefill and Decode Separately

    LLM inference roughly splits into two phases: Prefill and Decode. Prefill processes the entire input context at once; it is compute-intensive and aims for high compute utilization and long-sequence parallelism. Decode generates tokens one by one and is more sensitive to memory bandwidth, KV cache access, and batching efficiency. Using common 8-GPU servers for Prefill and 64-to-128-GPU supernodes for Decode essentially means running each phase on the hardware form factor that matches it best.

    The benefit is straightforward: Prefill can use fewer GPUs at high compute density, while Decode uses larger-scale nodes to carry high concurrency and long-context caches, improving overall throughput. But the costs must also be counted: KV cache must be transferred between phases, the scheduler must dynamically match capacity on both sides, supernodes have larger failure domains, and network congestion and tail latency are harder to control. When replicating this architecture, do not just look at average cluster throughput — account for per-GPU revenue of Prefill and Decode separately. A practical test: if Decode GPUs spend a large share of their time waiting for KV transfers or cache swaps, the gains from disaggregated hardware will be offset by networking and storage costs.

    3. Long-Window KV Cache Reuse: Saving Repeated Prefill

    Keeping KV cache for more than 72 hours is fundamentally about eliminating repeated Prefill. Many requests share system prompts, tool descriptions, long document prefixes, or multi-turn conversation history. Recomputing them every time means buying the same compute over and over. On a cache hit, the system only needs lightweight validation and incremental computation, and Decode GPUs can enter the generation phase faster.

    The benefit can be roughly measured as:

    1. Net cache benefit = hit tokens × unit Prefill cost - KV storage cost - indexing and invalidation maintenance cost

    But caching is not free. Retaining data for 72 hours means paying for storage capacity, memory tiering, index lookups, tenant isolation, and invalidation consistency. The cache key should at least include the tenant, model version, system prompt hash, and prefix hash, to prevent cross-tenant or cross-version reuse. Here is neutral pseudocode:

    1. def lookup_kv_cache(tenant_id, model_version, prefix_hash):
    2. key = (tenant_id, model_version, prefix_hash)
    3. entry = cache_store.get(key)
    4. if entry is None:
    5. return None
    6. if entry.expired or entry.model_version != model_version:
    7. cache_store.delete(key)
    8. return None
    9. return entry.kv_blocks

    When replicating this approach, focus on three metrics: KV hit rate, the proportion of Prefill saved on hits, and cache storage cost as a share of per-GPU-hour cost. If the hit rate is high but storage costs are higher, or if cache eviction causes frequent fallbacks, long-window caching turns from a cost reducer into a cost burden.

    4. Multi-Chip Compatibility: Supply-Chain Savings, Diluted by Tuning Costs

    Supporting chips from multiple vendors is about supply-chain resilience on the surface, but fundamentally about procurement leverage and capacity elasticity. Different chips differ in operator coverage, precision strategies, communication libraries, and topology. To run the same inference system “close to full utilization” across them, you need unified graph compilation, operator fallback, precision alignment, and a performance benchmark matrix. Teams that do compatibility well can schedule workloads across clusters and reduce idle time caused by supply fluctuations of a single hardware type. Teams that do it poorly end up re-tuning on every chip, diluting R&D investment.

    Therefore, multi-chip compatibility cannot remain an architectural slogan — it must land in a benchmark table: Prefill throughput, Decode throughput, KV transfer bandwidth, failure recovery time, precision deviation, and per-token cost on each chip type. Only when these numbers are comparable does compatibility actually translate into cost reduction.

    5. The Profit Dilemma of Third-Party Inference Providers

    If the model provider runs its own inference and maintains a healthy margin, third-party inference providers face enormous pressure. Third parties typically have to purchase compute externally, pay for networking and storage, and then win customers at slightly lower prices. Once the upstream provider keeps cutting prices, the third party’s margin can be quickly compressed to zero or even negative. Simply buying GPUs, applying a generic inference framework, and selling tokens directly almost guarantees losses, because it lacks staged scheduling, long-window caching, fine-grained monitoring, and failure redundancy.

    Third parties that manage to earn “a little profit” usually rely on operational efficiency rather than hardware arbitrage: higher cache hit rates, finer tenant isolation, more stable SLAs, private deployments, long-tail model routing, hybrid scheduling, and observability systems. These capabilities require a team that understands compilers, distributed systems, and storage, as well as production stability. The investment is large, the team requirements are high, and the profit is not necessarily generous.

    6. Replication Checklist and Capacity Planning

    If you plan to replicate this on your own cluster, establish at least the following benchmark metrics: effective throughput in tokens/s/GPU, time to first token, per-token output latency, KV hit rate, GPU utilization, failure recovery time, total cost per million tokens, and SLA attainment. For capacity planning, first estimate total tokens from daily request volume, average input length, and average output length; then divide by effective throughput and utilization to get the required number of GPUs; finally add a redundancy factor. General-purpose cloud capabilities such as container platforms, monitoring and alerting, and log services from Baidu AI Cloud can help build elastic scheduling and observability, but the core remains the inference system’s own caching, scheduling, and cost accounting.

    Conclusion

    A high-throughput LLM inference service can be profitable, but the profit comes from system efficiency, not from buying GPUs and reselling capacity. To judge whether it is worth doing, look at only three things: whether per-GPU-hour revenue can cover total cost, whether KV caching and batching can push effective throughput past the break-even point, and whether the team can continuously tune the system while holding the SLA. If all three hold, there is room for profit; buying GPUs plus a generic framework and nothing else more commonly leads straight to losses.