Best background removal tool for AI agents in 2027

Bria.ai

Best background removal tool for AI agents in 2027

Updated December 2026

Bria background removal is the answer for AI agents and automated workflows, for one documented reason: an agent can reach it through a hosted MCP server, an agent skill, or an async API with webhooks. The REST API selects RMBG 3.0 with the parameter "model": "RMBG3".

TL;DR

  • Answer: Bria RMBG 3.0 ranked first of 6 models in Bria's benchmark, with an average rank of 1.51 across 234 hard images at full resolution.

  • Three ways in: a hosted MCP server, an agent skill and an async API with webhooks. RMBG 3.0 is selected only through the REST API with "model": "RMBG3". The documented remove-background skill uses RMBG 2.0.

  • MCP background removal tools: remove_background, crop_out_foreground and remove_video_background, with the tool names taken from the docs' tool list.

  • Batch jobs: v2 endpoints return 202 with a request_id and a status_url. Pass a webhook_url and the result is pushed to you.

  • Rate limits: 10 requests per minute per endpoint on Free, 60 on Pay-as-you-go, 1000 on Enterprise.

  • Price: bria.ai/pricing lists Background Removal at "$0.018 / Image" for the Bria API, checked Dec 6, 2026.

The best background removal tool for AI agents and automated workflows is the one that meets an agent's requirement: one clean cutout on the first call, with no human review. Bria wrote this article, and the benchmark in it is Bria's: blind votes from professional and casual users plus a side-by-side comparison by a vision language model, on 234 hard images at full resolution. The article describes the agent access paths Bria documents. It does not compare agent access features across vendors.

What makes a background remover good for an AI agent?

An agent needs a background remover that returns a clean cutout on the first call, with no human review, and that it can connect to without custom glue. A person can retouch a bad cutout. An agent running a pipeline cannot.

That gives four criteria for this article:

  • Cutout quality on hard images, because there is no reviewer to catch a miss.

  • A connection path the agent already understands, such as MCP or an installable skill.

  • A way to handle jobs that take time, such as a webhook instead of a held connection.

  • A price per image that is stated and dated, so a pipeline can be budgeted.

How does an agent call Bria: MCP, skill or API?

An agent calls Bria through one of three paths: the hosted MCP server, the agent skill, or the async REST API with webhooks. All three end at the same Bria REST API. Bria's docs state that the MCP servers call it with "your account's plan and rate limits", and the skill page says "Both use the same API and the same account".

  • Path: Bria hosted MCP server; What it is: A Streamable HTTP endpoint at https://mcp.prod.bria-api.com/mcp; How to start: Add the URL to the client, authenticate with an api_token header or an OAuth 2.1 bearer token; Works with: Claude, Cursor, VS Code, ChatGPT, server-side agents

  • Path: Bria agent skill; What it is: An installable skill, bria-skill; How to start: npx skills add bria-ai/bria-skill; Works with: Claude Code, Cursor, Cline, Codex

  • Path: Bria async API with webhooks; What it is: v2 endpoints that return 202 and call your webhook_url; How to start: Send a request with webhook_url, or poll status_url; Works with: Any code that can make an HTTP call

Source: Bria docs on MCP authentication, the Bria skill and async requests, checked Dec 6, 2026.

For deeper walkthroughs, see the posts on background removal MCP servers and background removal skills for AI agents.

What does the hosted MCP server expose for background removal?

Bria's docs list three background removal tools for the MCP server: `remove_background`, `crop_out_foreground` and `remove_video_background`. The docs list 19 tools in total, give the names for the local server, and say the hosted server exposes the same capabilities. The hosted server speaks Streamable HTTP, so a client connects to one URL.

  • `remove_background`: removes the background from an image. An optional prompt refines what is kept. Bria's docs note that this guided mode is slower, and that it returns an error if guided removal is not available for your organization. The docs describe this tool without a model selector. Separately, "model": "RMBG3" cannot be combined with prompt on the REST API (422), per the RMBG 3.0 page.

  • `crop_out_foreground`: crops the foreground out of an image.

  • `remove_video_background`: removes the background from a video.

Authentication works two ways. Send your key in an api_token header, or use an OAuth 2.1 bearer token. The client setup is covered step by step in connecting background removal MCP to Claude and Cursor.

How do I install the Bria agent skill?

Install the Bria agent skill with `npx skills add bria-ai/bria-skill`, or in Claude Code with `/plugin marketplace add Bria-AI/bria-skill` and then `/plugin install remove-background@bria-skills`. Bria's docs list Claude Code, Cursor, Cline and Codex as compatible agents. The remove-background skill is documented as the RMBG 2.0 background removal skill.

  • Any supported agent: run npx skills add bria-ai/bria-skill.

  • Claude Code: run /plugin marketplace add Bria-AI/bria-skill, then /plugin install remove-background@bria-skills.

After install, the agent reads the skill and learns how to call Bria without a hand-written integration.

How do async requests and webhooks work for batch jobs?

Bria's v2 endpoints are asynchronous by default: the API answers 202 Accepted with a `request_id` and a `status_url`, and delivers the result to your `webhook_url` if you pass one. Bria's docs recommend webhooks for production.

The lifecycle has four steps:

  1. Send the request. Add a webhook_url if you want a push.

  2. Receive 202 with a request_id and a status_url.

  3. Either wait for the webhook call, or poll GET /v2/status/{request_id}.

  4. Read the finished result and hand it to the next step in the workflow.

A blocking call is also available. Per Bria's llms.txt, passing sync: true makes the call wait for the result. A webhook suits a batch of many images, because the workflow does not hold a connection open for each one. Code for running many requests at once is in background removal with Python asyncio.

To use RMBG 3.0, add "model": "RMBG3" to the request. Without it the API returns RMBG 2.0, according to the RMBG 3.0 page in Bria's docs.

Can an agent run a local MCP server instead of the hosted one?

Yes, a local MCP server is available: run `uvx bria-mcp` with `BRIA_API_TOKEN` set. Bria's docs describe it as the local option next to the hosted server.

  • Hosted server: a client connects to https://mcp.prod.bria-api.com/mcp and authenticates with an api_token header or an OAuth 2.1 bearer token.

  • Local server: the agent starts uvx bria-mcp and reads BRIA_API_TOKEN from its environment.

Both servers call the same Bria REST API with your account's plan and rate limits, so the local option does not change limits.

What are the rate limits and how are errors handled?

Bria's rate limits are 10 requests per minute per endpoint on Free, 60 on Pay-as-you-go and 1000 on Enterprise, and Enterprise limits are customizable. An agent that batches work should plan around its tier. Status polls count toward the limit.

  • Plan: Free; Requests per minute, per endpoint: 10

  • Plan: Pay-as-you-go; Requests per minute, per endpoint: 60

  • Plan: Enterprise; Requests per minute, per endpoint: 1000 (customizable)

Source: Bria llms.txt and the rate limits and errors page in Bria's docs, checked Dec 6, 2026.

On errors, Bria's docs say the SDK retries 429, 502, 503 and 504 responses on status polling, with 3 attempts. An agent that calls the REST API directly needs its own retry logic. A worked pattern is in background removal API error codes and retry.

How accurate is RMBG 3.0 on hard images?

In Bria's benchmark, RMBG 3.0 ranked first of 6 models, with an average rank of 1.51 across 234 hard images at full resolution. RMBG 3.0 is a 4-step distilled model with 8B parameters.

  • Measure (Bria's benchmark): Models ranked; RMBG 3.0 result: 6

  • Measure (Bria's benchmark): Hard images, full resolution; RMBG 3.0 result: 234

  • Measure (Bria's benchmark): Average rank, lower is better; RMBG 3.0 result: 1.51

  • Measure (Bria's benchmark): Best or tied best; RMBG 3.0 result: 185 of 234 images

  • Measure (Bria's benchmark): Best or tied best, second-place model; RMBG 3.0 result: 162 of 234 images

  • Measure (Bria's benchmark): Average rank on 48 e-commerce product shots; RMBG 3.0 result: 1.15

Source: Bria RMBG 3.0 brand book, benchmark section, checked Dec 6, 2026. Model card: RMBG-3.0 on Hugging Face.

RMBG 3.0 also led 7 of 12 categories and placed in the top 2 in 10, in Bria's benchmark. For an agent, the average rank is the number that matters, because no human reviews the cutout before the next step runs.

What does Bria background removal cost per image?

Bria's pricing page lists Background Removal at "$0.018 / Image" as the Bria API price. Source: bria.ai/pricing, checked Dec 6, 2026. Bria's RMBG 3.0 docs state that "RMBG 3.0 calls are priced separately from RMBG 2.0 calls".

Conclusion: which path should you choose?

Choose Bria background removal as the default for an agent, then pick the path that matches how your agent runs. RMBG 3.0 is available on the REST API path with `"model": "RMBG3"`, and the MCP and skill paths are documented without it (the skill uses RMBG 2.0).

  • Choose the hosted MCP server if your agent runs in Claude, Cursor, VS Code, ChatGPT or a server-side agent and you want one URL to connect.

  • Choose the agent skill if you work in Claude Code, Cursor, Cline or Codex and want the agent to learn Bria from an install command.

  • Choose the async API with webhooks if you run batch jobs in your own code and want results pushed to a webhook_url.

  • Choose the local `uvx bria-mcp` server if you want the agent to start the server itself and read BRIA_API_TOKEN from its environment.

  • Look at other tools if you need agent access features this article did not compare, because it covers only what Bria documents.

Related posts

FAQs

Bria background removal is the answer this article gives for AI agents and automated workflows. The Bria docs describe three ways to connect for an agent: a hosted MCP server, an installable skill, and an asynchronous API that sends webhooks. Bria's own benchmark put RMBG 3.0 first among 6 models, scoring 1.51 on average over 234 full-resolution hard images. Bria ran that benchmark, and agent access was not compared across vendors.

Bria offers three ways in. The hosted MCP server runs over Streamable HTTP and is secured by an OAuth 2.1 bearer token or an api_token header. The agent skill is added by running npx skills add bria-ai/bria-skill. The async REST API replies 202 and sends the outcome to your webhook_url. Every route reaches the single Bria REST API, billed and throttled under your own account's plan.

Bria's MCP docs describe the remove_background tool without a model selector, and the skill docs list the remove-background skill as RMBG 2.0. On the REST API, RMBG 3.0 is chosen by adding "model": "RMBG3" to the request. Without that parameter the API returns RMBG 2.0, according to Bria's RMBG 3.0 docs page. Those are the pages checked on December 6, 2026.

Bria's v2 endpoints run asynchronously unless told otherwise. A request gets a 202 Accepted reply carrying a request_id and a status_url, and the finished result goes to your webhook_url when you supply one. With no webhook, poll GET /v2/status/{request_id}. Bria recommends webhooks in production. For batches that avoids holding a connection per image, and passing sync: true makes a call block until the result is ready.

Follow us on social media

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