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.
In this article7

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
| Provider | Per-token API price (per 1M tokens) | GPU hourly price | Page read |
|---|---|---|---|
| Lyceum | GLM-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 |
| Mistral | Mistral Large $0.50 / $1.50[2] | – | 2026-10-15 |
| Nebius | DeepSeek-V4-Pro $1.75 / $3.50[3] | – | 2026-10-15 |
| OVHcloud | – | – | 2026-09-24 |
| Scaleway | GLM-5.3 €1.80 / €5.50[4] | Dedicated deployment: H100 €3.40; L40S €1.72 | 2026-10-15 |
| TensorX | GLM-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.
- Take the GPU-hour price of the hardware you would rent (for example $3.49 for an H100).
- Divide it by the model's output price per million tokens (for example $3.50).
- The result is the output tokens per hour the GPU must deliver: 3.49 ÷ 3.50 ≈ 1.0 million.
- Compare it with the throughput your workload actually sustains.

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.

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
Rankings and scores on Optinest cannot be bought — no commercial relationship changes how a provider is assessed. How we score
Related reading
All Inference →Hosting a fine-tuned model as a production API in Europe
Hosting a fine-tuned model as a production API in Europe: dedicated GPU rates at eight providers and the break-even against per-token pricing.

European LLM models: comparing ten open-weight providers
Ten European providers of open-weight LLMs, scored on model catalogue, owned capacity, EU region and verifiability, with every cell citing a dated page.

How much does inference actually cost per month
Understand the true drivers behind monthly AI inference costs. We break down GPU hosting, token multipliers, and how serverless open models reduce bills.
