← All news

News / Learn / LLM fundamentals

Open models vs closed models: what is the difference?

You'll be able to explain the difference between open-weight and closed models and weigh them for your product.

A closed model is one you use through an API. The provider hosts it, and you never see its weights, which are the learned numbers that make it work. An open-weight model publishes those weights, so you can download and run it yourself, or pay a host to run it for you. The main difference is who controls the model and where it runs.

The choice affects cost, privacy, control, and how much work your team takes on. Closed models are usually the fastest way to start, since you send a request and get an answer. Open weights give you more say over hosting, data location, and changes to the model, but you then own the serving, scaling, and updates.

With a closed model, the provider runs the model on their servers. You pay per use and send your data to their infrastructure under their terms. You can't inspect or change the model itself, and the provider can change or retire a version on its own schedule.

With open weights, the model files are available to download. You can run them on your own hardware, on a cloud machine you rent, or through a third-party host. You can also adjust the model with fine-tuning, which means training it further on your own examples. Open weights do not automatically mean open source. The license may limit commercial use, so read it before you build on it.

Running a model yourself is called inference. It needs memory and compute, and speed depends on hardware. Techniques like quantization shrink a model so it fits on smaller machines, at some cost to quality. Those costs are real even when the model itself is free to download.

The practical question is which trade-offs matter most to you: ease of starting, data control, customization, predictable cost at scale, or operational effort. Many teams start with a closed model to test their idea, then consider open weights once they know what they need.

A simple way to keep your code provider-neutral is to put the model behind one function. Switching between hosted and self-hosted models then touches one place.

import os

def generate(prompt: str) -> str:
    """Single entry point for text generation.
    Swap the backend here without touching the rest of the app."""
    backend = os.environ.get("MODEL_BACKEND", "hosted")
    if backend == "hosted":
        return call_hosted_api(prompt)
    if backend == "local":
        return call_local_model(prompt)
    raise ValueError(f"Unknown backend: {backend}")

def call_hosted_api(prompt: str) -> str:
    # Call your provider's SDK here.
    raise NotImplementedError

def call_local_model(prompt: str) -> str:
    # Call a locally served open-weight model here.
    raise NotImplementedError

A short sketch to show the idea. Check the official docs of the tool you use.

  • Assuming open means free to use commercially Read the model license. Some open-weight licenses limit commercial use, user counts, or redistribution.
  • Ignoring the cost of running your own model Count hardware, engineering time, monitoring, and updates. A free model can still cost more than a hosted one at low volume.
  • Locking your app to one provider's API Wrap model calls in one interface so you can switch hosts or models later.
  • Forgetting where your data goes Check the provider's data handling terms for hosted models. With self-hosting, confirm who can access the logs and files.

Learn about quantization and inference servers if you plan to self-host. Learn about evals so you can compare any two models on your own tasks instead of relying on general reputation.

Are open-weight models as good as closed ones?

It depends on the task and the model. Compare candidates on your own examples with an eval set. Don't rely on general rankings.

Do I need a GPU to run an open model?

Often yes for good speed, but smaller or quantized models can run on CPUs or laptops for light use. Test on your target hardware.

Can I fine-tune a closed model?

Some providers offer fine-tuning for certain models, but you usually can't change the weights directly the way you can with open weights.

Is my data safe with a hosted model?

Read the provider's terms on data retention and training use. Many offer settings to limit retention. Treat sensitive data with extra care.

Which should a small team pick?

Starting with a hosted model is common because it's fast to test. Revisit the choice when cost, privacy, or customization needs grow.

Written with AI by CapyLaunch. Spotted a mistake? Email hello@capylaunch.com.