How much does it cost to self-host an LLM?
At today's marketplace GPU prices, one always-on server costs from $158 a month for a small model on a 24 GB GPU to about $9,348 for a frontier-size MoE model on eight GPUs. Most teams land in between: a 27–35B model on a 48 GB GPU for $352 a month, or gpt-oss-120b and 4-bit Llama 3.3 70B on an 80 GB GPU for $615. Below is the cost for each popular open model, what else you pay for, and when self-hosting beats an API.
- Small model
- $158gpt-oss-20b on 1× RTX 3090, per month 24/7
- Mid-size
- $352Qwen3.8-27B FP8 on 1× RTX A6000
- Large
- $615gpt-oss-120b on 1× A100 80GB
- Frontier MoE
- $9,348DeepSeek-V4.1-Flash on 8× RTX PRO 6000
Monthly cost of self-hosting popular open models
The cheapest GPU setup that holds each model with room for at least 32K tokens of context, at the typical price on the marketplace today.
| Model · format | Weights | Cheapest setup that fits | Per hour | Per month, 24/7 | Per month, business hours |
|---|---|---|---|---|---|
| gpt-oss-20b MXFP4 (as released) · vLLM | 13.8 GB | 1× RTX 3090 | $0.22/hr | $158 | $48 |
| Qwen3.8-27B GGUF Q4_K_M · llama.cpp | 16.6 GB | 1× RTX 3090 | $0.22/hr | $158 | $48 |
| Gemma 4 31B 4-bit QAT (W4A16) · vLLM | 23.3 GB | 1× RTX A6000 | $0.48/hr | $352 | $106 |
| Qwen3.8-27B FP8 (official) · vLLM | 30.9 GB | 1× RTX A6000 | $0.48/hr | $352 | $106 |
| Qwen3.6-35B-A3B FP8 (official) · vLLM | 37.5 GB | 1× RTX A6000 | $0.48/hr | $352 | $106 |
| gpt-oss-120b MXFP4 (as released) · vLLM | 65.2 GB | 1× A100 80GB | $0.84/hr | $615 | $185 |
| Llama 3.3 70B 4-bit (W4A16) · vLLM | 39.5 GB | 1× A100 80GB | $0.84/hr | $615 | $185 |
| Llama 3.3 70B FP8 · vLLM | 72.7 GB | 1× RTX PRO 6000 | $1.60/hr | $1,169 | $352 |
| Mistral Small 4 119B FP8 (official) · vLLM | 120.9 GB | 2× RTX PRO 6000 | $3.20/hr | $2,337 | $704 |
| GLM-5.3-Flash FP8 (official) · vLLM | 328.3 GB | 8× RTX PRO 6000 | $12.81/hr | $9,348 | $2,817 |
| DeepSeek-V4.1-Flash FP8/INT8 (official) · vLLM | 510.3 GB | 8× RTX PRO 6000 | $12.81/hr | $9,348 | $2,817 |
Typical (median) hourly price on the Vast.ai marketplace on 5 Dec 2026; multi-GPU servers are estimated as the single-GPU price × number of GPUs. 24/7 = 730 hours a month, business hours = 10 hours × 22 working days. The setup is sized for one request at a time with 32K tokens of context; more concurrent users or longer context need more memory, so check your case in the VRAM calculator. Choosing between data-center GPUs? See A100 vs H100 vs H200 vs B200. Model details: gpt-oss, Qwen3.8-27B, Gemma 4, VRAM requirements.
What you actually pay for
- GPU time. The biggest item by far. On a GPU marketplace you pay by the second while the instance runs, so the monthly figure depends on how many hours the model is up.
- Disk. Weights, the engine image and caches usually need about twice the model's size. Disk is billed per GB per month and, on marketplaces like Vast.ai, keeps being billed while a stopped instance still exists. For most setups it is a small fraction of the GPU cost.
- Network. Some hosts charge for internet traffic per TB. Text responses are tiny, but downloading a 500 GB model several times adds up.
- Engineering and operations. Choosing the GPU and engine, securing the endpoint, monitoring, upgrades and restarts at 3 a.m. This is the cost that is easy to forget and hard to avoid; it is also the part we do for clients.
When self-hosting is cheaper than an API
An API charges per token; a GPU charges per hour whether it is busy or idle. The break-even point is simple:
break-even tokens per month = GPU cost per month ÷ API price per 1M tokens
Say your GPU costs $600 a month and the API you compare with charges $0.60 per million tokens. You break even at 1 billion tokens a month, which is about 380 tokens per second around the clock. Batched serving engines such as vLLM run many requests in parallel and can serve far more than that on one GPU for small and mid-size models, but only if the traffic is actually there.
- Self-hosting tends to win with steady, high volume; with private or regulated data that should not leave your infrastructure; with your own fine-tuned models; and when you need a fixed monthly cost and no rate limits.
- An API tends to win with low or spiky traffic, while you are still experimenting, or when you need a closed frontier model that is not available as open weights.
Many teams start on an API and move the high-volume, privacy-sensitive part of their traffic to a self-hosted model once the numbers are clear.
Seven ways to cut the bill
- Quantize. A 4-bit model needs a smaller GPU. Qwen3.8-27B in FP8 needs 1× RTX A6000 ($352 a month); as a 4-bit GGUF it runs on 1× RTX 3090 ($158). Llama 3.3 70B drops from $1,169 in FP8 to $615 in 4-bit. Test the quality on your own prompts first.
- Pick an efficient model. Mixture-of-experts models with compact attention, like gpt-oss-120b, deliver large-model quality on a single 80 GB GPU.
- Run only when needed. An internal assistant used during working hours costs about 30% of a 24/7 server: $185 instead of $615 a month for gpt-oss-120b.
- Use interruptible instances for batch jobs. Document processing, embeddings and evaluations can restart after an interruption, and interruptible GPUs usually cost less than on-demand ones.
- Halve the KV cache. An 8-bit KV cache (
--kv-cache-dtype fp8in vLLM) doubles the context or the number of users that fit on the same GPU. - Right-size the context. If your prompts never exceed 16K tokens, do not reserve memory for 128K; a smaller GPU may be enough.
- Pay the GPU provider directly. Managed AI platforms add a margin on top of GPU time. With a marketplace you pay the market price.
Want the numbers for your workload?
Tell us the model, the traffic and the latency you need. We send a written plan with the GPU choice and the monthly cost, and a fixed quote if you want us to run it. You pay the GPU provider directly, with no markup; we charge only for engineering. A standard LLM API is live in 2–5 business days.
Get a free cost estimateSize your model in the VRAM calculator →
What fine-tuning a model costs →
Cost of blue/green and canary releases →
LLM hosting cost questions
How much does it cost to run Llama 3.3 70B?
In 4-bit it fits on 1× A100 80GB at $0.84/hr, about $615 a month around the clock or $185 for business hours. In FP8 it needs 1× RTX PRO 6000 at $1.60/hr, about $1,169 a month. Prices are typical marketplace prices on 5 Dec 2026.
What is the cheapest way to self-host an LLM?
Run a small or quantized model on a single 24 GB GPU. gpt-oss-20b, or Qwen3.8-27B as a 4-bit GGUF, runs on 1× RTX 3090 at $0.22/hr: about $158 a month 24/7 or $48 for business hours.
Is self-hosting an LLM cheaper than using an API?
Only with enough steady traffic. Divide the GPU cost per month by the API price per million tokens to get the break-even volume: at $600 a month against $0.60 per million tokens it is 1 billion tokens a month, about 380 tokens per second around the clock. Below that, an API is usually cheaper; above it, or when data must stay private, self-hosting wins.
Can I pay only when the model is in use?
Yes. GPU marketplaces bill by the second, so you can stop the instance at night and pay only for its disk. Starting it again means loading the weights into GPU memory, which takes from under a minute for small models to several minutes for large ones, so this suits internal tools and batch jobs better than a public API that must answer instantly.
How much does vLLM cost?
vLLM itself is free and open source (Apache 2.0), and so are llama.cpp, SGLang and Ollama. You pay for the GPU it runs on: gpt-oss-20b on 1× RTX 3090 costs $0.22/hr, about $158 a month 24/7 or $48 in business hours, and Qwen3.8-27B FP8 on 1× RTX A6000 about $352 a month. Add storage, monitoring and the engineering time to run it.
What does a self-hosted LLM cost per team or per user?
The GPU is a fixed cost shared by everyone who uses it, so the cost per person falls as the team grows. Qwen3.8-27B FP8 on 1× RTX A6000 costs $106 a month in business hours, the same for a team of 5 or 50 as long as the GPU keeps up with the traffic. An API bills every token, so its cost grows with each user. For a small team with light use, an API is usually cheaper; for a busy team, one self-hosted GPU often is.
Is running an LLM locally cheaper than renting a GPU?
Only with steady use over many months. Renting an RTX 4090 24/7 costs about $341 a month at today's typical price. Owning one costs the purchase price plus power: the card alone draws up to 450 W, about 330 kWh a month at full load, plus the rest of the machine. Renting wins for testing, uneven load and models that need more than one consumer card; a local machine pays off for a small model used every day for a year or more.
Do more users mean more GPUs?
Not always. Every concurrent request needs its own KV cache, so more users need more memory, but one GPU often serves many users when the context is moderate. The VRAM calculator shows which GPU fits your model, context length and number of concurrent requests.
Why do the prices on this page change?
They come from the Vast.ai public pricing feed and are updated daily. We show the typical (median) price of the offers available that day; when a GPU type has only a few offers, its typical price can move noticeably from one day to the next.