Open-Source AI vs Closed-Source AI: What the Labels Really Mean
Open-source, open-weight or closed AI? How the OSI definition works, what Llama, Gemma, gpt-oss and DeepSeek licences allow, and how to pick a model.
Closed-source AI models are reached only through a vendor's app or API; you never get the model itself. Open models let you download the trained weights and run them on your own hardware, but "open" covers a wide range: most popular "open-source" models are really open-weight models with custom licences, while the Open Source Initiative's definition also requires the training code and detailed information about the training data. The right choice depends on how much control, privacy and customization you need, and on how much infrastructure you are willing to run.
Three categories, not two
The debate is usually framed as open versus closed. In practice there are at least three distinct things on the market.
Closed (proprietary) models. The developer keeps the weights, code and data private. You send prompts to a hosted service and get outputs back. The provider controls pricing, model versions, retirement dates and usage rules.
Open-weight models. The developer publishes the trained parameters, so anyone can download and run the model. The licence may be permissive or restrictive, and training code and data are often withheld. Most models people call "open source" sit here.
Open-source AI in the formal sense. The Open Source Initiative (OSI), the body that maintains the Open Source Definition for software, published the Open Source AI Definition (OSAID) 1.0 on October 28, 2024, at the All Things Open conference in Raleigh, North Carolina [2]. It sets a higher bar than open weights alone [1].
If you are new to how these systems are built, our guide to how large language models work explains what "weights" and "training" mean.
What the Open Source AI Definition requires
The OSAID carries the four classic software freedoms over to AI. A system qualifies only if anyone can use it for any purpose without asking permission, study how it works, modify it for any purpose (including changing its output), and share it with or without changes [1].
To make those freedoms practical, the definition requires access to the "preferred form to make modifications," which has three parts [1]:
- Data information. Enough detail about the training data that a skilled person could build a "substantially equivalent system." That includes a description of all training data (even data that can't be shared), where it came from, how it was selected, labelled and filtered, plus lists of public and third-party datasets and where to get them.
- Code. "The complete source code used to train and run the system," covering data processing, training, validation, inference and the model architecture, under OSI-approved licences.
- Parameters. The model weights (and optionally checkpoints and optimizer state) under OSI-approved terms.
The definition does not force developers to publish every training dataset. The OSI's FAQ explains that some data can't legally be shared, such as personal health information, and sorts training data into four tiers: open data must be shared, public and obtainable data must be listed with sources, and unshareable data must be described well enough to build something similar [3].
Which models pass?
The OSI says it validates legal documents rather than certifying systems. Its FAQ reports that Pythia (EleutherAI), OLMo (AI2), Amber and CrystalCoder (LLM360) and T5 (Google) met the definition. BLOOM, StarCoder2 and Falcon would likely pass with licence changes. Llama 2, Grok, Phi-2 and Mixtral failed because of missing components, licence terms incompatible with open-source principles, or both [3]. The FAQ stresses these results are "not certifications of any kind" [3].
The short version: a model can be freely downloadable and still not be open source by the OSI's standard.
What popular open-weight licences actually allow
Licence terms vary far more than the "open" label suggests. These are the terms as published at the time of writing (November 2026).
Meta Llama 4: open weights with conditions
The Llama 4 Community License (effective April 5, 2025) lets you use, modify and redistribute the models, with strings attached [4]:
- If your products had more than 700 million monthly active users in the month before the Llama 4 release date, you must request a separate licence from Meta, which it may grant "in its sole discretion."
- You must display "Built with Llama" on a related website, interface or documentation.
- If you use Llama or its outputs to train or improve a model you distribute, its name must begin with "Llama."
- You must follow Meta's Acceptable Use Policy, which the licence incorporates by reference.
Usage restrictions and a user-count threshold are exactly the kind of terms the OSI flagged when it found Llama 2 did not meet its definition [3].
Google Gemma: two licence regimes
Google released Gemma 4 on April 2, 2026, under the OSI-approved Apache 2.0 licence, the first Gemma models to use it [11]. Earlier Gemma generations are covered by the custom Gemma Terms of Use, which work differently.
The Gemma Terms of Use (last modified April 1, 2026) allow redistribution, including as a hosted service, but you must pass the use restrictions on to downstream users in an enforceable agreement and follow Google's Prohibited Use Policy [5]. Google also reserves the right to restrict usage "remotely or otherwise" if it reasonably believes the terms are being violated. Google claims no rights in the outputs you generate [5]. The terms page itself points Gemma 4 users to a separate licence, so check which document applies to the version you use [5][11].
OpenAI gpt-oss and DeepSeek-R1: permissive licences
Some developers now ship weights under standard permissive licences:
- gpt-oss. OpenAI released gpt-oss-120b (117 billion total parameters, 5.1 billion active per token) and gpt-oss-20b on August 5, 2025, under the Apache 2.0 licence, with weights on Hugging Face [6]. OpenAI open-sourced the tokenizer but described the training data only in general terms ("mostly English, text-only") [6].
- DeepSeek-R1. The code repository and weights are under the MIT License, and the model card explicitly allows commercial use, modifications and distillation to train other models [7]. One catch: the distilled R1 variants inherit the licences of their base models, so the Llama-based distills carry Llama terms [7].
A permissive licence on the weights settles the "Parameters" piece of the OSAID. Whether a release fully meets the definition also depends on the code and data information that come with it [1].
Open vs closed: side-by-side comparison
Factor | Closed (API) models | Open-weight models |
|---|---|---|
Access | Hosted service only | Download and run anywhere the licence allows |
Where data goes | To the provider's servers, under its data terms | Can stay entirely on your infrastructure |
Customization | Prompting, plus whatever fine-tuning the vendor offers | Full fine-tuning, quantization, pruning, architecture changes |
Version control | Vendor decides when models change or retire | You pin a version indefinitely |
Operating burden | Low: no GPUs to manage | High: serving, scaling, patching and monitoring are yours |
Cost shape | Pay per token or seat | Pay for compute and staff; can be cheaper at steady high volume, pricier at low volume |
Safety controls | Provider filters and monitoring built in | You add your own guardrails; built-in safeguards can be fine-tuned away |
Transparency | Usually limited to model cards and documentation | Weights can be inspected; training data often still opaque |
Licence risk | Governed by the provider's terms of service | Ranges from MIT/Apache 2.0 to custom licences with use restrictions |
Privacy and data control
For many organizations, data handling decides the question. With an open-weight model running on your own servers, prompts and documents never leave your environment.
Closed providers have narrowed the gap with contractual controls. OpenAI, for example, says data sent to its API is not used to train its models unless you opt in, keeps abuse-monitoring logs for up to 30 days by default, and offers Zero Data Retention to approved customers [8]. Those are policy commitments, not architectural guarantees, so regulated industries often still prefer self-hosting or a cloud deployment inside their own account.
Security: both sides have trade-offs
Openness cuts both ways. Published weights let independent researchers probe models for flaws and let companies audit what they deploy. They also mean anyone can fine-tune away safety behaviour, and a release can't be recalled.
The US government looked at this directly. In a July 30, 2024 report, the National Telecommunications and Information Administration (NTIA) recommended that the government "refrain from restricting the availability of open model weights for currently available systems," while actively monitoring for emerging risks and keeping restrictions available as a future option if evidence warrants [9]. NTIA cited benefits such as letting developers "build upon and adapt previous work" and widening access for small companies, researchers, nonprofits and individuals [9].
Closed models are not automatically safer to deploy, either. Prompt injection, excessive permissions and data leakage affect applications built on any model. Our explainer on zero trust security architecture covers the access-control principles that apply in both cases.
The regulatory angle
United States. There is no federal licensing regime for model weights. The NTIA position above remains the main federal statement on open weights [9].
European Union (global note). The EU AI Act's rules for general-purpose AI models have applied since August 2, 2025. Article 53(2) exempts providers of models released under a free and open-source licence, with weights, architecture and usage information made public, from two documentation duties: technical documentation for regulators and information for downstream providers [10]. The exemption does not cover the copyright policy or the training-content summary, and it does not apply at all to models with systemic risk [10]. In other words, "open" earns lighter paperwork in the EU, not a free pass.
Common deployment options
The choice is rarely all-or-nothing. Typical architectures include:
- Hybrid stacks. Route routine, high-volume tasks to a self-hosted open model and send the hardest tasks to a closed API, behind one internal interface.
- On-premises and edge. Open weights make it possible to run models on air-gapped servers, laptops and devices; see small language models for why size matters here.
- Agent platforms built on open models. Vendors increasingly package open models with orchestration tooling, as in our coverage of Nvidia's planned open-source agent platform and Red Hat's argument that open-source orchestration will drive enterprise AI.
How to choose
Work through these questions in order:
- Can the data leave your environment? If contracts or regulation say no, start with open weights you can self-host, or a closed model deployed inside your own cloud tenancy.
- Do you need the very top capability? If a task needs the strongest available reasoning, test closed frontier models alongside the best open ones on your own evaluation set. Rankings shift often, so don't rely on last quarter's leaderboard.
- Read the licence, not the label. Check user thresholds, attribution rules, naming requirements, acceptable-use policies and whether the provider can restrict use. Apache 2.0 and MIT are the simplest; custom licences need legal review.
- Count the full cost. Self-hosting means GPUs, inference software, monitoring, security patching and on-call staff. Our guide to AI training vs inference explains where the compute goes.
- Plan for change. Closed models get retired; open models you host can run forever but won't improve unless you upgrade them. Design so you can swap models behind a stable interface.
- Decide how much you need to adapt the model. If retrieval over your documents is enough, either option works; see RAG vs fine-tuning. Deep fine-tuning is far easier with open weights.
Outlook
Two trends are visible in the sources above. First, more major labs now publish weights under standard permissive licences, as OpenAI did with gpt-oss, DeepSeek did with R1 and Google did with Gemma 4 [6][7][11]. Second, regulators on both sides of the Atlantic have so far chosen to monitor or lightly regulate open weights rather than ban them [9][10].
Frequently asked questions
Is Llama open source?
Not by the Open Source Initiative's definition. Meta publishes the weights, but the licence includes a 700-million-user threshold, attribution and naming rules, and an acceptable-use policy [4]. The OSI found that Llama 2 did not meet its definition because of missing components and incompatible terms [3]. "Open-weight" is the more accurate label.
What is the difference between open source and open weights?
Open weights means you can download the trained model parameters. Open source, under the OSAID, also requires the full training and inference code and enough information about the training data to rebuild a substantially equivalent system, all under OSI-approved terms [1].
Are open-source models less secure than closed models?
Not inherently. Open weights allow outside auditing but also let anyone remove safety tuning, and they can't be recalled after release. NTIA concluded in 2024 that the risks did not justify restricting currently available open models, while recommending continued monitoring [9]. Application-level security matters for both.
Can I use open-weight models commercially?
Usually, but it depends on the licence. Apache 2.0 (gpt-oss) and MIT (DeepSeek-R1) allow commercial use with minimal conditions [6][7]. Gemma 4 also uses Apache 2.0 [11]. Custom licences, such as Llama's and the Gemma Terms of Use that cover earlier Gemma models, allow commercial use but add conditions you must follow [4][5].
Do closed AI providers train on my data?
It depends on the provider and the product. OpenAI says API data is not used for training unless you opt in, with abuse-monitoring logs kept up to 30 days by default [8]. Consumer apps often have different defaults than business APIs, so check the specific terms you signed.
Sources
- Open Source Initiative. "The Open Source AI Definition 1.0." https://opensource.org/ai/open-source-ai-definition
- Open Source Initiative. "The Open Source Initiative Announces the Release of the Industry's First Open Source AI Definition." October 28, 2024. https://opensource.org/?p=77299
- Open Source Initiative. "Open Source AI Definition: FAQ." https://opensource.org/ai/faq
- Meta. "Llama 4 Community License Agreement." Effective April 5, 2025. https://dev.meta.ai/llama/llama4/license/
- Google. "Gemma Terms of Use." Last modified April 1, 2026. https://gemma.ai/resources/terms/
- OpenAI. "Introducing gpt-oss." August 5, 2025. https://openai.com/index/introducing-gpt-oss/
- DeepSeek. "DeepSeek-R1" model card, Hugging Face. https://huggingface.co/deepseek-ai/DeepSeek-R1
- OpenAI. "Data controls in the OpenAI platform." https://developers.openai.com/api/docs/guides/your-data
- NTIA. "Fact Sheet: NTIA AI Report Calls for Monitoring, But Not Mandating Restrictions of, Open AI Models." July 30, 2024. https://www.ntia.gov/other-publication/2024/fact-sheet-ntia-ai-report-calls-monitoring-not-mandating-restrictions-open-ai-models
- EU AI Act, Article 53, via AI Act Explorer. https://artificialintelligenceact.eu/article/53/
- Google Open Source Blog. "Gemma 4: Expanding the Gemmaverse with Apache 2.0." April 2, 2026. https://opensource.googleblog.com/2026/03/gemma-4-expanding-the-gemmaverse-with-apache-20.html