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

Open vs closed, hosted vs self-hosted modelsDiagram with these labels, in reading order: Use for speed; Use for compliance; Use for convenience; Use for control; Closed Models; (API-only); Open-weight Models; (Downloadable); Hosted; (Provider API); Self-hosted; (Your GPUs); Quality vs Control; Tradeoff.Use for speedUse for complianceUse for convenienceUse for controlClosed Models(API-only)Open-weight Models(Downloadable)Hosted(Provider API)Self-hosted(Your GPUs)Quality vs ControlTradeoff
Model Types and Hosting Options

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.

OptionExamplesWho runs itResponsibility
Closed, hostedGPT, Claude, GeminiThe providerPay per token, no infrastructure to manage
Open, hostedTogether, Fireworks, BedrockA hosting providerLess operational work than self-hosting
Open, self-hostedLlama, Mistral, Qwen, DeepSeek on vLLM, TGI or OllamaYouYour 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.

Check idle capacity first Count GPU hours that serve no requests, and the staff time for model operations, before you compare against a per-token price.

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.

Open vs closed, hosted vs self-hosted modelsDiagram with these labels, in reading order: check latency; check download; check resources; check stability; API Latency Check; Closed Model Response Time; Open Model Download Speed; Self-Hosted Resource; Utilization; Hosted Service Stability.check latencycheck downloadcheck resourcescheck stabilityAPI Latency CheckClosed Model Response TimeOpen Model Download SpeedSelf-Hosted ResourceUtilizationHosted Service Stability
Debugging model hosting issues

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.

  1. Measure GPU use during inference to see whether it is maxed out.
  2. Check memory use for bottlenecks or swapping.
  3. 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.

Back to the knowledge baseRequest an assessment