Closed models (GPT, Claude, Gemini) are reachable only through an API. Open-weight models (Llama, Mistral, Qwen, DeepSeek) can be downloaded. Open-weight models can run on someone else's API or on your own GPUs.
Closed API, open weights, and who runs the GPUs
Two separate questions decide the setup. The first is whether the weights are closed or open. The second is who operates the hardware. The table lists the three combinations in common use. Closed weights cannot be downloaded, so a closed, self-hosted option is generally not offered.
| Option | Examples | Who runs it | Responsibility |
|---|---|---|---|
| Closed, hosted | GPT, Claude, Gemini | The provider | Pay per token, no infrastructure to manage |
| Open, hosted | Together, Fireworks, Bedrock | A hosting provider | Less operational work than self-hosting |
| Open, self-hosted | Llama, Mistral, Qwen, DeepSeek on vLLM, TGI or Ollama | You | Your GPUs and pipelines, with predictable cost |
With a closed hosted model you make API calls and the provider handles the infrastructure. You get the latest capabilities, and you depend on the provider for uptime and updates, much as with SaaS. Open weights give you control and customization, and open models can lag the closed ones on complex tasks.
Where self-hosting costs more than it looks
Self-hosting keeps prompts and data inside infrastructure you control, and it lets you fine-tune on your own data. Data control is the strongest argument for it, and it matters for regulated data. Costs also become predictable because you pay for GPUs instead of tokens.
The argument for cost savings is weaker. Idle GPUs still bill, and someone has to run the machine-learning pipelines around them. At small scale those expenses can erase the saving. A hosted closed API can outperform a self-hosted open model on quality and reliability until usage grows large.
Choosing by quality, control and volume
- Fastest path to the best quality: closed hosted models.
- Strict data control, high steady volume, or custom fine-tuning: open self-hosted models.
- Open weights with less operational work: open hosted models, which sit between the two and keep some of the control.
The decision trades quality, control, cost and compliance against each other. Write down which of quality, control, cost and compliance your workload weighs most before you pick a row in the table.
Diagnosing slow responses on a self-hosted model
Example scenario: responses from the model endpoint take longer than 2 seconds. The figure is illustrative.
On a self-hosted model, latency often comes from hardware limits or poor settings: too few GPUs, memory bottlenecks, or inefficient model loading and inference configuration. Three checks narrow it down.
- Measure GPU use during inference to see whether it is maxed out.
- Check memory use for bottlenecks or swapping.
- Log model loading time and the first inference time to see whether the model is slow to become ready.
The fix may be a larger GPU or a tuned configuration. The tradeoff is hardware cost or tuning effort. Monitor average response time and GPU use afterwards.