LLM Inference Unit Economics: Can a Single GPU Cover Its Own Cost?

    This article reframes the question of deploying a mid-sized sparse large language model on high-end accelerators from "can it run" to "can a single GPU-hour cover its cost." It breaks the analysis into throughput, revenue, and cost per GPU-hour, explains why list-price conversions overstate real income, walks through a Python per-GPU-hour P&L function, and examines how a leading team's reported $38/GPU-hour figure depends on system-level conditions that cannot be copied directly. A decision table, an optimization priority list, and observability requirements help readers choose between self-hosting and forwarding traffic to an official API.

    1. Framing the Question Correctly: Not “Can It Run” but “Can a GPU-Hour Cover Its Cost”

    When evaluating whether a mid-sized sparse large language model deployed on a high-end accelerator card can be profitable, most discussions stop at “can it run at all.” The real dividing line is unit economics: whether the billable tokens produced per GPU-hour, converted into revenue, cover the resource cost of that same hour. If there is an order-of-magnitude gap between the revenue side and the cost side, no amount of engineering-side optimization will change the conclusion.

    This article therefore restates the problem as three quantifiable sub-questions:

    • Unit throughput: the number of tokens a single GPU can stably output per second, separated into the prefill and decode phases;
    • Unit revenue: throughput multiplied by the external billing price, weighted by peak and off-peak periods;
    • Unit cost: rental expense, or amortized depreciation for owned hardware, expressed per GPU-hour.

    The “gross margin per GPU-hour” obtained by dividing these figures is the only hard metric for judging whether the business holds up.

    2. The Revenue Side: Why List-Price Conversions Overstate Real Returns

    The third-party measurements in the source material work out to roughly the following: with a per-user speed target of about 100 tokens/s, low-precision quantization, and a coding-agent workload, total single-GPU throughput is about 16,600 tokens/s. Converted at public API list prices, that is about $0.79 per GPU-hour off-peak and about $1.58 per GPU-hour at peak. Meanwhile, the market rental range for the same card is roughly $3.85 to $10.6 per GPU-hour, with a median near $4; a domestic eight-GPU server rented monthly works out to about $9.4 per GPU-hour.

    The conclusion is direct: off-peak revenue is a fraction of the card rental, and even peak revenue is only one-sixth to one-quarter of it. Weighted together, the loss is $4 to $7 per GPU-hour. This gap cannot be closed by “saving on electricity” or “tuning batch sizes”—it is an order of magnitude off.

    Three measurement caveats must be stated, or the numbers will be misread:

    1. This revenue is a theoretical ceiling of “measured throughput × list price,” not real booked revenue; real revenue must further subtract free quotas, tiered discounts, failed retries, and long-tail requests.
    2. The request arrival distribution determines the actual online rate. If average daily utilization is only 20%–30%, compute sits idle off-peak and revenue collapses further.
    3. Cache hit rate is the most sensitive variable. With a high hit rate, repeated prefixes need no recomputation and effective throughput can multiply; with a low hit rate, revenue drifts toward the off-peak figure.

    3. The Cost Side: Putting Depreciation, Rent, and Utilization in One Table

    Buying cards to self-host is not comfortable on paper either. The purchase price is about $32,000 to $40,000 per card, and about $370,000 for an eight-GPU server, or roughly $46,000 per card. Assuming three-year depreciation and a target utilization of 60%, the combined per-GPU-hour depreciation plus data center, power, network, and operations amortization typically lands in the $1.5 to $3 range. That looks lower than renting, but the premise is that you can max out utilization and secure stable high-value traffic.

    An illustrative annual per-GPU P&L framework (anyone can swap in their own parameters and recompute):

    1. def per_gpu_hour_pnl(
    2. tput_tokens_s, # stable total throughput per GPU
    3. price_per_mtok, # external billing price (per million tokens)
    4. cache_hit, # prefix cache hit rate, 0~1
    5. util, # actual online utilization, 0~1
    6. hourly_cost, # combined hourly cost per GPU (rent or depreciation + amortization)
    7. ):
    8. # Cached requests only incur decode cost; effective throughput scales with the hit rate
    9. effective_tput = tput_tokens_s / max(1e-6, (1 - 0.5 * cache_hit))
    10. revenue = effective_tput * 3600 / 1e6 * price_per_mtok * util
    11. return revenue - hourly_cost

    Plugging in the measured throughput, the list price, a cache hit rate of 0.2, and a utilization of 0.3, the function returns a clearly negative value. Only by pushing the hit rate above 0.9 and utilization above 0.7, while also negotiating a price above the public retail rate, can the return value possibly turn positive.

    4. Where the $38/GPU-Hour Figure Comes From: A Systemic Advantage You Cannot Copy Directly

    Another set of numbers in the material is the internal cluster ledger published by a leading team: 155 trillion tokens of daily cluster throughput, which converts to about $38 per GPU-hour at off-peak prices. This figure differs from the third-party measurement by nearly 50x, and the difference does not come simply from “a different framework,” but from four overlapping systemic conditions:

    • A dedicated inference engine: prefill and decode are deployed separately, with a card ratio close to 1:1, preventing long contexts from crowding out decode resources;
    • An extremely high prefix cache hit rate: about 96%, so a large amount of repeated system prompts and code context needs no recomputation;
    • Hyperscale and scheduling: enough requests that utilization approaches its theoretical ceiling in queueing terms;
    • Deeply coupled infrastructure: cache management and load-balancing policies are bound to the internal system and were not open-sourced with the engine.

    Reproducibility after open-sourcing has two commonly overlooked barriers: first, key scheduling and cache-governance components are missing; second, the minimum effective deployment scale is on the order of 128 GPUs (about 64 prefill + 64 decode), so individuals and small teams cannot amortize the fixed costs. A team building an AI coding tool has publicly stated that it tried multiple deployment approaches without reproducing a comparable inference cost, which confirms that a single-GPU number cannot be interpreted apart from its system conditions.

    5. A Decision Framework: When to Self-Host and When to Forward

    Consolidating the variables above into a decision table:

    Condition Recommendation
    Average daily utilization < 40%, no stable high-value traffic Forward to the official API and pay as you go
    High prefix repetition (fixed system prompts, codebase context) Self-host and prioritize cache governance
    Scale < tens of GPUs, no dedicated inference operations Do not self-host; use a general-purpose inference service on a container platform
    Stable business peaks and negotiating leverage Self-host plus a hybrid architecture that overflows to the public API at peak

    A hybrid architecture is the practical optimum: owned resources carry predictable baseline traffic, while peaks and bursts overflow to the official API or serverless inference, with routing and fallback handled at the gateway layer.

    6. Optimization Priority: Ranked by Return per Dollar

    1. Prefix caching and prompt structuring: move stable, unchanging content to the front for the largest gain with the smallest change;
    2. Request batching and continuous batching scheduling: raise decode-phase occupancy;
    3. Precision and quantization strategy: trade lower-precision formats for higher throughput, with quality regression to be assessed;
    4. Prefill/decode disaggregation and card-type matching: only viable at larger scale;
    5. Utilization governance: use monitoring, alerting, and autoscaling to push off-peak cost as low as possible.

    Observability is not optional: you need per-request logging of token counts, cache hits, queue latency, and failure rates, closed-loop through a logging service and monitoring alerts; otherwise the source of the loss cannot be located.

    7. Conclusion

    Under the given conditions of market rental rates and public list prices, an ordinary-scale operator deploying this class of model with a general-purpose framework is clearly losing money on paper, and the gap is an order of magnitude. Forwarding traffic to the official API is better in pure economics. Self-hosting can only possibly turn positive when high prefix reuse, high utilization, and sufficient scale all hold at the same time. Readers are encouraged to substitute their own throughput, price, cache hit rate, and utilization into the function above and recompute—decide with data, not intuition.