YOLO License: Which Versions Can You Use Commercially?
YOLO has no single license. The Ultralytics versions most people use (YOLOv5, YOLOv8, YOLO11 and YOLO26) are under AGPL-3.0: free if you publish your own source code, otherwise you buy an Ultralytics Enterprise License. YOLOv7 and YOLOv9 are GPL-3.0. YOLOX, RT-DETR and most RF-DETR models are Apache 2.0, free to use in closed commercial products.
We build vision systems for a living, and for one client we answered this question by writing our own YOLOv10 under Apache 2.0. This guide gives the license of every version, what each one asks of you, and the ways out. It is general information, not legal advice: on a product that matters, have a lawyer read the license against your architecture.
- The license of every YOLO version
- Whether you can use YOLO commercially
- Whether it covers a model you trained
- Internal use
- What the Enterprise License costs and covers
- Alternatives you can ship closed
- How to choose
What each license asks depends on how you ship
The same license can cost you nothing or cost you your source code, depending on whether your product stays inside your company, runs on your servers, or lands in a customer's hands. Pick the way you ship.
What each YOLO license family asks depends on how you ship. Open source: AGPL-3.0, Free, as long as your project is released under AGPL-3.0 too.; GPL-3.0, Free, as long as your project is released under GPL-3.0 too.; Apache 2.0 and MIT, Free. Keep the copyright and license notices.; YOLO-NAS weights, No commercial use, and no passing the weights on, without Deci's consent.. Internal tool: AGPL-3.0, The license sets no duty to publish for private use. Ultralytics lists internal tools as needing its paid license.; GPL-3.0, Private use carries no duty to release anything.; Apache 2.0 and MIT, Free. Nothing to publish.; YOLO-NAS weights, No commercial or production use without a separate agreement.. SaaS or API: AGPL-3.0, Offer your users the source of the service you built on it, or buy a commercial license.; GPL-3.0, GPL has no network clause. Code that never leaves your servers can stay closed.; Apache 2.0 and MIT, Free. Nothing to publish.; YOLO-NAS weights, No commercial or production use without a separate agreement.. Device or app: AGPL-3.0, Ship the source of the whole product with it, or buy a commercial license.; GPL-3.0, Ship the source of the whole product with it, or use the MIT edition of YOLOv7 and v9.; Apache 2.0 and MIT, Free. Include the license text and notices with the product.; YOLO-NAS weights, No commercial or production use without a separate agreement..
-
AGPL-3.0 : Allowed, no fee.
YOLOv5, v8, v10, 11, v12, v13 and YOLO26
Free, as long as your project is released under AGPL-3.0 too.
-
GPL-3.0 : Allowed, no fee.
YOLOv6, v7 and v9 from their authors, YOLO-World
Free, as long as your project is released under GPL-3.0 too.
-
Apache 2.0 and MIT : Allowed, no fee.
YOLOX, RT-DETR, RF-DETR, D-FINE, AngelCV, MIT YOLOv9
Free. Keep the copyright and license notices.
-
YOLO-NAS weights : No commercial use.
Deci's pre-trained YOLO-NAS models
No commercial use, and no passing the weights on, without Deci's consent.
- Allowed, no fee
- Publish, pay or switch
- License text and vendor disagree
- No commercial use
YOLO license by version
Of the 18 releases below, 8 are AGPL-3.0, including every one from Ultralytics and every one built on the Ultralytics codebase. Each link goes to the repository whose LICENSE file we read on 27 November 2026.
| Version | License | Closed commercial product? |
|---|---|---|
| YOLOv1 to v3 | YOLO License (public domain) | Yes |
| YOLOv4 | YOLO License (public domain) | Yes |
| YOLOv5 | AGPL-3.0 | With a paid license |
| YOLOv6 | GPL-3.0 | Hosted only |
| YOLOv7 | GPL-3.0 | Hosted only |
| YOLOv8 | AGPL-3.0 | With a paid license |
| YOLOv9 | GPL-3.0 | Hosted only |
| YOLOv10 | AGPL-3.0 | No |
| YOLO11 | AGPL-3.0 | With a paid license |
| YOLOv12 | AGPL-3.0 | No |
| YOLOv13 | AGPL-3.0 | No |
| YOLO26 | AGPL-3.0 | With a paid license |
| YOLOX | Apache 2.0 | Yes |
| YOLO-World | GPL-3.0 | Hosted only |
| YOLOE | AGPL-3.0 | With a paid license |
| PP-YOLOE | Apache 2.0 | Yes |
| MMYOLO | GPL-3.0 | Hosted only |
| YOLO-NAS | Apache 2.0 code, non-commercial weights | No |
"With a paid license" means the Ultralytics Enterprise License. "No" on YOLOv10, YOLOv12 and YOLOv13 means the repository is AGPL-3.0 and its authors sell no commercial license. Roboflow's comparison lists the Ultralytics Enterprise License as covering YOLOv5, YOLOv8, YOLO11 and YOLO26, and its own resold license as also covering YOLOv10 and YOLOv12 when you deploy through Roboflow (see price and terms). "No" on YOLO-NAS means the pre-trained weights bar commercial use. "Hosted only" means GPL-3.0: you can run it closed on your own servers, but a product you hand to a customer has to come with its source. Read the table with these in mind:
- A newer version does not get you a friendlier license. YOLOv10, YOLOv12 and YOLOv13 come from university labs, not Ultralytics, but their code is built on the Ultralytics package, so their repositories are AGPL-3.0 as well.
- YOLOv5 used to be GPL-3.0. Ultralytics moved both YOLOv5 and YOLOv8 to AGPL-3.0 on 14 April 2023 (the pull request). Older articles that call YOLOv5 "GPL" are out of date.
- YOLOv8 launched under GPL-3.0 too. Every release on PyPI from 8.0.0 (10 January 2023) to 8.0.77 (13 April 2023) declares GPL-3.0, and a license stays with the copy you received. Pinning one of those releases is legal and rarely wise: they are years behind on fixes.
- A port has its own license. The public-domain grant on YOLOv1 to v4 covers the Darknet code. A PyTorch port is a different work: ultralytics/yolov3 is AGPL-3.0, while Tianxiaomo/pytorch-YOLOv4 is Apache 2.0. Read the LICENSE file of the repository you clone, not the paper.
- YOLOv7 and YOLOv9 exist twice. Their authors publish the original repositories under GPL-3.0 and a rewrite of both under the MIT license.
Can I use YOLO commercially? What the Ultralytics license asks
Yes. Apart from the YOLO-NAS weights, no YOLO license bans commercial use. What the AGPL and GPL versions ban is keeping your source code to yourself while you do it. So the question is whether you can live with publishing your code.
AGPL-3.0 sets two triggers:
- You give someone a copy. An installer, a container image, a camera or an edge box with the software on it. The recipient is entitled to the complete source of the work, under AGPL-3.0, and that work includes your application code that the YOLO code is built into.
- People use it over a network. This is the part that separates AGPL from GPL. Section 13 says that if you modify the program, your version "must prominently offer all users interacting with it remotely through a computer network" the chance to receive its source. An API or a web app in front of a YOLO model is the standard example.
What if you only import the package and change none of its code? Section 13 speaks of modified versions, and developers argue that an untouched library behind an API is not one. Against that, the FSF holds that linking a covered work with other modules makes "a combined work" that the license covers as a whole, and Ultralytics lists "SaaS platforms, APIs, or cloud systems that use YOLO behind the scenes" as needing its paid license. We would not ship a closed hosted product on the hope that the first reading wins.
GPL-3.0 has only the first trigger. The Free Software Foundation's own FAQ confirms that a company running a modified GPL program on a website "does not have to release the modified sources", and that the answer flips under the AGPL. That is why a hosted product on the GPL-3.0 YOLOv9 can stay closed while the same product on YOLO11 cannot.
That leaves three routes for a closed product on an Ultralytics model:
- Publish your application under AGPL-3.0 and pay nothing.
- Buy a commercial license and keep the code closed.
- Build on a model with a permissive license and skip the question.
Does the license cover a model I trained myself?
Ultralytics says yes. Its licensing page lists "using custom-trained or fine-tuned YOLO models in a proprietary or commercial setting" among the cases that need the Enterprise License, and its FAQ on the same page is blunter: "All Ultralytics YOLO trained models fall under the AGPL-3.0 License by default. The AGPL-3.0 License covers the training code and the models produced by that training code." It adds that this applies even if you train from scratch and use no pre-trained weights. On that reading, weights you trained on your own images are AGPL-3.0 too, and so is the application that loads them.
Developers push back on this, and they have a point to argue. The Free Software Foundation says that in general copyright law gives the author of a program no say over its output. But two things weaken that argument for a trained model. Most people start from the pre-trained Ultralytics weights, which are themselves AGPL-3.0, so the fine-tuned file is built from licensed material. And the code that loads and runs the model in your product is usually the Ultralytics package, which is AGPL-3.0 whatever the status of the weights.
Our view: whether trained weights are a derivative work is an open legal question, and you should not hang a business on the answer. If the plan depends on winning that argument against the vendor, pick route 2 or 3 instead. Exporting to ONNX or TensorRT does not change the picture, because the exported file is the same weights in another format.
The detections themselves are a different matter. Boxes, counts and alerts that come out of the model are your data, and nothing in the AGPL claims them.
Do I need a license for internal use?
This is where the license text and the vendor's page part ways.
| What it says about internal use | |
|---|---|
| The AGPL and the FSF | Making and using copies inside one organisation is not distribution, and a company "can make a modified version and use it internally" without releasing it. The network clause applies to modified versions. If staff reach a modified version through a browser or an API, section 13 on its face entitles those staff to its source, though not the public. |
| Ultralytics | Lists "internal business tools or private company applications" and "R&D projects that are not fully open-sourced" as needing the Enterprise License. |
Both can be read on the pages linked above. A defect counter that runs on a factory PC and is only ever seen by your own staff is inside what the license text allows. The position changes when contractors use it off site (the FSF counts that as distribution) or when customers reach it over a network. It is unclear when a group company that is a separate legal entity receives a copy.
Ultralytics owns the copyright and decides whom to chase, so a larger company should assume the question will come up in due diligence or procurement even if the legal position is sound. If you rely on the internal-use reading, write down why, and keep the system internal.
Ultralytics Enterprise License: price and terms
Ultralytics does not publish a price. The license page ends in a quote form that asks for company size, industry, where you will use YOLO and what you are building. Treat any figure you read on a forum as someone else's quote for someone else's product.
What is on the record, as of 27 November 2026:
- It is a yearly subscription, not a one-off purchase. Budget for it as long as the product ships.
- It covers code and models. The table lists commercial use, private deployment, training models for commercial products and ownership of your own modifications.
- It is scoped per project or per organisation. The FAQ says a license can cover "a specific project, covering all team members working on that project", or the whole organisation. The quote depends on which you ask for.
- The Platform plans are not the license. The pricing page shows a Free plan at $0 and a Pro plan at $29 per seat a month, both labelled "AGPL 3.0 License". Only the custom-priced Enterprise plan includes the Enterprise License. Paying for Pro does not make a closed product compliant.
- Ask what happens when you stop paying. Roboflow, which resells Ultralytics licenses, describes the Ultralytics termination clause as "cease and archive use". That is a reseller's summary, so confirm it in your own contract, along with whether the license covers devices already in the field.
There is a second way to buy. Roboflow is an authorised licensor of the Ultralytics models and says every one of its plans includes a commercial license for them when you deploy through Roboflow's cloud, with self-hosting as an enterprise add-on. That suits a team happy to run inference on someone else's platform. It does not suit footage that must stay on site.
Buying the license is often the right call. If the team already knows the Ultralytics tooling and the fee is small next to the engineering time a migration would cost, pay it and move on.
YOLO alternatives with a permissive license
Apache 2.0 and MIT let you use, change and sell the software in a closed product. Apache 2.0 asks you to include the license text and keep the copyright notices, and it adds a patent grant. MIT asks you to keep its copyright and permission notice. These detectors carry one of the two in their own repository:
| Model | License | What to know |
|---|---|---|
| RF-DETR | Apache 2.0 | Nano to Large detection and all segmentation sizes. The Atto, Femto, Pico, XL and 2XL detection models are under Roboflow's own PML 1.0 license instead. |
| RT-DETR | Apache 2.0 | Use the authors' repository. The copy inside the Ultralytics package is AGPL-3.0 code. |
| D-FINE | Apache 2.0 | A transformer detector in the RT-DETR line. |
| YOLOX | Apache 2.0 | From 2021 and still widely deployed. Its code has not changed since July 2024. |
| YOLOv7 and YOLOv9, MIT edition | MIT | The paper authors' own rewrite of both models, separate from their GPL-3.0 repositories. The MIT license sits on the code: confirm the weights you download come from this repository and not the GPL-3.0 ones. |
| AngelCV (YOLOv10) | Apache 2.0 | Our from-scratch YOLOv10 implementation, code and pre-trained weights. |
| LibreYOLO | MIT | A newer MIT library with an Ultralytics-style API over several detectors. The MIT license is on the code: check the license of each weights file, since it also loads YOLO-NAS. |
| Darknet (YOLOv1 to v4) | Apache 2.0 | A maintained fork of the original C framework. |
AngelCV is ours. We built it for Angel Protection, a US company whose weapon detection runs in schools and hospitals. The aim was a detector at the centre of the product with no licensing fees or restrictions, so we wrote the YOLOv10 architecture from the paper in PyTorch and released the library and its pre-trained models under Apache 2.0. It is now live on 1,000+ cameras at 97.3% detection accuracy. The weapon detection case study has the details, and the write-up of the edge architecture explains how it runs on site.
A license covers code and weights, not the ideas in a research paper, which is what makes a clean reimplementation possible. Patents are not covered by that: any patent grant in the original code's license does not reach code you wrote yourself, and writing your own code is no defence to a patent claim, so have counsel check before you reimplement a method for a product.
Rewriting a model is not the usual answer. For most products the cheaper move is to start on RF-DETR, D-FINE or YOLOX and never touch AGPL code. A reimplementation pays off when you need one specific architecture, at scale, for years.
Five ways teams get caught
Permissive weights loaded through an AGPL package
The Ultralytics package can load RT-DETR and SAM, whose original weights are Apache 2.0. Import them through the ultralytics package and your application now depends on AGPL-3.0 code. The license that matters is the one on the code you ship, so take permissive models from their authors' repositories.
Prototype on YOLO, plan to swap later
The demo works, the customer signs, and the swap never gets scheduled. Training scripts, export steps and label formats all grow around the first library. Choose the license before the first training run, when changing costs a day.
YOLO-NAS looks open and is not
The SuperGradients code is Apache 2.0, but the pre-trained YOLO-NAS weights come under a separate license that says "you may not use the Software for any commercial use, including in connection with any models used in a production environment" without an agreement with Deci.
The dataset has terms too
Most pre-trained detectors learned from COCO. Its terms of use put the annotations under Creative Commons Attribution 4.0, but the COCO Consortium does not own the images, which stay under Flickr's terms. Model licenses rarely mention this. If your legal team asks where the training data came from, you have to answer for the images behind the pre-trained weights as well as your own. Check three layers every time: the code, the weights and the data the weights were trained on.
A dependency you did not choose
Tracking libraries, labelling tools and example repositories often import Ultralytics for you. Run a license scan over the installed packages before release. One line in a requirements file is enough to bring the AGPL in.
How to choose
- Your product is open source: use any YOLO. Release under AGPL-3.0 if you build on Ultralytics.
- Closed product, team already fluent in Ultralytics, modest volume: get a quote for the Enterprise License and compare it with the engineering time a migration would take.
- Closed product, new build: start on an Apache 2.0 or MIT detector. Our view: label quality moves accuracy on your own data more than the choice between a current permissive model and a current YOLO.
- Hardware you sell in volume, or footage that cannot leave the site: avoid per-device and per-year fees in the core of the product. Permissive model, your own weights.
If you are weighing a build and want the model, the license and the hardware settled before you commit a budget, that is what our computer vision feasibility study is for. Teams adding detection to cameras they already own may also want our guide to what video analytics can do on existing CCTV.
Questions
Is YOLO paid or free?
Every YOLO model can be downloaded free. The Ultralytics versions are free under AGPL-3.0, which means free if your own code is published under the same license. A closed commercial product needs the paid Enterprise License or a different model.
What is the pricing for YOLO?
There is no public price for the Ultralytics Enterprise License. You request a quote and pay yearly. The $29 per seat Pro plan on the Ultralytics Platform is a training and deployment service, not a license to keep your code closed.
Is YOLOv8 free for commercial use?
Only under AGPL-3.0, which requires you to release the source of a product you distribute or host for others. YOLO11 and YOLO26 are in the same repository under the same terms.
Is YOLO open source?
Yes. AGPL-3.0 and GPL-3.0 are open-source licenses approved by the Open Source Initiative. Open source does not mean free of conditions: these two require anyone who distributes the software to share their source in return.
What is the difference between GPL-3.0 and AGPL-3.0?
One clause. Both require source code when you distribute the software. AGPL-3.0 adds section 13, which extends that duty to people who use a modified version over a network, so a hosted service is covered too.
Which YOLO has an MIT or Apache license?
YOLOX and PP-YOLOE (Apache 2.0), the authors' MIT edition of YOLOv7 and YOLOv9, our AngelCV implementation of YOLOv10 (Apache 2.0), and the original Darknet releases of YOLOv1 to v4, which are public domain.
Can Ultralytics tell if I use YOLO without a license?
Assume it will come out. Job adverts and conference talks name the stack, and customers' procurement teams, investors and acquirers ask for an inventory of the open-source software in a product. Hoping nobody looks is a poor plan for a product you intend to sell.
Sources
- The LICENSE file of each repository linked in the two tables, read on 27 November 2026.
- GNU Affero General Public License version 3, section 13, and the Free Software Foundation's GPL FAQ.
- Ultralytics licensing and Ultralytics pricing.
- Roboflow's Ultralytics licensing page.
- YOLO-NAS license and COCO terms of use.