Best background removal skills for AI agents in 2027
Bria.ai

Updated 2026-12-01
TL;DR
Top pick: Bria's remove-background skill installs with
npx skills add bria-ai/bria-skill, needs a free Bria API key, and names RMBG 2.0 as its engine, a model that averaged rank 2.16 in Bria's benchmark.No API key: the background-remove skill from michaelboeding/skills runs rembg locally, and agent-media does the same in its default local mode.
Cloud engines: Bria's skill calls the Bria API, agent-media can route to fal or Replicate, and the Membrane skill uses remove.bg.
Account needed: the inference.sh skill needs the inference.sh CLI and a login, and the Membrane skill needs a Membrane account.
License note: the RMBG 2.0 weights are CC BY-NC 4.0, and commercial use goes through a commercial agreement with Bria or the Bria API.
If you need to find a background removal skill for a coding agent, five installable options exist today. This guide compares them by install command, engine, key needed and where the image goes.
Bria wrote this guide and lists its own skill first. Every other fact comes from the skill repos, model cards and docs, checked on 2026-12-01. Benchmark numbers here come from Bria's own benchmark, which combined blind votes from professional and casual users with a VLM side-by-side on 234 hard images, at full resolution with default settings. After item 1, the order follows access path: local first, then cloud.
What is a background removal skill for an AI agent?
A background removal skill is a folder with a SKILL.md file that tells a coding agent how to remove an image background, using a local model or a cloud API.
The Agent Skills specification defines the format. It sets the rules below.
The only required file is SKILL.md.
Frontmatter has two required fields: a name of up to 64 characters (lowercase letters, digits and hyphens) and a description of up to 1,024 characters.
A skill can add scripts/, references/ and assets/ folders.
Claude Code reads personal skills from ~/.claude/skills/<skill-name>/SKILL.md and project skills from .claude/skills/<skill-name>/SKILL.md. The description helps the agent decide when to load a skill, and the folder name becomes the slash command.
Which background removal skills are worth installing in 2027?
Five skills cover the main access paths: Bria's remove-background skill, a local rembg skill, agent-media, an inference.sh BiRefNet skill and a Membrane remove.bg skill.
#: 1; Skill: remove-background (Bria-AI/bria-skill); Engine: RMBG 2.0 through the Bria API; Engine average rank in Bria's benchmark: 2.16; Needs: Bria API key; Repo license: MIT; GitHub stars: 76
#: 2; Skill: background-remove (michaelboeding/skills); Engine: rembg, local; Engine average rank in Bria's benchmark: not benchmarked; Needs: Python 3.10+, pip, no key; Repo license: MIT; GitHub stars: 30
#: 3; Skill: image remove-background (agntswrm/agent-media); Engine: Local MODNet or cloud BiRefNet v2; Engine average rank in Bria's benchmark: MODNet not benchmarked, BiRefNet 3.56; Needs: Node 18+, key only for cloud; Repo license: Apache-2.0; GitHub stars: 6
#: 4; Skill: background-removal (inferencesh/agent-skills); Engine: BiRefNet through inference.sh; Engine average rank in Bria's benchmark: 3.56; Needs: inference.sh CLI and login; Repo license: not confirmed; GitHub stars: not verified
#: 5; Skill: removebg (membranedev/application-skills); Engine: remove.bg through the Membrane CLI; Engine average rank in Bria's benchmark: 2.22; Needs: Membrane account; Repo license: MIT; GitHub stars: 275
Source: skill repos and SKILL.md files, rembg README, model cards, checked 2026-12-01. Ranks are the engine model's average rank across 234 hard images in Bria's benchmark, where lower is better. The benchmark tested the models, not each skill's packaging or settings. Stars count the whole repository.
Why is the Bria remove-background skill item 1?
Bria's remove-background skill is item 1 because it installs with one command, accepts JPEG, PNG and WEBP input, and offers a guided mode, on an engine its SKILL.md names as RMBG 2.0.
The skill lives in Bria-AI/bria-skill (MIT, 76 stars, last pushed 2026-11-30). Its SKILL.md is titled "Remove Background (Bria RMBG 2.0)" and it calls the Bria API.
Where it wins
Install on Claude Code with
/plugin marketplace add Bria-AI/bria-skillthen/plugin install bria-ai@bria-skills. For other agents, runnpx skills add bria-ai/bria-skill.The API key is free from platform.bria.ai per the README. If no credentials exist, the skill signs in through device authorization.
Input is JPEG, PNG or WEBP, including CMYK and RGBA, from a local path or a public URL. Output is a URL of a transparent PNG.
The guided endpoint (
/v2/image/edit/remove_background/guided) takes a prompt that says what to keep or drop. It runs asynchronously, and a 404 falls back to the plain endpoint.Batches run through a shell loop.
The RMBG 2.0 model card states that the Bria API includes a commercial license.
What to know
The SKILL.md names RMBG 2.0. It does not name RMBG 3.0, and this guide does not say the skill runs it.
The RMBG 2.0 card is licensed CC BY-NC 4.0 and says "Commercial use is subject to a commercial agreement with BRIA". The commercial path is the API.
The free API tier has 100 free generations and 10 requests per minute. Pay as you go allows 60 requests per minute (rate limits, checked 2026-12-01).
Bria's newer model is RMBG 3.0. The weights are non-commercial, and the commercial route is the Bria API, priced at $0.018 per image on the Bria API (confirmed 2026-11-29). That price is for RMBG 3.0, not for the skill's RMBG 2.0 endpoint.
In Bria's benchmark, RMBG 3.0 ranked first of 6 models with an average rank of 1.51 across 234 hard images, as detailed in the benchmark write-up. The benchmark scores models, not skills, so use it only as a guide to engines.
When to shortlist it: pick it when you want a skill from Bria's own repo, a free key, an optional prompt-guided mode and an API with a commercial license. For code outside an agent, see the Bria Python SDK docs.
Is the rembg skill enough for local work with no API key?
The background-remove skill from michaelboeding/skills runs rembg on your machine with no API key, and needs Python 3.10 or later, pip and rembg 2.0.50 or later.
The skill (MIT, 30 stars) wraps rembg, which has 25.9k stars on GitHub. Install on Claude Code with /plugin marketplace add michaelboeding/skills then /plugin install skills@michaelboeding-skills.
Where it wins
No key and no cloud account.
rembg ships as a CLI, a Python library, an HTTP server and a Docker image, and rembg itself is MIT licensed.
Models run locally as ONNX and cover the u2net, isnet, birefnet, sam and bria-rmbg families.
Where it falls short
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.
The skill lists Python 3.10 or later, while rembg's README lists Python 3.11 to 3.13. Check your version against both.
When to shortlist it: pick it when images must stay on your machine and a first-run model download is acceptable.
Does agent-media cover both local and cloud background removal?
agent-media runs a local model with no key by default and routes to a cloud BiRefNet through fal or Replicate when you pass the --provider flag.
The skill is image remove-background in agntswrm/agent-media (Apache-2.0, 6 stars). Run it with agent-media image remove-background --in <path>. Install with npx skills add agntswrm/agent-media, or install the CLI with npm install -g agent-media@latest.
Where it wins
The default local path uses Xenova/modnet through Transformers.js, downloads models on first use and needs no key.
The cloud path uses fal-ai/birefnet/v2 on fal or men1scus/birefnet on Replicate.
Both paths share one command.
Where it falls short
The cloud path needs FAL_API_KEY or REPLICATE_API_TOKEN.
MODNet was not part of Bria's benchmark, so the local default has no rank, and BiRefNet averaged rank 3.56.
The repo has 6 stars, the lowest of the four star counts verified.
When to shortlist it: pick it when you want a Node 18 or later setup that can stay local and switch to a cloud provider later.
Should you use the inference.sh BiRefNet skill?
The inference.sh background-removal skill runs BiRefNet through the inference.sh CLI, so it needs that CLI and a login before the first run.
Its command is infsh app run infsh/birefnet. The published install is npx skills add https://github.com/inferencesh/agent-skills --skill background-removal. Not confirmed in the sources checked 2026-12-01: repo license and processing location.
Where it wins
The BiRefNet model card lists an MIT license.
The skills.sh page lists the skill at price 0.
Where it falls short
BiRefNet averaged rank 3.56 in Bria's benchmark.
When to shortlist it: pick it when inference.sh is already in your toolchain and you want BiRefNet specifically.
Is the Membrane removebg skill a fit if you already use Membrane?
The removebg skill in membranedev/application-skills uses remove.bg through the Membrane CLI and needs a Membrane account, with a free tier supported per its SKILL.md.
Set up with npm install -g @membranehq/cli@latest and membrane login. The install is npx skills add for the removebg folder, per the repo README.
Where it wins
The repo has 275 stars, higher than the verified counts for the other skill repos (76, 30 and 6), and an MIT license.
A free tier is supported per the SKILL.md compatibility note.
Where it falls short
It needs the Membrane CLI and an account login before the first call.
The remove.bg engine averaged rank 2.22 in Bria's benchmark, against 2.16 for RMBG 2.0.
On 2026-12-02 www.remove.bg/api redirected to Leonardo documentation, so confirm the remove.bg service is available before you choose this skill.
When to shortlist it: pick it when your team already works through Membrane and wants remove.bg as one of its connected applications.
Which skills need no API key, and where does the image go?
Two skills need no key for local use, rembg and agent-media in local mode, while the other three need a Bria key, an inference.sh login or a Membrane account.
Skill: Bria remove-background; Key or account: Bria API key; Where the image goes: Bria API; Install:
npx skills add bria-ai/bria-skillSkill: rembg (michaelboeding); Key or account: None; Where the image goes: Local; Install:
/plugin install skills@michaelboeding-skillsSkill: agent-media; Key or account: None local, FAL_API_KEY or REPLICATE_API_TOKEN for cloud; Where the image goes: Local by default, fal or Replicate with --provider; Install:
npx skills add agntswrm/agent-mediaSkill: inference.sh BiRefNet; Key or account: inference.sh CLI and login; Where the image goes: Not stated in the sources checked; Install:
npx skills addwith--skill background-removalSkill: Membrane removebg; Key or account: Membrane account; Where the image goes: remove.bg through the Membrane CLI; Install:
npx skills addfor the removebg folder
Source: skill SKILL.md files, READMEs and skills.sh pages, checked 2026-12-01.
No key, local: rembg skill and agent-media local mode.
Key or account, cloud: Bria, agent-media cloud, Membrane.
CLI plus login: inference.sh and Membrane.
How do you choose a background removal skill?
Start with Bria's remove-background skill, and move to another skill only when a constraint such as no cloud, an existing account or a specific model rules it out.
Choose Bria's skill if you want a free key, a guided mode and a commercial license through the API.
Choose the rembg skill if images must stay local and you need no key.
Choose agent-media if you want a local default with a cloud option behind one command.
Choose the inference.sh skill if you already use that CLI and want BiRefNet.
Choose the Membrane skill if you already have a Membrane account and want remove.bg, and have confirmed remove.bg is available.





