License notices for a self-hosted background remover (2027)

Bria.ai

License notices for a self-hosted background remover (2027)

Updated 2026-12-01

Disclosure: Bria wrote this guide and makes RMBG 3.0 and RMBG 2.0. License sentences are quoted from the texts named in each source line, read 2026-12-02. This is not legal advice, so have counsel confirm what your product needs.

TL;DR

  • Answer: When you distribute a self-hosted background remover under MIT or Apache-2.0 terms, the texts ask you to carry the copyright and permission notice (MIT) or a copy of the license plus retained notices (Apache-2.0). Commercial use of RMBG 3.0 without shipping weights runs through the Bria API at $0.018 per image (checked 2026-12-02).

  • MIT sentence: "The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software."

  • Apache-2.0 sentence: "You must give any other recipients of the Work or Derivative Works a copy of this License."

  • Bria weights: RMBG 3.0 and RMBG 2.0 weights are CC BY-NC 4.0, and a notice does not change that. Commercial use needs an agreement with Bria, or the Bria API at $0.018 per image (checked 2026-12-02).

  • Quality context: In Bria's benchmark, RMBG 3.0 ranked first of 6 models, average rank 1.51 on 234 hard images.

Which background removal model can you self-host and use commercially? Once you pick one, you still have to ship it correctly. This guide covers the notices that go with the files, using the license texts of the models people self-host.

What does the MIT license ask you to include?

The MIT text asks that the copyright notice and permission notice be included in all copies or substantial portions of the software.

The rembg LICENSE is the MIT License with the line "Copyright (c) 2020 Daniel Gatis". It grants permission "to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software". The BiRefNet card header says "License: mit". The LICENSE file in the BiRefNet GitHub repository (github.com/ZhengPeng7/BiRefNet) is the same text with "Copyright (c) 2024 ZhengPeng".

  • What to carry: The copyright line and the permission paragraph, unchanged.

  • Warranty line: The text states the software is provided "AS IS", and that sentence travels with the notice.

What does Apache-2.0 ask you to include?

Section 4 of Apache-2.0 lists four conditions for redistribution, from giving recipients a copy of the license to carrying NOTICE contents.

The Apache License 2.0 text reads:

  • (a) "You must give any other recipients of the Work or Derivative Works a copy of this License"

  • (b) "You must cause any modified files to carry prominent notices stating that You changed the files"

  • (c) "You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work"

  • (d) If the Work includes a "NOTICE" text file, derivative works "must include a readable copy of the attribution notices contained within such NOTICE file"

The U-2-Net repository ships an Apache License 2.0 LICENSE file.

Does U-2-Net have a NOTICE file?

No NOTICE file was found at the U-2-Net repository root, so condition (d) has nothing to copy there.

On 2026-12-02, requests for NOTICE and NOTICE.txt on the default branch of the repository returned 404. Recheck at the commit you ship, because a file added later changes the answer. Check each Apache-2.0 repository you use in the same way.

  • Source: RMBG 3.0 weights; Text type: CC BY-NC 4.0; Copy of license: Commercial use requires a separate agreement with Bria AI (card); Copyright line: Not checked; NOTICE file: Not checked

  • Source: RMBG 2.0 weights; Text type: CC BY-NC 4.0; Copy of license: Commercial use is subject to a commercial agreement with BRIA (card); Copyright line: Not checked; NOTICE file: Not checked

  • Source: rembg; Text type: MIT; Copy of license: Yes, in LICENSE.txt; Copyright line: Copyright (c) 2020 Daniel Gatis; NOTICE file: Not applicable

  • Source: BiRefNet; Text type: MIT; Copy of license: Yes, in LICENSE; Copyright line: Copyright (c) 2024 ZhengPeng; NOTICE file: Not applicable

  • Source: U-2-Net; Text type: Apache-2.0; Copy of license: Yes, in LICENSE; Copyright line: "Copyright [yyyy] [name of copyright owner]"; NOTICE file: None found

Source: LICENSE files and repository roots, read 2026-12-02.

What does CC BY-NC 4.0 say, and can a notice fix it?

The RMBG 3.0 and RMBG 2.0 weights are CC BY-NC 4.0, and the cards say commercial use needs an agreement with Bria, which a notice file cannot replace.

The RMBG 3.0 card says: "Commercial use requires a separate agreement with Bria AI." The RMBG 2.0 card says: "Commercial use is subject to a commercial agreement with BRIA."

  • Commercial path: An agreement with Bria, or the commercially licensed Bria API.

  • Price: Bria pricing lists "Background Removal $0.018 / Image ($0.025 with prompt)" (checked 2026-12-02).

  • Whether your use counts: Ask counsel, because this guide gives no legal conclusion.

Do license notices cover the model weights too?

Not by default: rembg's default model, bria-rmbg (RMBG 2.0), is CC BY-NC 4.0, so its code license does not settle the weights license.

Shipping rembg with its MIT notice does not settle the license of the ONNX file it downloads. 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.

  • Code: Carry its notice.

  • Weights: Carry the weights license from the source you downloaded them from.

  • Dataset terms: Read them if the source names them.

Where should the notices go in a container or app?

Put one third-party notices file in the image or app, and keep each full license text in the same folder.

The licenses ask for notices to travel with copies. They do not dictate a folder, so the layout below is a practice, not a requirement.

  • Docker image: A /licenses folder with one file per component, copied in the Dockerfile.

  • Desktop or mobile app: An "open source notices" screen or file in the bundle.

  • Hosted server: If you distribute no copies, ask counsel what the texts ask of you.

What does a third-party notices file look like?

It lists each component, its license name, its copyright line and the source URL you read.

  • Component: rembg; License: MIT; Copyright line: Copyright (c) 2020 Daniel Gatis; Source: github.com/danielgatis/rembg

  • Component: BiRefNet; License: MIT (card header and repository LICENSE); Copyright line: Copyright (c) 2024 ZhengPeng; Source: LICENSE in github.com/ZhengPeng7/BiRefNet

  • Component: U-2-Net; License: Apache-2.0; Copyright line: Copy LICENSE; Source: github.com/xuebinqin/U-2-Net

Add one row per file you ship, and the date you read each source. Paste the full MIT or Apache text under the table, because both licenses ask for the text, not only the name.

What should you record for each model you ship?

Record the license name, the exact quoted sentence, the URL and the date for every code and weights file.

  • Code license: Name and file path.

  • Weights license: Quote from the card or LICENSE.

  • Commit or version: The state you shipped.

  • Review date: When you last checked it.

Which approach should you choose?

Choose by the files you ship and who holds the license.

  • Choose the MIT or Apache-2.0 models if you can carry the notices above in every copy you distribute.

  • Choose the Bria API if you want RMBG 3.0, the top-ranked model in Bria's benchmark, with the commercial license included and no weights to ship.

  • Choose an agreement with Bria if you need the RMBG weights in your own infrastructure.

  • Ask counsel if you sell the product, because notices are only one part of the terms.

For the licenses model by model, see 6 self-hostable background removal models.

Related posts

FAQs

The MIT text says: "The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software." rembg's LICENSE carries the line Copyright (c) 2020 Daniel Gatis, and the BiRefNet repository LICENSE carries Copyright (c) 2024 ZhengPeng. Keep the notice and permission paragraph unchanged in every copy you distribute. This is a quote, not legal advice.

Section 4 of the Apache License 2.0 lists four conditions: give recipients a copy of the license, mark modified files with prominent notices, retain copyright, patent, trademark and attribution notices in source form, and include a readable copy of NOTICE file attributions if the work has a NOTICE file. U-2-Net ships this license. Quote the text, then ask counsel what your product needs.

On 2026-12-02, requests for NOTICE and NOTICE.txt on the default branch of the U-2-Net repository returned 404, so no NOTICE file was found. Apache-2.0 condition (d) applies only if the work includes a NOTICE file. Recheck the repository at the commit you ship, since a later commit could add one, and repeat the check for every Apache-2.0 component you use.

No notice changes the license terms. The RMBG 3.0 card says commercial use requires a separate agreement with Bria AI, and the RMBG 2.0 card says commercial use is subject to a commercial agreement with BRIA. The commercially licensed alternative is the Bria API, listed at $0.018 per image for background removal, checked 2026-12-02. Ask counsel whether your use counts as commercial.

Follow us on social media

discord
Social media logo
Social media card
Social media logo
Social media card
Social media logo