Inference, Serving & Production·Question 75 of 76Quick-fire

When do you self-host an open-weight model instead of using a hosted API?

Quick-fire answer from the Awesome Generative AI Guide (MIT)

Type it the way you would explain it to an interviewer. A few sentences is enough; you can't break anything.

Model answer: the part to lead with

Self-hosting makes sense when data residency or zero-retention requirements rule out sending data to a provider, when scale makes per-token API pricing more expensive than running your own hardware, when you need a fine-tuned or specialized model the APIs do not offer, or when you need latency and availability guarantees a shared endpoint cannot promise. The costs are real: GPU capacity, serving expertise (batching, KV-cache management, autoscaling), and ongoing maintenance, so a hosted API usually wins until one of those drivers dominates. A common middle path is a hosted open-weight endpoint that avoids the ops burden while giving model choice. Decide with a concrete comparison of total cost and requirements, not ideology.

Full worked answer

Self-hosting makes sense when data residency or zero-retention requirements rule out sending data to a provider, when scale makes per-token API pricing more expensive than running your own hardware, when you need a fine-tuned or specialized model the APIs do not offer, or when you need latency and availability guarantees a shared endpoint cannot promise. The costs are real: GPU capacity, serving expertise (batching, KV-cache management, autoscaling), and ongoing maintenance, so a hosted API usually wins until one of those drivers dominates. A common middle path is a hosted open-weight endpoint that avoids the ops burden while giving model choice. Decide with a concrete comparison of total cost and requirements, not ideology.

Learn more: Production topic

What a good answer covers

  • Self-hosting makes sense when data residency or zero-retention requirements rule out sending data to a…
  • The costs are real: GPU capacity, serving expertise (batching, KV-cache management, autoscaling), and…
  • A common middle path is a hosted open-weight endpoint that avoids the ops burden while giving model choice
  • Decide with a concrete comparison of total cost and requirements, not ideology

Key terms: Learn more

Quick-fire answer from the Awesome Generative AI Guide (MIT) · answer text last updated 6 November 2026 · scoring and review schedule by LLM Prep