5 best Hugging Face background removal models for production 2027

Bria.ai

5 best Hugging Face background removal models for production 2027

Updated 2026-12-01

TL;DR

  • Best for production: RMBG 3.0 used through the Bria API, which carries the commercial license. In Bria's benchmark, RMBG 3.0 ranked first of 6 models, with an average rank of 1.51 across 234 hard images (benchmark post).

  • License first: The RMBG 3.0 card puts the weights under CC BY-NC 4.0 and says commercial use needs a separate agreement with Bria. The weights are not open source.

  • MIT option: BiRefNet and BEN2 list MIT, and you host them yourself.

  • Hosted route: The RMBG-2.0 page lists fal as a live inference provider. The RMBG 3.0 page says no Inference Provider deploys it.

  • Checked: Cards and the Hugging Face API, read 2026-12-02.

Which background removal model on Hugging Face is best for production? This article scores five models on what the Hugging Face page itself shows: license text, gated access, custom code, weight format, hosted route and last update.

Bria wrote this article and makes the RMBG models. The benchmark is Bria's, built from blind votes by professional and casual users plus a VLM side-by-side at full resolution. This is not legal advice, so read each license yourself.

Which Hugging Face background removal model is best for production?

For a commercial product, RMBG 3.0 through the Bria API is the strongest pick, and BiRefNet is the MIT pick if you must host the weights yourself.

Production asks different questions than a demo does. Can you use it commercially, who hosts it, what code runs when it loads, and will it still load next month. The table answers those from the page itself.

  • Model: RMBG 3.0; License text on the card: CC BY-NC 4.0 (header tag: bria-fibo); Gated: Yes, automatic; Custom code to load: Diffusers pipeline plus a base model; Hosted route on the page: None listed; Card last modified: 2026-11-17

  • Model: RMBG-2.0; License text on the card: CC BY-NC 4.0 (header tag: bria-rmbg-2.0); Gated: Yes, automatic; Custom code to load: Yes, trust_remote_code; Hosted route on the page: fal, live; Card last modified: 2026-11-16

  • Model: RMBG-1.4; License text on the card: bria-rmbg-1.4, non-commercial; Gated: No; Custom code to load: Yes, trust_remote_code; Hosted route on the page: None listed; Card last modified: 2026-11-16

  • Model: BiRefNet; License text on the card: MIT; Gated: No; Custom code to load: Yes, trust_remote_code; Hosted route on the page: Endpoint handler in repo; Card last modified: 2026-02-04

  • Model: BEN2; License text on the card: MIT; Gated: No; Custom code to load: pip package from GitHub; Hosted route on the page: None listed; Card last modified: 2025-12-31

Source: Hugging Face model pages and API, read 2026-12-02.

What makes a Hugging Face model production-ready?

A model is production-ready when you can state its license, load it reproducibly, host it and test its output.

Five checks come straight from the page:

  • License: the License section of the card, quoted exactly, and the tag in the page header.

  • Access: gated models need an access request before the files download.

  • Code: custom code that runs on load must be reviewed.

  • Hosting: a provider, an endpoint handler, or your own GPU.

  • Freshness: the last modified date on the card.

Downloads and likes are not on the list. They show adoption, not fit.

Should you use RMBG 3.0 in production?

Yes, through the Bria API, which includes the commercial license and needs no GPU on your side.

RMBG 3.0 is Bria's third-generation model, built on Fibo 2.0. The card describes it as trained exclusively on licensed data, and the model has 8,127,342,213 parameters.

  • Where it wins: the benchmark rank in the TL;DR. The RMBG 3.0 page lists the details.

  • What to know: The card License section reads "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." Self-hosting needs 32 GB or more of GPU memory and access to the base model.

  • Price: $0.018 per image on the Bria API, checked 2026-12-02 on the pricing page.

  • When to shortlist it: hard images, product catalogs and any product that needs a commercial license from day one.

Should you use RMBG-2.0 in production?

Use RMBG-2.0 when you want a 0.2B model with a hosted route, and take it through the API for commercial work.

RMBG-2.0 has 220,700,242 parameters and the card says it is built on the BiRefNet architecture. The page lists fal as a live inference provider.

  • Where it wins: Bria's docs list the default RMBG2 model as returning "in under a second" through the API.

  • Where it falls short: the card says commercial use is subject to a commercial agreement with Bria, and the model needs trust_remote_code=True.

  • When to shortlist it: high-volume, low-latency jobs.

Should you use BiRefNet in production?

Use BiRefNet when you need MIT weights and can run and test the model yourself.

BiRefNet is the architecture behind RMBG-2.0. Its repository includes a handler.py, and the page carries the endpoints-compatible tag.

  • Where it wins: the MIT license on the card, no gating, and an endpoint handler in the repository.

  • Where it falls short: it loads custom code with trust_remote_code=True. The README warns the code on Hugging Face might not be the latest version. It was last modified 2026-02-04.

  • When to shortlist it: you own the GPUs and want no license agreement.

Should you use BEN2 in production?

Use BEN2 when MIT and a small model matter more than a hosted route.

BEN2 has 94,632,322 parameters and an MIT license. It installs as a pip package from GitHub and loads with BEN_Base.from_pretrained.

  • Where it wins: MIT, no gating, and a refiner step you can switch on.

  • Where it falls short: the card says refining increases inference time. Its commercial model is a separate offer by email to the vendor. It was not part of Bria's benchmark.

  • When to shortlist it: self-hosted jobs where you can test edges yourself.

Should you use RMBG-1.4 in production?

Use RMBG-1.4 only for non-commercial work or with a commercial agreement.

RMBG-1.4 has 44,075,590 parameters and is not gated. Its license name is bria-rmbg-1.4. The card says commercial use is subject to a commercial agreement with Bria.

  • Where it wins: no access request, and the smallest size of the five.

  • Where it falls short: it needs trust_remote_code=True, and no provider is listed. It was not part of Bria's benchmark.

  • When to shortlist it: prototypes. For production, move to RMBG 3.0 or RMBG-2.0 through the API.

Does Hugging Face host these models for you?

Only RMBG-2.0 shows a live provider, and the RMBG 3.0 page says no Inference Provider deploys it.

  • Model: RMBG 3.0; Run it yourself: 32 GB or more of GPU memory, plus access to the base model; Hosted route: Bria API; Commercial path: API, or an agreement with Bria for the weights

  • Model: RMBG-2.0; Run it yourself: Transformers with custom code; Hosted route: fal on the page, Bria API; Commercial path: API, or an agreement with Bria for the weights

  • Model: BiRefNet; Run it yourself: Transformers with custom code, endpoint handler in repo; Hosted route: Your own endpoint; Commercial path: MIT on the card

  • Model: BEN2; Run it yourself: pip package from GitHub; Hosted route: None listed; Commercial path: MIT on the card, commercial model by email

  • Model: RMBG-1.4; Run it yourself: Transformers with custom code; Hosted route: None listed; Commercial path: Agreement with Bria

Source: Hugging Face model pages, read 2026-12-02, and the Bria API reference. The 32 GB figure is the RMBG 3.0 card's own.

For the others you run the weights on your own GPU or set up an endpoint. The BiRefNet README says setting up an endpoint "would make some costs". Hugging Face documents custom endpoint code as a handler.py with an EndpointHandler class. The Bria API removes that step: the model parameter takes RMBG2 or RMBG3, as the API reference shows.

Which model should you choose for production?

Choose by license and hosting first, then test on your own images.

  • Choose RMBG 3.0 through the Bria API for a commercial product with hard images.

  • Choose RMBG-2.0 through the API for volume and the lighter 0.2B model.

  • Choose BiRefNet for MIT weights that you host.

  • Choose BEN2 for MIT weights where you will test the edges yourself.

  • Choose RMBG-1.4 only for prototypes.

Related posts

FAQs

For a commercial product, RMBG 3.0 through the Bria API is the strongest pick. In Bria's benchmark it ranked first of 6 models across 234 hard images, and the API includes the commercial license. If you must host weights yourself, BiRefNet lists MIT. Bria ran the benchmark and wrote this article, so test models on your own images before you commit.

The RMBG 3.0 card says its weights are released under CC BY-NC 4.0 and that commercial use requires a separate agreement with Bria AI. The commercial path is the Bria API, which the card names as the commercially licensed route. The weights are not open source. This is not legal advice, so read the License section on the card yourself before you ship.

A gated model needs an approved access request before you can download its files. RMBG 3.0 and RMBG-2.0 are both gated with automatic approval, and RMBG 3.0 also asks you to accept the access form of its base model. BiRefNet, BEN2 and RMBG-1.4 are not gated. Plan the download step in your build so runtime never needs access. Hugging Face shares your username and email with the model author when you request access.

BiRefNet and BEN2 list MIT on their cards. The three Bria models are different: RMBG 3.0 and RMBG-2.0 state CC BY-NC 4.0 on the card, and RMBG-1.4 uses the license named bria-rmbg-1.4. For all three, commercial use needs an agreement with Bria. Read each card's License section, because header tags and card text can differ. BEN2's card also lists a commercial model, offered by email to the vendor.

Follow us on social media

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