← Alle Beiträge

Self-hosted LLM cost: when running your own AI server actually pays

Running your own LLM server pays off for three reasons only: data that cannot leave your infrastructure even under a contract, sustained high volume, or a latency or offline requirement you must control. For everything else, the arithmetic favours renting. The deciding number is utilisation, not the price per token: on identical H100 hardware, a 2026 study measured the real cost ranging from $0.21 to $15.25 per million output tokens purely with how busy the server was. A worked example: an eight-GPU H100 node rented in Paris at 30.06 euros an hour must produce about 12,500 tokens every second, around the clock, to match a hosted endpoint that serves the same open model at 0.67 euros per million tokens. Wanting open models and wanting your own hardware are two separate decisions.

When does it make sense to run your own LLM?

It makes sense when one of three conditions holds:

  1. Data that may not leave your infrastructure, for regulatory, contractual or customer reasons. This is the strongest case and it does not depend on volume. Check it honestly first, because many European requirements are met by a European provider under a data processing agreement, as covered in GDPR and AI.
  2. Sustained, predictable high volume, where a server you keep busy beats paying per token.
  3. A latency or offline requirement: no provider queue, no rate limit, no internet. It only works if you provision above your own peak; an undersized GPU is slower than a hosted model, not faster.

Four popular reasons do not survive the arithmetic. "It will be cheaper" holds only above a utilisation you must measure. "It avoids lock-in" swaps provider lock-in for hardware and configuration lock-in. "We want open models" can be met by renting them: OVHcloud, for example, served gpt-oss-120b at 0.08 euros per million input tokens and 0.40 per million output in September 2026, from a European cloud (OVHcloud AI Endpoints). And "we need fine-tuning" is a separate decision from where the model runs.

Why does utilisation decide the cost?

Utilisation decides the cost because you pay for the server whether it is busy or idle. A June 2026 study found that public cost calculators all treat utilisation as a fixed input, then measured it: on identical H100 hardware, the effective cost ranged from $0.21 to $15.25 per million output tokens depending only on the request rate, a penalty of 2.5 to 24 times at 1 to 10 requests per second and up to 36.3 times near idle (arXiv 2606.11690). Its conclusion is the sentence to remember: any estimate that ignores utilisation understates the true cost by exactly one over the utilisation, which over-sells self-hosting most for low-traffic uses. Office hours make it worse: a workload that runs during the working day uses about a quarter of a 24-hour cycle, so a server left running at night costs four times what the busy hours suggest.

What does the break-even look like?

The break-even depends on what the same model costs to rent. Three worked cases, at European prices from September 2026, with the self-hosted side priced at Scaleway's managed rates (Scaleway pricing):

  • Llama 3.3 70B on eight H100 GPUs: 30.06 euros an hour, about 21,944 euros a month. Against a hosted price of 0.67 euros per million tokens, you break even at about 12,500 tokens per second, sustained every second of the month. That is most or all of what such a node produces at realistic prompt lengths, so the hosted option wins until you are well past saturation.
  • A 27-billion-parameter model on one H100: 3.40 euros an hour, about 2,482 euros a month. Its hosted output price was 2.70 euros per million tokens, so you break even at about 350 output tokens per second, an ordinary figure at moderate load. Self-hosting wins here.
  • gpt-oss-120b on one H100: the same 2,482 euros a month against a hosted price of 0.40 euros per million output tokens needs about 2,360 output tokens per second around the clock. Achievable at high load, hard to hold for a whole month.

The rule: compare against the cheapest hosted endpoint for the same weights, not against a frontier model's price. Against the cheap open-model endpoints you need your fleet at roughly half its measured peak or more. Below about 20% to 30% sustained utilisation, self-hosting costs a multiple of renting, and the decision has to rest on data residency or latency, not on money.

What else does self-hosting cost?

Self-hosting costs more than the hardware line, and these items are routinely left out:

  • Building it: two to six weeks of a senior engineer to reach a tuned, monitored deployment that can roll back.
  • Running it: 0.2 to 0.5 of a full-time person for operations and on-call. At a fully loaded 120,000 euros a year, 0.3 of a person is 3,000 euros a month, more than the GPU bill at the single-GPU tier.
  • Redundancy: one server is not a service. A spare doubles the hardware line at small scale.
  • The services you lose: web search, code execution and file search are provider services, and a self-hosted model has none of them until you build them.
  • Porting: self-hosted servers speak an OpenAI-compatible API, but compatible envelopes are not compatible behaviour. Structured-output options, reasoning settings and caching all differ, so budget for a real port, not a change of address.

How token costs compare in general is in what an AI agent costs to run.

What hardware runs which model?

Size the hardware from the model, the context length and the number of simultaneous conversations, in that order. The weights are the easy part: a 70-billion-parameter model takes about 140 GB at 16 bits and about 40 GB at 4 bits. The conversation memory, the KV cache, is the part people forget: for a 70B Llama-class model, one conversation of 32,000 tokens needs about 10 GiB, and a promise of 128,000 tokens costs about 40 GiB per conversation, half an H100 for a single user. As a rough ladder:

  • A laptop: 4B to 8B models at 4 bits, 27B to 32B on Apple machines with 48 GB or more of memory, one user, short context.
  • One consumer GPU with 16 to 32 GB: 8B at 16 bits or 12B to 27B at 4 bits, for internal tools and single-tenant document search.
  • One datacentre GPU with 80 GB: a real service for one mid-sized model; gpt-oss-120b fits one such card in its native 4-bit format.
  • An eight-GPU node: 70B models with real concurrency, and the largest open models.

What precision to run at, and what it costs in quality, is covered in LLM quantization explained.

When does a GPU on your desk pay off?

A GPU you already own pays off fastest, because the marginal cost is electricity. A January 2026 study of consumer Blackwell cards put self-hosted inference at $0.001 to $0.04 per million tokens on electricity alone, 40 to 200 times cheaper than budget cloud APIs, with the card paying for itself in under four months at 30 million tokens a day (arXiv 2601.09527). The conditions matter: you own the hardware, the tool serves one team, the quality of an 8B to 27B model is enough, and nobody is paid to look after it. That is a real result for an internal tool, such as classifying documents or searching a private archive, and it does not carry over to a rented datacentre GPU serving customers. For a start, Ollama is the easiest way to run a model locally, but its defaults suit one person: a 4,096-token context and one request at a time (Ollama FAQ). Above one user, llama.cpp's server or vLLM are the right tools.

What do you give up with a local model?

You give up capability, and the gap is large on hard tasks. In my own measurements of agent work, reported in How much of an agent is the model, a small local 8-billion-parameter model scored 0.142 on a scale where a cheap hosted model scored 0.719, averaged over all runs. The pattern that avoids paying for that gap everywhere is a split: run the sensitive or high-volume narrow steps locally, such as detection, classification and extraction, and send only minimised text to a large hosted model for the steps that need it. Small models for narrow jobs are covered in small language models, and how to compare models on cost per finished task in how to choose an AI model. That split between local steps and cloud steps is a common design in AI agents for business.

Frequently asked questions

Is a local model more private?

Yes, if the whole pipeline stays local, including logs, indexes and backups. Often the same protection is available more cheaply from a European provider under a data processing agreement, so check the actual requirement first.

Can I use open models without buying hardware?

Yes. European providers rent open models per token, which gives you the model without the server, the on-call and the utilisation risk.

Does running my own model make its answers identical every time?

Only with extra work: the same hardware, the same software version and special settings that cost speed. The details are in why ChatGPT gives different answers.

If you are weighing your own AI server against a hosted service, send me your monthly volume, your data constraints and the model you have in mind. Which side of the break-even you are on usually shows from those three.