Self-hosting cost
What it costs to run open-weights models on your own or rented hardware: GPUs, serving software, operations and engineering time.
Why it matters. Open weights have no per-token API price, but they are not free to run at scale.
How it works
Self-hosting cost is the full cost of running an open-weights model on hardware you own or rent: GPU time, memory, storage and networking, plus serving software and the engineers who keep it running. There is no per-token bill, but the costs are real and mostly fixed.
The main drivers are model size (which sets GPU memory), the precision you run at, how many requests you can batch together and how busy the hardware stays. An idle GPU costs as much as a busy one. Hosts that serve open-weights models per token are an alternative to running your own.
Self-hosting tends to pay off with steady, high volume, strict data-control needs or custom fine-tunes. For spiky or low volume, a per-token API is usually cheaper.
Worked example
Illustrative: a rented GPU server at $4 per hour costs $2,920 for a 730-hour month. Serving 1B tokens that month works out to $2.92 per 1M tokens; if traffic drops to 100M tokens, it is $29.20 per 1M, because the hardware cost stays the same.
Common mistakes
- Comparing GPU rental with API prices without counting engineering and on-call time.
- Assuming full utilization; idle hours raise the effective cost per token.
- Sizing memory for the weights only, not for long contexts and many concurrent requests.
Across the catalog today
21 open-weights models in the catalog
- gpt-oss-20bOpenAIApache 2.0 (plus gpt-oss usage policy)
- gpt-oss-120bOpenAIApache 2.0 (plus gpt-oss usage policy)
- Gemma 4 31BGoogleApache 2.0
- Llama 4 ScoutMetaLlama 4 Community License
- Muse Glimmer 30BMetaApache 2.0
- Llama 4 MaverickMetaLlama 4 Community License
- Qwen-Image-2.1AlibabaQwen Research License (non-commercial)
- Qwen3.8-FlashAlibabaQwen Community License 1.0 (open weights); API proprietary
See it on a real card: Where to run it on Claude Opus 5.5.
Related terms
- Openness38
Open weights
Model parameters you can download and run
Explained - Inference36
GPU memory (VRAM)
Accelerator memory for weights, KV cache and buffers
Explained - Inference35
Serving engine
Software that loads weights and serves requests
Explained - Weights & training47
Quantization
Lower-precision weights to cut memory and cost
Explained - Inference29
Continuous batching
Requests join and leave the batch at every step
Explained