InferenceToken economics

Where self-hosting an open model beats the API

When self-hosting an open-weight LLM beats a managed API: the break-even formula, a worked H100 example and European per-token and GPU-hour prices.

5 min read
In this article7
  1. Where self-hosting starts to pay off
  2. Per-token and GPU-hour prices compared
  3. Working out the break-even
  4. Costs a price comparison hides
  5. Deciding between API and self-hosting
  6. Frequently asked questions
  7. Sources
At what token volume self-hosting an open-weight LLM on a rented GPU becomes cheaper than a managed per-token API.
At what token volume self-hosting an open-weight LLM on a rented GPU becomes cheaper than a managed per-token API.

Where self-hosting starts to pay off

A team weighing a per-token API against rented GPUs faces a comparison problem: most providers sell only one of the two routes. Lyceum sells both on one pricing page, so the break-even can be computed from a single source. Its serverless API sells open models per token with no minimum spend, among them GLM-5.3 Flash at $0.20 input and $0.50 output per million tokens. GPU time runs on on-demand virtual machines billed per second, with an H100 at $3.49 and an L40S at $1.45 per GPU-hour (prices read 15 October 2026).[1]

Per-token and GPU-hour prices compared

ProviderPer-token API price (per 1M tokens)GPU hourly pricePage read
LyceumGLM-5.3 Flash $0.20 in / $0.50 out; DeepSeek V4 Pro $1.75 / $3.50[1]H100 $3.49 on demand; L40S $1.45[1]2026-10-15
Hetzner––2026-09-24
MistralMistral Large $0.50 / $1.50[2]–2026-10-15
NebiusDeepSeek-V4-Pro $1.75 / $3.50[3]–2026-10-15
OVHcloud––2026-09-24
ScalewayGLM-5.3 €1.80 / €5.50[4]Dedicated deployment: H100 €3.40; L40S €1.722026-10-15
TensorXGLM-5.3 $1.75 / $4.50[5]– (dedicated clusters quoted per contract)2026-10-15

A dash means the provider's page lists no value for that column. Prices are quoted in USD or EUR, and GPU hourly prices cover different hardware and billing bases, a gap examined in the per-second GPU billing comparison.

Working out the break-even

The worked answer: DeepSeek V4 Pro costs $1.75 input and $3.50 output per million tokens on Lyceum's API, and an on-demand H100 costs $3.49 per GPU-hour, both from the same pricing page.[1] Parity sits where the rented GPU sustains about one million output tokens per hour, roughly 280 tokens per second, before any other cost.

  1. Take the GPU-hour price of the hardware you would rent (for example $3.49 for an H100).
  2. Divide it by the model's output price per million tokens (for example $3.50).
  3. The result is the output tokens per hour the GPU must deliver: 3.49 ÷ 3.50 ≈ 1.0 million.
  4. Compare it with the throughput your workload actually sustains.
Bar chart of break-even volume for an on-demand H100 at $3.49 per GPU-hour: about 1.0 million output tokens per hour against DeepSeek V4 Pro at $3.50 per million, and about 7.0 million against GLM-5.3 Flash at $0.50, seven times as many; calculated as GPU-hour price divided by output price.
An on-demand H100 at $3.49 per GPU-hour must sustain about 1.0 million output tokens per hour to match DeepSeek V4 Pro's API price, and about 7.0 million to match GLM-5.3 Flash, before utilisation, engineering and idle time.

The inputs move the threshold. A cheaper GPU-hour price shifts the threshold down proportionally; a cheaper per-token price shifts it up: Nebius lists DeepSeek-V4-Pro at the same $1.75 / $3.50, so the threshold is unchanged there.[3] A flash-tier model raises the required volume several-fold: against GLM-5.3 Flash at $0.50 per million output tokens, the same $3.49 H100 must deliver about seven million output tokens per hour (3.49 ÷ 0.50 ≈ 7.0).[1] The method matches a 2025 cost-benefit framework for on-premise LLM deployment (arXiv 2509.18101), which solves for the point where cumulative local and API costs are equal.[6] How per-token prices themselves have moved is tracked separately in the token cost trajectory analysis.

Costs a price comparison hides

The formula above prices a fully used GPU hour. Three costs sit outside it. Utilisation: Uptime Institute reported in 2025 that even well-optimised models reach only 35% to 45% of the compute performance the silicon can deliver, and the figure is likely worse for inference, where request volume fluctuates.[7] A GPU billed around the clock must therefore be divided by that utilisation, not by its headline hour, which raises the break-even volume proportionally. Engineering time: deploying, quantising and keeping an inference stack current is ongoing work that the per-token API price already contains. Idle: bursty or business-hours traffic leaves paid GPU-hours unused, a trade-off set out in the cold-start and idle-capacity comparison.

Comparison diagram: a managed API's per-token price covers GPU time, unused capacity, engineering time and idle hours, while a rented GPU leaves unused capacity, engineering work for deploying, quantising and updating, and idle hours with the team on top of the GPU-hour rate.
A per-token price already covers unused capacity, engineering time and idle hours; a rented GPU adds all three on top of its hourly rate.

Deciding between API and self-hosting

  • Sustained, high and predictable throughput, plus in-house GPU operations capability, point toward self-hosting on rented or owned hardware, for example Hetzner's GEX dedicated servers, whose NVIDIA RTX PRO 6000 configurations carry 96 GB of graphics memory (Hetzner GPU server page, read 15 October 2026).[8]
  • Variable load, small teams, and a preference for per-token budgeting point toward the managed API.
  • Check data-residency needs against each provider's published hosting terms.
  • Re-run the formula whenever either input changes: GPU rates and token prices are both repriced frequently, as the cost-per-million-tokens comparison shows.

Lyceum publishes both sides of the equation on one pricing page, and Scaleway lists per-token prices next to dedicated GPU deployments, so a team can rerun the arithmetic for its own model and volume with a dated source for each input.

Frequently asked questions

How much does it cost to self-host an LLM?

Rented GPU time starts at published rates such as $1.45 per GPU-hour for an NVIDIA L40S and $3.49 for an H100 on Lyceum's on-demand table, read 15 October 2026. Engineering time and the idle hours a bursty workload leaves on a GPU billed around the clock come on top.

Is self-hosting LLM worth it?

Only above a sustained volume. The break-even is the GPU-hour price divided by the per-token price: an H100 at $3.49 per hour against DeepSeek V4 Pro at $3.50 per million output tokens needs roughly one million output tokens per hour, about 280 tokens per second, before it wins. Low utilisation raises that bar further.

How much does an LLM API cost?

Per-token prices for open-weight models on European endpoints, read 15 October 2026: GLM-5.3 Flash at $0.20 input / $0.50 output per million tokens and DeepSeek V4 Pro at $1.75 / $3.50 on Lyceum; GLM-5.3 at $1.75 / $4.50 on TensorX; GLM-5.3 at €1.80 / €5.50 on Scaleway. Most are billed per token with no base fee, so the monthly cost scales directly with volume.

Can I host my own LLM model?

Yes, if the weights are open. Open-weight models such as the Qwen, DeepSeek and GLM families can be served on rented GPUs with full root access. The model must fit in video memory, and the team takes on deployment, quantisation and operations that a managed API otherwise carries.

Sources

  1. lyceum.technology
  2. mistral.ai
  3. tokenfactory.nebius.com
  4. scaleway.com
  5. tensorx.ai
  6. arxiv.org
  7. intelligence.uptimeinstitute.com
  8. hetzner.com
  9. ovhcloud.com

Rankings and scores on Optinest cannot be bought — no commercial relationship changes how a provider is assessed. How we score

Related reading

All Inference →