Learn
AI & LLM foundations

Open-weight vs open-source vs closed-source AI: what is the difference?

The short answer

Open-weight means the trained weights are downloadable. Open-source usually means the code, and sometimes the data, are under an OSI-approved licence. Closed-source means you only get an API or a product, not the model. The three are routinely confused, and the confusion leads to bad procurement decisions.

On this page

Why the labels blur

The vocabulary arrived from software, where the categories were reasonably clear. Source code is either available or it is not, and a licence either meets the Open Source Definition or it does not. Machine learning does not fit that mould, because there are at least four separable artefacts: the weights, the training code, the training data and the evaluation methodology. A release can open any combination of them.

Marketing then flattens the distinctions. A vendor publishes weights with a restrictive custom licence and calls the model open source, because "open" sells. A research lab publishes training code but no weights, and calls the project open, because the code is genuinely open. A different lab publishes weights, a paper and an evaluation harness but not the corpus, and calls it open science. All three claims can be defensible in some sense and misleading in another.

The practical response is to stop arguing about labels and ask four questions instead: can I run it myself, can I modify it, can I redistribute it, and what does the licence require of me? Those answers determine what you can build.

Level one: closed source

In a closed model you interact through an API or a product interface. You send input, you receive output, and you never possess the model. The provider controls the version, the price, the rate limits, the safety behaviour and the deprecation schedule.

The advantages are real and often underrated. There is no hardware to buy, no serving stack to operate and no capacity planning. Quality is usually at or near the frontier, because the provider amortises an enormous training budget across many customers. Safety filtering, uptime and support come included, and the provider absorbs the cost of the next generation of hardware.

The disadvantages are also real. Your data leaves your network, subject to the provider's terms. Prices can change and have changed. Models get deprecated, which forces migration work on your schedule rather than theirs. You cannot fine-tune beyond whatever the provider offers, cannot inspect the weights, and cannot reproduce a result six months later if the endpoint has moved on. And you inherit the provider's refusals, which may be broader or narrower than your own policy.

Level two: open weights

Open weight is the category most people mean when they say open source AI. The trained parameters are published, usually on a model hub, along with a tokenizer and configuration. You can download them, run them, fine-tune them and often redistribute them.

What is usually missing is the training data and the full training pipeline. Model cards describe the corpus in general terms, sometimes with a mixture table and a token count, but the corpus itself is rarely released. Training code may or may not be published; even when it is, reproducing the model requires the data and the compute, so the practical ability to recreate it is limited.

The licence is where the category fragments. Some releases are Apache-2.0 or MIT. Others use bespoke terms with user thresholds, acceptable-use policies, naming requirements or prohibitions on training competing models. Both kinds get described as open weight, which is accurate, and as open source, which usually is not. If you are choosing a base model for a commercial product, the licence is the first thing to read and the last thing to assume.

Level three: open source code

An open-source AI project publishes the code that builds and runs the model: architecture definitions, training loops, data processing, evaluation harnesses. That is genuinely valuable, because it makes the method inspectable and reusable even when the weights are not available.

The classic research releases worked this way. Papers came with reference implementations that others could run on their own data, and progress came from many groups reimplementing and improving the same ideas. Most modern architectures became widely understood because of open reference code, not because of a product launch.

Open code without open weights still leaves you unable to reproduce the reported model. You can train your own version if you have the data and the compute, which for a frontier-scale model is out of reach for almost everyone. For a small model or a fine-tuning recipe, it is entirely practical, which is why open training frameworks matter most at that scale.

Level four: open data and open science

The strongest form of openness releases the dataset, or at least enough information about it to recreate something substantially equivalent, together with code, weights and evaluation detail. Very few frontier models qualify, because the corpus is enormous, contains copyrighted and personal material, and is often the most commercially sensitive asset the lab owns.

Where this level does exist, it tends to be in research settings: a curated corpus with documented provenance and licence, a training run with published logs and hyperparameters, and an evaluation suite anyone can run. Projects like that are how the field establishes what actually causes an improvement, as opposed to what happens to correlate with it in a vendor's blog post.

The Open Source Initiative published an Open Source AI Definition that tries to formalise this. It requires the four freedoms to use, study, modify and share, plus enough information about the training data, including its provenance and how it was processed, that a skilled person could build a substantially equivalent system. It deliberately does not require releasing the data itself. The definition is contested, and few released models fully satisfy it, but it is the most useful reference point when someone claims a model is open source.

A side-by-side comparison

  • Access to weights: closed gives none, open weight gives a download, open source may or may not include them.
  • Access to training code: closed none, open weight sometimes, open source usually.
  • Access to training data: closed none, open weight rarely, open data releases it or documents it sufficiently.
  • Right to modify: closed only through provider features, open weight yes, open source yes.
  • Right to redistribute: closed no, open weight depends on licence, open source yes under licence terms.
  • Cost structure: closed per token, open weight fixed infrastructure, open source fixed plus engineering.
  • Control of the version: closed vendor, open weight you pin a revision, open source you can rebuild.
  • Time to first working prototype: closed fastest, open weight moderate, open source slowest.

Licences are not interchangeable

Permissive licences such as Apache-2.0, MIT and BSD allow commercial use, modification and redistribution with attribution and, in Apache's case, an explicit patent grant and a NOTICE requirement. They impose few obligations on your own code and are compatible with most commercial products.

Copyleft licences such as GPL and AGPL require derivative works to be distributed under the same terms. For a model, the analysis is unsettled: whether fine-tuning creates a derivative work, and whether serving a model over a network triggers AGPL obligations, are questions lawyers are still arguing. The prudent assumption for a business is that copyleft plus network use is a risk to evaluate before, not after, you build.

Custom model licences sit outside both traditions. They may permit commercial use with conditions, cap the user count before a separate agreement is required, forbid using outputs to train a competing model, or require that derivative models carry a different name. They are contracts rather than open-source licences, and they should be read as contracts.

Dataset licences add another layer. A model trained on data with non-commercial terms may carry obligations that the model licence does not mention, and the chain of provenance is often incomplete. This is an area of active litigation, and it is one of the reasons some companies prefer models from vendors who indemnify them.

What actually matters for a business

Start with data handling. If your inputs contain personal data, regulated data or trade secrets, an API may be acceptable with the right contract and may not be acceptable at all under your own policies. That single constraint often settles the architecture before quality enters the discussion.

Then look at volume and shape of usage. A steady, high-volume, narrow workload favours open weights. A bursty, low-volume, broad workload favours an API. A product with hard latency requirements may favour a small self-hosted model even at modest volume, because network round trips and queueing at a shared endpoint can dominate.

Then look at differentiation. If the model is the product, owning the weights and the fine-tune is strategic. If the model is a component inside a workflow, a hosted API is usually the right call, because your differentiation is elsewhere and the operational burden is pure cost.

Finally, look at the exit. What happens if the provider doubles its price, changes its acceptable-use policy or discontinues the model? A team that can answer that question has actually evaluated its dependency, rather than assuming the current arrangement is permanent.

Common mistakes

  • Calling a custom-licensed weight release open source because the download is free.
  • Assuming open weights come with the training data, and therefore assuming you can retrain from scratch.
  • Choosing on benchmark scores without checking the licence and the chat template.
  • Treating "open" as a security guarantee. An open model can still be evaluated badly, fine-tuned on poisoned data, or distributed as a tampered file.
  • Ignoring the operational cost of self-hosting in the comparison, then discovering it in the second quarter.
  • Assuming an API model will stay available at the same price for the life of the product.
  • Mixing licences across a base model, a fine-tune and a dataset, and discovering the conflict at launch.
  • Forgetting that output ownership and training-data provenance may be governed by terms outside the model licence.

A decision checklist

  • Can the data legally and contractually leave our network?
  • What is the monthly token volume, and what does it cost under each option at that volume?
  • Does the licence permit our commercial model, our user count and our redistribution plans?
  • Can we operate the serving stack, or will we have to hire for it?
  • How much quality gap can the product tolerate before users notice?
  • What is the migration plan if the provider changes terms or retires the model?
  • Do we need to inspect or modify the weights for the product to work?
  • Who is accountable for a bad output, and does the arrangement give us the logs to investigate one?

Openness is a spectrum, and often strategic

Companies rarely choose a level of openness by accident. Publishing weights can commoditise a complement: a lab that sells cloud compute benefits when good models run anywhere, and a company that sells hardware benefits when there is a strong model to run on it. Publishing weights also attracts talent, builds a community around an architecture and creates a de facto standard that competitors must respond to.

The opposite calculations are just as deliberate. Withholding data protects a moat that took years and millions of dollars to build, and avoids redistributing material the company does not own. Withholding the training recipe keeps a capability advantage in the next generation. Releasing weights but not data is therefore not hypocrisy so much as a boundary drawn where the commercial and legal risks change character.

For a buyer, this means the label tells you about strategy, not about your rights. Two releases described identically in a press release can have completely different licences, different data provenance and different willingness to support you. Read the artefacts, not the announcement.

If you publish a derivative

Teams increasingly fine-tune an open base and then release the result, internally or publicly, and the obligations are easy to underestimate. The base licence still applies to the derivative: keep the licence text and NOTICE, mark the files you changed, and do not use the original name in a way that implies endorsement. If the base has a custom licence with a user threshold or an acceptable-use policy, those terms travel too.

Your own release needs a model card that is honest about what the model is for and what it was trained on, including the licence and provenance of your fine-tuning data. If you trained on a dataset with non-commercial terms, redistributing the weights may conflict with those terms even when the base licence permits it. This is the most common way a well-intentioned release creates a legal problem.

Naming deserves care. Most custom model licences require derivative models to carry a different name, and trademark law applies regardless. "ModelName-Custom" is usually acceptable; implying that your fine-tune is the official model is not.

Key points

  • Open weight, open source, open data and open science describe different artefacts.
  • Closed APIs trade control for convenience and frontier quality.
  • Most open-weight releases publish weights but not data, and licences vary widely.
  • The OSI definition sets a high bar that few model releases meet.
  • Licence compatibility, especially copyleft and custom terms, is a legal question, not a marketing one.
  • Decide on data constraints, volume, differentiation and exit risk, not on the label.
Page feedback

Was this helpful?

A quick signal helps improve these notes.

Report a mistake Straight to the lab inbox

Put it to work

See the models, datasets and gateway this lab runs.