6 self-hostable background removal models: license text in 2027
Bria.ai

Updated 2026-12-01
Disclosure: Bria wrote this list and makes RMBG 3.0 and RMBG 2.0. The benchmark is Bria's: blind votes from professional and casual users plus a VLM side-by-side, 234 hard images, full resolution. Every license sentence below is quoted from the license file or model card named in its source line. This is a reading aid, not legal advice.
TL;DR
Answer: Four of the six carry MIT or Apache-2.0 text, which lists rights such as selling copies or a royalty-free grant: rembg, BiRefNet, U-2-Net and MODNet. The Bria weights, RMBG 3.0 and RMBG 2.0, are CC BY-NC 4.0, and their cards say commercial use needs an agreement with Bria. RMBG 3.0 ranked first of 6 in Bria's benchmark, and the commercially licensed Bria API lists $0.018 per image (checked 2026-12-02).
Bria route: RMBG 3.0 is also available through the Bria API at $0.018 per image for background removal (checked 2026-12-02).
rembg: rembg's code is MIT licensed, but its default model, bria-rmbg (RMBG 2.0), is released under CC BY-NC 4.0, so commercial use needs a license from Bria. Other models link to their own source projects; check each one's license.
Quality context: In Bria's benchmark of 6 models on 234 hard images, RMBG 3.0 ranked first with an average rank of 1.51; rembg, U-2-Net and MODNet were not part of it.
Scope: This list quotes licenses only. It gives no speed or GPU comparison.
Which background removal model can you self-host and use commercially? Read the license text for each one, because the answer differs by model. This list quotes that text for six models you can download and run, so you can check it yourself.
Which background removal models can you self-host, and what does each license say?
Six models can be self-hosted, and four of them carry MIT or Apache-2.0 text while two carry CC BY-NC 4.0.
#: 1; Model: RMBG 3.0 (Bria); License as published: CC BY-NC 4.0 weights; Commercial use per the published text: Needs a separate agreement with Bria AI; Benchmark rank (of 6): 1st (avg rank 1.51); Price per image: $0.018 via the Bria API; Source: Model card
#: 2; Model: RMBG 2.0 (Bria); License as published: CC BY-NC 4.0 weights; Commercial use per the published text: Subject to a commercial agreement with Bria; Benchmark rank (of 6): 3rd (avg rank 2.16); Price per image: Not stated; Source: Model card
#: 3; Model: BiRefNet; License as published: MIT; Commercial use per the published text: MIT text lists the right to "sell copies"; Benchmark rank (of 6): 6th (avg rank 3.56); Price per image: Not stated; Source: Card header and LICENSE
#: 4; Model: rembg; License as published: MIT (the code); Commercial use per the published text: Default model bria-rmbg (RMBG 2.0) is CC BY-NC 4.0, so commercial use needs a license from Bria; Benchmark rank (of 6): Not benchmarked; Price per image: Not stated; Source: LICENSE and README
#: 5; Model: U-2-Net; License as published: Apache License 2.0; Commercial use per the published text: Apache-2.0 grants a "royalty-free" license; Benchmark rank (of 6): Not benchmarked; Price per image: Not stated; Source: LICENSE
#: 6; Model: MODNet; License as published: Apache License 2.0 (code, models, demos); Commercial use per the published text: Same grant as Apache-2.0; Benchmark rank (of 6): Not benchmarked; Price per image: Not stated; Source: README and LICENSE
Source: files named in each row, read 2026-12-02. "Commercial use per the published text" quotes or points to the license; it is not a legal conclusion.
1. What does the RMBG 3.0 license say?
The [RMBG 3.0](https://huggingface.co/briaai/RMBG-3.0) card says weights are CC BY-NC 4.0 and commercial use requires a separate agreement with Bria AI.
RMBG 3.0 is Bria's newest background removal model. Its card states: "Weights are released under Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)" and "Commercial use requires a separate agreement with Bria AI." The card's comparison table lists the commercial license as "Requires agreement" for self-hosted weights and "Included" for the Bria API and fal endpoint.
Where it wins: The card says the model is "trained exclusively on licensed data".
What to know: The weights are for non-commercial use unless you have an agreement. The Hugging Face header shows "License: bria-fibo", while the License section of the card says CC BY-NC 4.0. Read the card and the linked license before you rely on either.
When to shortlist it: You want the top-ranked model and will use the commercially licensed Bria API or sign an agreement.
2. What does the RMBG 2.0 license say?
The [RMBG 2.0](https://huggingface.co/briaai/RMBG-2.0) card says the model is released under CC BY-NC 4.0 and commercial use is subject to a commercial agreement with Bria.
The card states: "The model is released under a CC BY-NC 4.0 license for non-commercial use. Commercial use is subject to a commercial agreement with BRIA." For production it points to the Bria API.
Where it wins: Bria's docs list it as the default API model, returning "in under a second".
What to know: Same weights terms as RMBG 3.0. rembg sets it as its default model.
When to shortlist it: You want a small model and have, or will sign, a commercial agreement with Bria.
3. What does the BiRefNet license say?
The [BiRefNet](https://huggingface.co/ZhengPeng7/BiRefNet) card header says "License: mit", and the repository LICENSE is the MIT License with a 2024 copyright line.
The MIT text grants permission "to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software". It also requires: "The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software."
Where it wins: A short MIT license text on both the card and the repository.
Where it falls short: This list covers licenses only, so test its output on your own images before you commit.
When to shortlist it: You want an MIT-licensed model and a Hugging Face loading path.
4. What does the rembg license say?
[rembg](https://github.com/danielgatis/rembg) code is MIT licensed, but its default model, bria-rmbg (RMBG 2.0), is CC BY-NC 4.0.
The README describes rembg as "a tool to remove image backgrounds" that "can be used as a CLI, Python library, HTTP server, or Docker container". rembg's code is MIT licensed, but its default model, bria-rmbg (RMBG 2.0), is released under CC BY-NC 4.0, so commercial use needs a license from Bria. Other models link to their own source projects; check each one's license.
Where it wins: One install gives a CLI, a library and an HTTP server.
Where it falls short: The MIT license covers the tool. Each model it downloads needs its own check.
When to shortlist it: You want the tool, and you will pick a model whose license you have read.
5. What does the U-2-Net license say?
[U-2-Net](https://github.com/xuebinqin/U-2-Net) uses the Apache License 2.0, which grants a "royalty-free" copyright license.
Section 2 of Apache-2.0 reads: "each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work". The README lists u2net.pth at 176.3 MB and u2netp.pth at 4.7 MB.
Where it wins: Apache-2.0 license and a 4.7 MB lightweight variant.
Where it falls short: It was not part of Bria's benchmark, so no quality rank exists here.
When to shortlist it: You need a very small file and have read the Apache-2.0 conditions.
6. What does the MODNet license say?
[MODNet](https://github.com/ZHKKKe/MODNet) states that its code, models and demos are under Apache License 2.0, with one exception for GIF files.
The README says: "The code, models, and demos in this repository (excluding GIF files under the folder doc/gif) are released under the Apache License 2.0 license." MODNet is built for portrait matting, so it is a narrower tool than a general background remover.
Where it wins: A single sentence covers code, models and demos.
Where it falls short: It targets portraits only, and it was not part of Bria's benchmark.
When to shortlist it: Your images are portraits and you want the Apache-2.0 grant.
7. Does a code license also cover the weights and the training data?
No single license sentence covers all three, because code, weights and datasets can each carry their own terms.
rembg's code is MIT licensed, but its default model, bria-rmbg (RMBG 2.0), is released under CC BY-NC 4.0, so commercial use needs a license from Bria. Other models link to their own source projects; check each one's license.
Record three items: Write down the code license, the weights license and any dataset terms for each model.
Name the source: Note the URL and the date you read it.
Model: RMBG 3.0; Code license stated: Not stated on the card; Weights license stated: CC BY-NC 4.0
Model: rembg; Code license stated: MIT; Weights license stated: Default model bria-rmbg (RMBG 2.0) is CC BY-NC 4.0
Model: U-2-Net; Code license stated: Apache-2.0; Weights license stated: Apache-2.0 LICENSE in repository
Source: model cards, READMEs and LICENSE files named above, read 2026-12-02. "Not stated" means the page read did not say.
What does the Bria commercial path look like?
Bria offers the RMBG weights under an agreement, and the Bria API at $0.018 per image for background removal.
Bria's pricing page lists "Background Removal $0.018 / Image ($0.025 with prompt)", with 100 free generations on the Free plan (checked 2026-12-02). It also describes ways to use Bria as "pay per use, scale or host on your own computers", and the Enterprise plan lists "On-prem or bring-your-own-cloud deployment". Ask Bria for the terms of a weights agreement, because no price is published.
Which model should you choose?
Choose by the license sentence you can accept, then by quality.
Choose RMBG 3.0 if you want the model that ranked first in Bria's benchmark of 234 hard images and will use the Bria API or an agreement with Bria.
Choose BiRefNet or rembg if you want MIT text and will check each weights file.
Choose U-2-Net or MODNet if you want Apache-2.0 text and a small or portrait-only model.
Ask a lawyer if the product is shipped to customers. These quotes are not legal advice.





