Skip to main content

Open vs Closed Models — The Tradeoffs

Editorial

Introduction

The Model Families: GPT, Claude, Gemini, Llama, Qwen, Mistral, DeepSeek showed that a model ships through an API or as published weights, and that most labs do both. The decision you will make is which kind to build on. It is the model-level version of build versus buy from The AI Engineering Mindset (Build-vs-Buy, Eval-First, Iterate), and the answer depends on your constraints.

You'll learn:

  • why it is three ways to run a model, not two
  • what a closed API trades, in the providers' own words
  • what open weights trade
  • a default, and the four reasons to leave it
  • why many systems use both

Three Ways, Not Two

"Open versus closed" hides a third way. You can run a model in three ways:

  1. A closed API. The lab runs its own model and keeps the weights; you send requests.
  2. Open weights, served by a host. Another company runs published weights for you, behind its own API. Mistral's API lists DeepSeek's V4.1 Flash as "A third-party open weight model from DeepSeek", and Alibaba Cloud's model list serves DeepSeek's models and GLM beside its own. You use an open model without owning a GPU.
  3. Open weights on your own servers. You download the weights and serve them yourself, in Meta's words "through a runtime such as SGLang, vLLM, TensorRT-LLM, or llama.cpp".

So using an open model does not mean running it yourself. And open weights are not open source. The Open Source Initiative's definition asks for the freedom to "Use the system for any purpose and without having to ask for permission", and for "Data Information" about the training data, not only the weights. Licenses differ by model, and some limit use: Llama 4's license says that a company whose products had more than "700 million monthly active users" when Llama 4 was released must ask Meta for a license.

A Closed API: What You Trade

What you get:

  • No infrastructure. No GPUs, no serving, no scaling: the provider runs it.
  • The labs' most capable models. OpenAI, Google, xAI and Meta each call an API-only model their most capable or strongest, as The Model Families: GPT, Claude, Gemini, Llama, Qwen, Mistral, DeepSeek showed.
  • A bill that starts at zero. You pay per token, so a small app pays a small bill.

What you give up:

  • Your prompts go to the provider. OpenAI says that since 1 March 2023 data sent to its API "is not used to train or improve OpenAI models", and that its abuse monitoring logs are kept "for up to 30 days"; keeping content out of them is "subject to prior approval by OpenAI". Anthropic offers zero data retention, under which it "does not store customer prompts or responses at rest after the API response is returned"; its Fable and Mythos models "require 30-day data retention and are not available under ZDR unless expressly authorized by Anthropic". These are arrangements to read and sign up for, model by model, not a default.
  • The model changes on the provider's schedule. Mistral's page lists Mistral Medium 3.5 as deprecated on 31 October 2026 and retired on 30 April 2027, with Mistral Large 4 as its replacement.
  • Limits you do not set. DeepSeek's page gives each of its two models a concurrency limit, 2,500 and 500.
  • A bill that grows with every token. At high volume the per-token bill is the one that grows.

Open Weights: What You Trade

What you get:

  • Your prompts stay on your servers, when you run the weights yourself: the cleanest answer when data must not leave.
  • Fine-tuning on your data. You can change the weights. LoRA Land fine-tuned 310 models on 31 tasks and found that "4-bit LoRA fine-tuned models outperform base models by 34 points and GPT-4 by 10 points on average".
  • A copy nobody can retire, and a model that runs offline.
  • No per-token bill. You pay for GPUs by the hour, busy or idle.

What you give up:

  • You own the operations. Serving, scaling, GPUs, uptime and monitoring are yours, on runtimes you run yourself.
  • The newest top models, for most labs: their most capable ones are API-only.
  • Idle hours cost the same. A GPU rented by the hour costs as much at night as at noon, so running it yourself pays only when your traffic keeps it busy.
  • The license's terms, which come with every set of weights.

The Decision

Default to an API, closed or hosted, and move toward running open weights yourself only when one of these four reasons holds:

  • Data can't leave. Your prompts must stay on your servers, and no provider's retention terms are enough.
  • Steady, high volume. Your traffic is large and predictable enough to keep rented GPUs busy most hours. Understanding API Pricing (Token Math) works out what tokens cost.
  • Fine-tuning. You need to change the weights on your own data, and keep the weights you made.
  • No lock-in, or offline. You need a model that nobody can retire, that you can audit, or that runs without a network.

If none of them holds, an API is simpler, and you can move later: the same open weights run on a host's API and on your own servers.

Three ways to run a model, and what each trades. A closed API: the lab runs the model and keeps its weights, your prompts go to the lab, you pay per token, and the lab retires the model on its own date; for example Claude, GPT-6 and Gemini 4. Open weights served by a host: a host runs the published weights, your prompts go to the host, you pay per token, and while a host can stop serving, the weights stay published; Mistral's API serves DeepSeek's and Z.ai's open weights, and Alibaba Cloud's serves both too. Open weights on your own servers: you run them with a runtime such as vLLM, SGLang or llama.cpp, your prompts stay on your servers, you pay per GPU-hour whether the GPUs are busy or idle, and nobody retires your copy. Default to an API; go open for data that cannot leave, steady high volume, fine-tuning, or no lock-in and offline use.

Using Both

It need not be one or the other. One design sends each request to the model it needs:

  • Hard, rarer requests go to the most capable model, which for most labs is behind an API.
  • Easy, frequent requests go to a smaller or open model, hosted or your own.
  • A router decides which request goes where.

Build vs Buy & the Model Router builds such a router, and Model Routing & Cascades (Heterogeneous Architectures, SLMs) takes it to production. The question becomes which model for which job.

Check Yourself

Seven questions on running a model.

Check yourself: open and closed models

1 / 7

Multiple choice

A hospital must keep every patient record on its own servers. Which way to run a model fits?

Key Takeaways

  • There are three ways to run a model: a closed API, open weights served by a host, and open weights on your own servers.
  • Open weights are not open source: the license sets the terms, and the Open Source Initiative asks for more than the weights.
  • A closed API gives the labs' most capable models with no infrastructure; your prompts go to the provider, under its retention terms, and the model retires on its schedule.
  • Open weights on your servers keep your prompts in, can be fine-tuned and never retire; you run them, and you pay for the GPUs busy or idle.
  • Default to an API; go open for data that can't leave, steady high volume, fine-tuning, or no lock-in.
  • Many systems use both, with a router.

Next: Base vs Instruct vs Reasoning Models. What separates them inside every family.