remove.bg API alternative: 8-step migration checklist (2027)

Bria.ai

remove.bg API alternative: 8-step migration checklist (2027)

Updated 2026-12-01

TL;DR

  • Direct answer: Bria RMBG 3.0 ranked first of 6 models in Bria's benchmark (average rank 1.51 across 234 hard images) and costs $0.018 per image, one endpoint with "model": "RMBG3", with 100 free generations to test (checked 2026-12-02).

  • What breaks: Leonardo's guide lists remove.bg options such as size, format, bg_color, crop and shadows. The Bria remove_background docs list none of them, so plan to do that work in your own code.

  • Response change: Bria returns a hosted image_url, and RMBG 3.0 runs asynchronously by default, so your code must poll a status URL or take a webhook.

  • Limits: Bria allows 10 requests per minute on Free, 60 on pay as you go and 1000 on enterprise, per endpoint.

  • Cost: At list price, 10,000 cutouts cost $180 on Bria and $1,047 on Leonardo.Ai (calculated).

What changed for remove.bg API users?

The remove.bg self-service API stopped accepting requests on 1 December 2026, and the site now points to Leonardo.Ai.

Bria wrote this checklist, and the benchmark it cites is Bria's own: blind votes from professional and casual users plus a vision language model side-by-side, 234 hard images, full resolution. This guide is for developers who already call remove.bg and need a working replacement. Per the archived remove.bg FAQ, 24 November 2026, the self-service API stops on 1 December 2026, enterprise contracts are not affected and unused pay-as-you-go credits expire. On 2026-12-02, remove.bg/api redirects to the Leonardo.Ai documentation (checked with curl).

Leonardo.Ai is the destination remove.bg names, so it is a fair default to compare against. The eight checks below work for any replacement. The closing itself and the volume cost table are covered in the related posts below.

Check 1: Which remove.bg options does your code use?

List every remove.bg request parameter your code sends, then decide for each one whether the new API supports it or your code takes over.

Leonardo's migration guide for the remove.bg API, updated 2026-09-02, keeps most remove.bg names under a parameters object. The Bria remove_background docs were checked on 2026-12-02 and list a smaller set.

  • remove.bg option: size (preview, auto, full, 50MP); Leonardo.Ai: parameters.size, same values; Bria remove_background: Not listed

  • remove.bg option: format (png, jpg, webp); Leonardo.Ai: parameters.format, no zip or auto; Bria remove_background: Not listed, output has an alpha channel

  • remove.bg option: bg_color; Leonardo.Ai: parameters.bg_color; Bria remove_background: Not listed

  • remove.bg option: crop, scale, position; Leonardo.Ai: Same names; Bria remove_background: Not listed

  • remove.bg option: shadow_type, shadow_opacity; Leonardo.Ai: Same names; Bria remove_background: Not listed

  • remove.bg option: bg_image_url; Leonardo.Ai: parameters.guidances.background_image_reference; Bria remove_background: Not listed

  • remove.bg option: image_url, image_file_b64; Leonardo.Ai: image_reference with type URL or BASE64; Bria remove_background: image: base64 string or public URL

Source: Leonardo migration guide and Bria remove_background docs, checked 2026-12-02.

  • Keep a column of "your code does this now". Compositing a color or cropping to a margin is a few lines in an image library.

  • Search your repo for each option name before you assume you do not use it.

  • Bria extras: the endpoint lists preserve_alpha, webhook_url and two content moderation flags.

Check 2: What changes in the endpoint, key and response?

Three things change together: the URL, the key header and the shape of the response.

Leonardo's guide gives the remove.bg call as POST https://api.remove.bg/v1.0/removebg with an X-Api-Key header. Bria's RMBG 3.0 call is POST https://engine.prod.bria-api.com/v2/image/edit/remove_background, and the token goes in an api_token header (see the Bria authentication docs). Create the key in the Bria Console under Organization management, then API keys.

  • Request body: JSON with image as base64 or a public URL. Formats are JPEG, PNG and WEBP in RGB, RGBA or CMYK. Other types return 415.

  • Response: a 200 returns result.image_url and request_id. A 202 returns request_id and status_url.

  • Cost reporting: Leonardo's guide says its cost object replaces the X-Credits-Charged header. Bria's docs list no such field, so track cost from your own counts.

Your download step changes. Fetch the image from image_url instead of reading bytes from the first response.

Check 3: Should you call RMBG 3.0 sync or async?

Keep the default async mode for RMBG 3.0, because the Bria docs say to keep `sync: false` for it.

The Bria RMBG 3.0 docs (What's new, RMBG 3.0) add "model": "RMBG3" to the same endpoint. They say "keep the default sync: false", which returns a request_id and a status_url. Setting sync: true holds the connection open for the whole run and suits quick tests.

  1. Submit the job and store the request_id with your own record.

  2. Poll the status URL, or pass webhook_url and receive the result when the job completes.

  3. Download the image and write it to your storage.

Leonardo offers both modes too: a sync endpoint it recommends for remove.bg migrations, and an async one for batches and large images.

Check 4: Will your volume hit the rate limits?

Bria limits requests per endpoint per minute by plan: 10 on Free, 60 on pay as you go and 1000 on enterprise.

Status calls count toward the limit, so polling uses budget. Going over returns 429. Leonardo's guide does not document rate limits, only that you keep your existing 429 and 5xx retry logic. Check the Bria rate limits and errors page before you size a worker pool.

  • Divide your peak images per minute by the plan limit.

  • Prefer a webhook over tight polling when volume is high.

  • Cap your own concurrency so bursts do not trigger floods of retries.

  • Ask for an enterprise limit before a launch, not during one.

Check 5: How should you handle errors?

Map each error code to an action: fix the request, back off and retry, or alert.

  • Code: 400; Meaning in Bria docs: Malformed JSON or invalid parameter; Action: Fix the request

  • Code: 403; Meaning in Bria docs: Endpoint or option not in your plan; Action: Change plan or option

  • Code: 406 or 413; Meaning in Bria docs: Input over the pixel or size limit; Action: Resize before sending

  • Code: 415; Meaning in Bria docs: Unsupported file type or color mode; Action: Convert to JPEG, PNG or WEBP

  • Code: 422; Meaning in Bria docs: Moderation failure, or prompt with RMBG3; Action: Do not retry unchanged

  • Code: 429; Meaning in Bria docs: Rate limit exceeded; Action: Exponential backoff with jitter, honor Retry-After

  • Code: 5xx; Meaning in Bria docs: Problem on Bria's side; Action: Retry with backoff, check status.bria.ai

Source: Bria rate limits and errors docs, checked 2026-12-02.

The Python and TypeScript SDKs retry 429, 502, 503 and 504 while polling status. They never retry run or submit, so a job is not started twice. Copy that rule into any hand-written client.

Check 6: What will the move cost per image?

At 10,000 images a month, list price is $180 on Bria and $1,047 on Leonardo.Ai (calculated).

Bria lists $0.018 per image and Leonardo.Ai $0.1047 per image. Bria's RMBG 3.0 docs say RMBG 3.0 calls are priced separately from calls to the default model, so use the RMBG 3.0 price when you model cost.

Source: Bria pricing, Leonardo migration guide, checked 2026-12-02. Monthly figures are list price times images, without discounts.

Leonardo's tiers, limits and free tier were not found. Unlike Leonardo, Bria's docs list no cost field in the response, so count your own calls and multiply by the per-image price. For the volume table at 1,000, 10,000 and 100,000 images, see 6 best remove.bg alternatives in 2027 by volume cost. Also tally any remove.bg credits you held: per the archived FAQ they expire.

Check 7: How do you test quality on your own images?

Run your 50 hardest images through each candidate and compare the cutouts side by side before you move traffic.

Published numbers are a starting point. In Bria's benchmark, RMBG 3.0 ranked first of 6 models with an average rank of 1.51 across 234 hard images, and remove.bg averaged 2.22 (full benchmark). Leonardo.Ai was not benchmarked, so no rank is claimed for it.

  • Pick images that fail today: hair, glass, low contrast, clutter.

  • Save outputs for every candidate under the same file names.

  • Judge at full size on a checkerboard and on your real page background.

  • Free allowances cover this test: Bria gives 100 free generations, and Photoroom's API gives 10 free production calls.

Check 8: What do you need for licensing and cutover?

Use the API for commercial work, then cut over in stages with the old path kept as a fallback.

The RMBG 3.0 weights on Hugging Face are CC BY-NC 4.0, so commercial use of the weights needs an agreement with Bria. The Bria API is the commercial path.

  1. Send 5 percent of traffic to the new API and compare error rates.

  2. Raise to 50 percent, then 100 percent, once cutouts and costs match your test.

  3. Keep a second provider configured, for example the Photoroom API at $0.02 per image, 10 free production calls.

  4. Delete code paths that referenced X-Credits-Charged and old key names.

Which route should you choose?

Choose Bria RMBG 3.0 by default, and pick another route only for a specific reason.

  • Choose Bria RMBG 3.0 if you want the top average rank on hard images, $0.018 per image and a free start.

  • Choose Leonardo.Ai if you depend on remove.bg option names such as bg_color and shadow_type and want the least code change.

  • Choose Photoroom if you want a second API at $0.02 per image to run beside the first.

  • Stay on your enterprise contract if you have one, since the FAQ says those are not affected.

Related posts

FAQs

Bria RMBG 3.0 ranked first of 6 models in Bria's benchmark, with an average rank of 1.51 across 234 hard images. You call one endpoint with the model set to RMBG3, pay $0.018 per image and start with 100 free generations. Leonardo.Ai is the destination remove.bg names, and the Photoroom API at $0.02 per image is a second option for a fallback.

The Bria remove_background docs list image, model, prompt, preserve_alpha, sync, webhook_url and two content moderation flags. They list no size, format, bg_color, crop or shadow option, which Leonardo's migration guide carries over from remove.bg. If your code uses those options, plan to composite colors, crop and resize in your own code after you download the cutout. Test each option you rely on before cutover.

Bria's API is asynchronous by default. The RMBG 3.0 docs say to keep sync set to false, so you receive a request ID and status URL, then poll or use a webhook. Status calls count toward the rate limit, so prefer a webhook over tight polling when volume is high. Setting sync to true holds the connection open for the whole run and suits quick tests.

Bria limits requests per endpoint per minute by plan: 10 on Free, 60 on pay as you go and 1000 on enterprise, customizable per organization. Status calls count toward the limit, and going over returns 429. The docs advise exponential backoff with jitter and honoring the Retry-After header, and capping your own concurrency so bursts do not cause retry floods.

Follow us on social media

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