Open and Closed Models

Updated · 6 min read
mediumPython 3.13aimodelsopen-weightapiprivacybeginnersinterview

Can you run an AI model on your own computer? Advitha's small clinic in San Francisco wants AI to summarize patient notes, but the notes must never leave the clinic's computers. Her sister Srihitha's startup, a few streets away, just wants the best results with no servers to manage. They need different kinds of models: one they can run themselves, and one they use as a service.

Those are open-weight and closed models. This lesson explains the difference and how to choose.

Owning a Car or Taking a Taxi

Owning a car vs taking a taxi

An open-weight model publishes its weights, the learned parameters from "Parameters: What a Model Learns". You can download them and run the model on your own computers. It is like owning a car: you control it completely, but you pay for it and maintain it.

A closed model keeps its weights private. You use it through the provider's API or app, sending requests and paying per use. It is like taking a taxi: easy and always available, but on the provider's terms.

How They Compare

Open-weightClosed
AccessDownload the weightsUse the provider's API or app
ControlHigh: you pick the version, settings and updatesThe provider decides versions, rules and limits
PrivacyData can stay on your own computersData is sent to the provider, under its terms
CostHardware, electricity and staff timePay per request or subscription
EffortYou set up, secure and maintain itLow: the provider runs everything
CustomizingYou can fine-tune and change it freely (within its license)Limited to what the provider offers

"Open-weight" is not always "open source": some models share weights but not their training data or full code, and their licenses can limit how you use them. Always read the license.

Examples, as of November 2026

Families of open-weight models include Meta's Llama, Google's Gemma and several models from Mistral AI; hubs such as Hugging Face list many thousands more. Popular closed models include OpenAI's GPT models, Anthropic's Claude and Google's Gemini, used through each company's apps and APIs. Some companies offer both kinds, and model names change quickly, so check each provider's current list.

Choosing Between Them

SituationUsually a better fit
Data must stay on your own computers, like Advitha's clinicOpen-weight, run in-house
You want the strongest results with no servers to manage, like Srihitha's startupClosed, through an API
Small volume, getting startedClosed: pay only for what you use
Very large, steady volumeOpen-weight can cost less over time
You need to customize the model deeplyOpen-weight

Common Mistakes

Thinking open-weight means free. The weights may be free to download, but the hardware, electricity and people to run them are not.

Thinking closed models are always more private or always less private. It depends on the provider's terms and settings, and on how you run an open model.

Ignoring the license. Some open-weight licenses restrict commercial use or very large companies.

Interview Corner

What is an open-weight model?

A model whose learned parameters (weights) are published, so anyone allowed by its license can download and run it on their own hardware, and often fine-tune it. Its training data and code may still be private.

When would you choose a closed model over an open-weight one?

When you want strong results quickly without running servers, your volume is small or uncertain, and sending data to a provider under its terms is acceptable. Open-weight fits better when data must stay in-house, control matters, or volume is large and steady.

Practice

Exercise: advise two businesses. For Advitha's clinic and Srihitha's startup, write a short recommendation: open-weight or closed, and why, covering control, privacy, cost and effort. Then name one risk of your recommendation for each business.

Check your understanding:

  1. What does an open-weight model let you download?
  2. Name two advantages of a closed model.
  3. Why isn't "open-weight" always the same as "open source"?

Quick check: open and closed models

4 questions
1What does "open-weight" mean?
2A clinic's notes must never leave its own computers. Which fits better?
3What is a common advantage of a closed model?
4Why should you read an open-weight model's license?

Key Takeaways

Quick reference

TermMeaning
WeightsA model's learned parameters
Open-weight modelA model whose weights can be downloaded and run
Closed modelA model used only through its provider's API or app
LicenseThe rules for how a model may be used
Fine-tuningFurther training a model on your own data

Was this tutorial helpful?

Lesson 17 of 186