Self-host an LLM: the hardware, and what actually runs on it
Cheaper than an API? Almost never. Even Llama 3.2 3B Instruct, the smallest model here, needs ≈ 327M tokens a month before a 24/7 GPU beats the cheapest verified API — bigger models push that into the billions. You self-host for control, privacy, residency and offline use; the calculator prices that decision for your volume. Every figure below is computed from the index and dated.
The hardware
What decides everything is the memory pool a model must sit in — VRAM on a discrete card, unified memory on Apple and DGX. Sticker price is also shown in months of Claude Max ($200/mo, the top tier) as a familiar yardstick — a price reference, not a capability match. Prices are a dated snapshot; the 2026 memory shortage is inflating all of them.
Consumer Blackwell, 32 GB GDDR7. Fastest single-GPU option for models that fit under 32 GB; VRAM is the wall. Price excludes the rest of the PC and is volatile under the 2026 memory shortage.
Entry Mac Studio, 36 GB unified memory shared between CPU/GPU. Whole computer, near-silent, low power. Bandwidth below a discrete GPU but the unified pool lets mid-size models fit cheaply.
Base M5 Ultra, 96 GB unified memory. Runs 70B-class models in 4-bit that a 32 GB GPU cannot hold, as one quiet box.
Workstation Blackwell, 96 GB GDDR7 — same silicon and bandwidth as the RTX 5090 but 3× the memory, so ~123B-class 4-bit models fit. Street price $8–9k; NVIDIA MSRP was pushed to $16k during the shortage. Excludes host PC.
Desktop Grace-Blackwell mini-PC, 128 GB unified LPDDR5X. MSRP raised from $3,999 to $4,699 in early 2026 on memory-supply constraints. CUDA-native, so the software path matches cloud NVIDIA.
M5 Ultra with the 256 GB unified upgrade (+$4,000 over the 96 GB base). Holds very large MoE models in 4-bit that otherwise need a multi-GPU server; a 512 GB tier exists but Apple had not priced it at verification.
Bare workstation GPUs (RTX 5090, RTX PRO 6000) need a host PC on top; Apple and DGX machines are complete. Electricity and idle time aren't included — a mostly-idle box loses to the API on cost every time.
What fits on what
Every listed open-weight model, grouped by the memory it needs in 4-bit. Pick your memory budget above, then see what runs. Sizes and the smallest single GPU per model are computed from the index; click a model for the full run guide with int8/fp16.
Runs on a consumer GPU≤ 32 GB in 4-bit — a single RTX 5090 or an entry Mac Studio · 31 models
Needs a workstation or a large unified box33–128 GB — RTX PRO 6000, Mac Studio Ultra, or DGX Spark · 20 models
Multi-GPU or datacenter only> 128 GB in 4-bit — beyond a single consumer machine · 44 models
| Model | Params | VRAM (int4) | Smallest single GPU | API /1M |
|---|---|---|---|---|
| MiniMax M2.1 (Novita) | 229B · 10B act | 137.4 | 2× H100 (160 GB) | $1.5 |
| MiniMax M2.5 (Venice) | 229B · 10B act | 137.4 | 2× H100 (160 GB) | $1.22 |
| MiniMax M2.7 (DeepInfra) | 229B · 10B act | 137.4 | 2× H100 (160 GB) | $1.05 |
| MiniMax M2 (Minimax) | 230B · 10B act | 138 | 2× H100 (160 GB) | $1.275 |
| Qwen3 235B A22B Instruct 2507 (GMICloud) | 235B · 22B act | 141 | 2× H100 (160 GB) | $0.438 |
| Qwen3 235B A22B Thinking 2507 (Alibaba) | 235B · 22B act | 141 | 2× H100 (160 GB) | $2.53 |
| Qwen3 VL 235B A22B Instruct (DeepInfra) | 235B · 22B act | 141 | 2× H100 (160 GB) | $1.08 |
| Qwen3 VL 235B A22B Thinking (Alibaba) | 235B · 22B act | 141 | 2× H100 (160 GB) | $4.4 |
| Inkling Small (Thinking Machines) | 276B · 12B act | 165.6 | 4× H100 (320 GB) | $1.65 |
| DeepSeek V4 Flash 0731 (DeepSeek) | 284B · 13B act | 170.4 | 4× H100 (320 GB) | $0.21 |
| DeepSeek V4 Flash Vision Exp (DeepInfra) | 284B · 13B act | 170.4 | 4× H100 (320 GB) | $0.862 |
| DeepSeek V4 Flash 0423 (DeepSeek) | 284B · 13B act | 170.4 | 4× H100 (320 GB) | $0.21 |
| Hunyuan 3 (Tencent) | 295B · 21B act | 177 | 4× H100 (320 GB) | $0.66 |
| GLM 5.3 Flash (Relace) | 320B · 18B act | 192 | 4× H100 (320 GB) | $0.189 |
| GLM 4.6 (Venice) | 357B | 214.2 | 4× H100 (320 GB) | $2.18 |
| GLM 4.7 (DeepInfra) | 358B | 214.8 | 4× H100 (320 GB) | $2.15 |
| Qwen3.5 397B A17B (Alibaba) | 397B · 17B act | 238.2 | 4× H100 (320 GB) | $3.45 |
| Llama 4 Maverick (DeepInfra) | 400B · 17B act | 240 | 4× H100 (320 GB) | $1 |
| MiniMax M3 (CoreWeave) | 427B · 23B act | 256.2 | 4× H100 (320 GB) | $1.19 |
| MiniMax M1 (Minimax) | 456B · 45.9B act | 273.6 | 4× H100 (320 GB) | $2.6 |
| Qwen3 Coder (Google Vertex) | 480B · 35B act | 288 | 4× H100 (320 GB) | $1.3 |
| Nemotron 3 Ultra (DeepInfra) | 550B · 55B act | 330 | 8× H100 (640 GB) | $2.7 |
| DeepSeek V4.1 Flash (DeepSeek) | 552B · 16B act | 331.2 | 8× H100 (640 GB) | $0.468 |
| DeepSeek V4.1 Flash 1017 (DeepSeek) | 552B · 16B act | 331.2 | 8× H100 (640 GB) | $0.392 |
| Ling 3.1 Flash (Novita) | 560B · 25B act | 336 | 8× H100 (640 GB) | $0.3 |
| DeepSeek Chat | 671B · 37B act | 402.6 | 8× H100 (640 GB) | $1.21 |
| DeepSeek V3 0324 (DeepInfra) | 671B · 37B act | 402.6 | 8× H100 (640 GB) | $1.14 |
| DeepSeek V3.1 (DeepInfra) | 671B · 37B act | 402.6 | 8× H100 (640 GB) | $1.2 |
| DeepSeek R1 (DeepInfra) | 671B · 37B act | 402.6 | 8× H100 (640 GB) | $2.65 |
| DeepSeek V3 (DeepInfra) | 671B · 37B act | 402.6 | 8× H100 (640 GB) | $1.21 |
| DeepSeek V3.1 Terminus (SiliconFlow) | 671B · 37B act | 402.6 | 8× H100 (640 GB) | $1.27 |
| DeepSeek V3.2 (DeepInfra) | 671B · 37B act | 402.6 | 8× H100 (640 GB) | $0.518 |
| DeepSeek V3.2 Exp (SiliconFlow) | 671B · 37B act | 402.6 | 8× H100 (640 GB) | $0.336 |
| Mistral Large 3 (Mistral) | 675B · 41B act | 405 | 8× H100 (640 GB) | $2 |
| GLM 5 (GMICloud) | 744B · 40B act | 446.4 | 8× H100 (640 GB) | $2.52 |
| GLM-5.2 (DeepInfra) | 753B | 451.8 | 8× H100 (640 GB) | $2.362 |
| GLM-5.3 (DeepInfra) | 753B | 451.8 | 8× H100 (640 GB) | $2.36 |
| GLM 5.1 (Baidu) | 754B | 452.4 | 8× H100 (640 GB) | $4.002 |
| Muse Spark Open (Meta) | 816B · 42B act | 489.6 | 8× H100 (640 GB) | $5.5 |
| Inkling (Thinking Machines) | 975B · 41B act | 585 | 8× H100 (640 GB) | $5 |
| Kimi K2 Thinking (Google) | 1000B · 32B act | 600 | 8× H100 (640 GB) | $3.1 |
| Kimi K2.5 (SiliconFlow) | 1000B · 32B act | 600 | 8× H100 (640 GB) | $2.7 |
| Kimi K2.6 (DeepInfra) | 1000B · 32B act | 600 | 8× H100 (640 GB) | $2.4 |
| Kimi K2.7 Code (DeepInfra) | 1000B · 32B act | 600 | 8× H100 (640 GB) | $3.712 |
Break-even calculator
Pick a model, set your volume and GPU hours. The throughput field is yours to fill — we publish no tokens/s we haven't measured, so feasibility stays unknown until you enter your own. Hardware only, electricity excluded.
| Option | $/month | effective $/1M | Reading |
|---|
Why self-host, when the API is cheaper
Put the other way: Mac Studio M5 Ultra (256 GB unified) costs ≈ 47 months of Claude Max, and it runs open-weight models, not Claude. What earns self-hosting its place never shows up in a break-even:
- Data sovereignty. Prompts and outputs never leave your machine — no third-party terms, no retention policy to audit.
- No provider dependency. An API model can be deprecated, repriced or rate-limited overnight; downloaded weights run until you retire them.
- Compliance & residency. When contracts say the data stays in-house or in-country, on-prem inference is the direct answer.
- Offline & no quotas. Air-gapped environments, or workloads that would blow through any rate limit.
Sovereignty is your call, not a number we could honestly compute — the calculator prices the decision, it doesn't make it.
Method
VRAM ≈ params(B) × bytes/param × 1.2 (overhead: KV cache + activations + CUDA context). bytes/param: int4=0.5 · int8=1 · fp16=2. Break-even = cost of a GPU running 24/7 at the on-demand rate ÷ API price (blended $/1M): the monthly token volume above which a dedicated GPU is cheaper than the lowest-priced API. Table figures assume continuous use; real throughput (tokens/s) caps what the hardware can actually deliver — the break-even calculator models that cap from a throughput YOU measure and enter (we publish no tokens/s we haven't measured ourselves).
Model sizes verified 2026-09-10 (stated in each model's name/card, or an established published spec). GPU rates verified 2026-10-19 — on-demand, cheapest reliable tier: runpod · lambda · vast.
Machine purchase prices verified 2026-10-19: dgx_spark · mac_studio · rtx_5090 · rtx_pro_6000. Months of Claude Max = purchase price ÷ $200/mo (Claude Max 20x, the top tier), a price yardstick only.
FAQ
Is self-hosting an LLM cheaper than using an API?
Almost never, on cost alone. Commodity APIs are so cheap per token that a dedicated GPU only breaks even at very high, sustained volume. As of 2026-10-23, even a small model like Llama 3.2 3B Instruct (Parasail) needs on the order of 327M tokens/month before a 24/7 GPU beats the cheapest API. You self-host for control, privacy, data residency, offline use and no rate limits — not for the bill.
What decides whether a model fits on my machine?
The memory pool, not the compute. A model must sit entirely in memory — VRAM on a discrete GPU, unified memory on Apple or DGX. Rule of thumb: memory needed ≈ parameters (in billions) × bytes per parameter × 1.2 overhead, where bytes per parameter are 0.5 for int4, 1 for int8, 2 for fp16. A 70B model in int4 needs roughly 42 GB.
Does a box worth months of Claude Max give me Claude at home?
No — and that's the honest catch. The hardware price is shown in months of Claude Max only as a familiar yardstick. What you actually run at home is open-weight models (Llama, Qwen, Mistral, Gemma…), not frontier Claude or GPT. Self-hosting buys you control and privacy over those open models, not frontier quality for less.