hostimmwhere to run it
Where to run it

When is self-hosting an LLM cheaper than the API?

Self-hosting an LLM beats the API at a volume that depends almost entirely on which model you were going to call. On one rented L40S at $1.09 an hour, the crossing point is 36,837 conversations a month against an Opus-class model and 1,473,518 against a Haiku-class model. Same card, same workload, a factor of forty between the two answers.

The verdict

Below 40,000 conversations a month, no rented GPU wins against any model in this table: the API bill is tens of dollars and the card is $795.70 whether the traffic arrives or not. Between 40,000 and 300,000 the answer depends on the model tier, and above roughly 500,000 a mid-tier model is the last case where a single card still makes sense. For the three cheapest models the crossing point sits above what the card can physically serve at four streams, so the answer is not “later”, it is “not this way”.

The arithmetic, with every price dated

The workload is the one this site uses everywhere else: 4,000 conversations a month, 2,400 input tokens and 600 output tokens per conversation. The card is a 48 GB L40S at $1.09 an hour, rented for 730 hours, so $795.70 a month. The token prices are read on the date in the table, from the provider’s own page.

Model In / out per 1M 4,000 conversations Break-even conversations Reachable on one card
Claude Haiku 5.5
index, 26 Nov
$0.10 / $0.50 $2.16 1,473,518 no, above the ceiling
GLM-5.3-Flash
z.ai, 30 Nov
$0.15 / $0.50 $2.64 1,205,606 no, above the ceiling
Qwen3 235B via OpenRouter
OpenRouter, 30 Nov
$0.14 / $0.80 $3.26 975,122 no, above the ceiling
Gemini 3.1 Flash-Lite
index, 26 Nov
$0.25 / $1.50 $6.00 530,466 yes
DeepSeek chat, peak
DeepSeek, 30 Nov
$0.30 / $1.20 $5.76 552,569 yes
GLM-4.7
z.ai, 30 Nov
$0.60 / $2.20 $11.04 288,297 yes
Kimi K2.7 Code
Moonshot, 30 Nov
$0.95 / $4.00 $18.72 170,021 yes
Gemini 4 Hydrogen
index, 26 Nov
$1.50 / $7.50 $32.40 98,234 yes
Grok 4.7
xAI, 30 Nov
$2.00 / $6.00 $33.60 94,726 yes
Claude Sonnet 5.5
index, 26 Nov
$2.00 / $10.00 $43.20 73,675 yes
Gemini 4 Neon
index, 26 Nov
$3.00 / $15.00 $64.80 49,117 yes
Claude Opus 5.5
index, 26 Nov
$4.00 / $20.00 $86.40 36,837 yes

Two columns carry the argument. The third shows what the same workload costs per month as tokens, which for small models is a rounding error against any hardware. The fourth is the volume at which the GPU month and the token month meet, and it is the only number that matters when the question is asked honestly.

Why the model tier moves the answer forty times

A conversation costs $0.00054 on Haiku-class pricing and $0.02160 on Opus-class pricing. The GPU does not care which model the request names: it costs the same $795.70. So the cheaper the token, the more tokens you have to buy before the card pays for itself. That is the whole mechanism, and it explains why the “self-hosting is cheaper” posts disagree with each other so violently: one is pricing a frontier model, the other a small one, and neither says which.

The ceiling nobody prints

There is a second limit that a pure cost calculation hides. A single L40S serving four streams at 40 output tokens a second produces 700,800 conversations a month at this workload, and not one more. So for Haiku, GLM-5.3-Flash and Qwen3 the break-even volume is above the ceiling: no amount of waiting makes the card cheaper, because the card cannot serve the traffic that would justify it.

Concurrency moves the ceiling, not the crossing point. Four more streams in flight do not lower the per-conversation cost of the card, they let the card reach the volume where the crossing point lives. At four streams the ceiling is 700,800 conversations; at sixteen it is 2,803,200. The crossing point stays where the table says it is, which is the distinction that most “break-even” posts get wrong.

What the card costs when nothing arrives

A GPU rented by the month is billed for 730 hours whether or not a request shows up. At the break-even volume for a Sonnet-class model, 73,675 conversations a month, the card is busy about 10.5 per cent of the time. The other 89.5 per cent is the invoice you pay for having capacity ready. That idle share is the real reason self-hosting loses at small scale, and it does not appear in any per-token comparison.

What to do with this

Rule one: if your monthly volume is under 40,000 conversations, the API is cheaper against every model here, and the only reason to self-host is a constraint the bill does not capture, such as data residency, a model nobody hosts, or latency you control. Say that reason out loud, because it is a real one and it is not cost.

Rule two: between 40,000 and 300,000 conversations the decision belongs to the model tier. A frontier model at that volume already justifies a card; a small model does not. Rule three: above 300,000 conversations, price the card against the model you would actually run, not against the model you wish you could run.

Put your own workload into the calculator before you commit a budget. It runs the same arithmetic as this page, with the model list including the Chinese providers, and it prints the utilisation line, which is the number that decides whether the saving is real.

What this piece did not measure

No run was executed for it. The throughput and concurrency are stated assumptions, not measurements of a specific engine, and the token prices are list prices rather than invoices. Egress, storage, cold start, the engineering time to operate a serving stack and the cost of an outage are outside the arithmetic. A measured version of this piece needs a paid card and a metered run, which is what the test fund exists for.

Where the numbers come from

GPU rates: the GPU cloud price index, checked 26 November 2026. Token prices: the LLM API price index for Anthropic, Google and OpenAI, and the providers’ own pricing pages on 30 November 2026 for DeepSeek, GLM from z.ai, Kimi, Grok and Qwen through OpenRouter. The hosting routes and the hidden costs that sit outside a per-hour figure are in the five routes guide; the same arithmetic applied to a whole automation stack is in the n8n workflow pricing.

Checked 2026-11-30. Prices move monthly; the table carries the date each one was read.

Take this piece to your own AI

Copy the prompt, paste it into the model you already use, and it will work through this article against your own numbers. It carries the link, so the model can cite the source and check the figures.

What you probably want next

The Verdict

One decision, three numbers, every Friday.

A weekly email for people who have to choose where their AI workloads run. It ends a decision instead of starting one. No popups, no upsells, one click out.

Double opt-in. We store your email and the date you confirmed it, nothing else. Privacy.