Photoroom API alternative: migration in 6 steps (2027)

Bria.ai

Photoroom API alternative: migration in 6 steps (2027)

Updated 2026-12-01

  • Direct answer: Move from the Photoroom Remove Background API to the Bria API at $0.018 per image in six steps: audit your plan, map the request, get a key, replace the call, handle job results, then test on your own images.

  • Main change: Photoroom takes a multipart file upload and returns the image bytes. The Bria API takes a public image URL or a base64 string and returns a job you poll or receive by webhook.

  • Limits to map: Photoroom accepts files up to 50 MB and 6,000 pixels on the widest side. The Bria docs page checked states no input size limit, so test your largest files.

  • Free test: Bria includes 100 free generations, which covers a 50 image comparison twice.

  • Not tested head to head here: This guide maps fields. It makes no claim about which cutouts look better on your images.

What is the best Photoroom API alternative for background removal, and how do you move to it? This guide maps the Photoroom Remove Background API onto the Bria API, with one working request, a limits table and a test plan. Bria wrote this article. The one benchmark mentioned is Bria's: blind votes from professional and casual users plus a vision language model side-by-side comparison, on 234 hard images. Prices and limits were checked on 2026-12-02.

What does the Photoroom Remove Background API accept and return?

It accepts one image as a multipart upload, up to 50 MB and 6,000 pixels on the widest side, and returns the cutout as image bytes, PNG by default. The facts below come from the Photoroom quickstart and file size page (both read 2026-12-02).

  • Item: Endpoint; Photoroom Basic API: POST https://sdk.photoroom.com/v1/segment; Bria API: POST https://engine.prod.bria-api.com/v2/image/edit/remove_background

  • Item: Auth header; Photoroom Basic API: x-api-key; Bria API: api_token

  • Item: Input; Photoroom Basic API: Multipart field image_file, no URL input on this plan; Bria API: JSON with the image as public URL or base64

  • Item: Input formats; Photoroom Basic API: PNG, JPEG, WEBP, HEIC; Bria API: Not covered on the docs page checked

  • Item: Size; Photoroom Basic API: 50 MB, 6,000 px widest side, 25 MP recommended; Bria API: Not stated on the docs page checked

  • Item: Output; Photoroom Basic API: PNG, JPEG or WEBP, set by the format argument, PNG default; Bria API: request_id and status_url by default

  • Item: Price; Photoroom Basic API: $0.02 per image; Bria API: $0.018 per image

  • Item: Free; Photoroom Basic API: 10 free production calls; Bria API: 100 free generations

  • Item: Rate limit; Photoroom Basic API: 60 images per minute by default, 429 on excess; Bria API: 10 Free, 60 pay as you go, 1,000 Enterprise per minute

Source: Photoroom docs, its rate limit FAQ and API pricing, Bria docs and pricing, checked 2026-12-02.

Step 1: Which Photoroom plan are you on, and what do you use from it?

Check whether you call the Basic or the Plus API, and which optional parameters your code sets. The answer decides how much of your code carries over.

  1. Plan: Basic is the Remove Background API at $0.02 per image. Plus is the Image Editing API at $0.10 per image and adds backgrounds, shadows and expand.

  2. Parameters: The quickstart names format, channels, bg_color, size and crop as optional. List which ones you send.

  3. Volume: Count last month's images. Photoroom self-serve API plans are monthly, and unused images do not roll over.

If you call Plus features such as AI backgrounds or shadows, a cutout API replaces only part of your pipeline. Those steps stay with Photoroom or need another tool.

Step 2: How does the request change?

The upload becomes JSON, and the file becomes a URL or a base64 string. Photoroom's docs state that the Basic API needs the file itself and suggest downloading a remote image first. Bria accepts a public URL directly.

  • Local files: Encode the file as base64, or host it at a public URL.

  • Remote files: Send the URL as is, which removes a download step from your code.

  • Auth: Swap the x-api-key header for api_token.

  • Model: Add "model": "RMBG3" for RMBG 3.0. Without it the default is RMBG 2.0.

Step 3: How do you get a Bria key and test for free?

Create a free account on the Bria developer platform, which includes 100 free generations and 10 requests per minute. The quickstart says setup takes about five minutes.

  • Free plan: 100 free generations, 10 requests per minute.

  • Pay as you go: from $0.018 per image, 60 requests per minute.

  • Enterprise: custom pricing, 1,000 requests per minute, customizable.

Here is what each plan costs at list price, checked 2026-12-02.

  • Item: Price per image; Photoroom Basic API: $0.02; Bria API: $0.018

  • Item: Per 1,000 images; Photoroom Basic API: $20; Bria API: $18

  • Item: Per 10,000 images; Photoroom Basic API: $200; Bria API: $180

  • Item: Free allowance; Photoroom Basic API: 10 free production calls; Bria API: 100 free generations

  • Item: Default rate limit per minute; Photoroom Basic API: 60 images; Bria API: 10 Free, 60 pay as you go

Source: Photoroom API pricing, its rate limit FAQ, Bria pricing, checked 2026-12-02. List prices, no discounts.

Store the token in an environment variable such as BRIA_API_TOKEN. Do not paste it into source code.

Step 4: How do you replace the Photoroom call with a Bria call?

Replace the multipart request with one JSON request to the remove_background endpoint. The Photoroom call looks like this, from its quickstart.

curl --request POST --url https://sdk.photoroom.com/v1/segment \
  --header 'x-api-key: YOUR_API_KEY' \
  --form image_file=@/path/to/your/image.jpg --output photoroom-result.png

The Bria call, from its documentation, sends a URL.

curl -X POST https://engine.prod.bria-api.com/v2/image/edit/remove_background \
  -H "api_token: $BRIA_API_TOKEN" -H "Content-Type: application/json" \
  -d '{"image": "https://labs-assets.bria.ai/sandbox-example-inputs/remove_background_example.jpg", "model": "RMBG3"}'

For a local file, base64 encode it in Python and put the string in the same image field. This snippet is our adaptation of the documented image field (public URL or base64). It was not run against the API, so test it before you rely on it.

import base64, os, requests

with open("image.jpg", "rb") as f:
    encoded = base64.b64encode(f.read()).decode()

resp = requests.post(
    "https://engine.prod.bria-api.com/v2/image/edit/remove_background",
    headers={"api_token": os.environ["BRIA_API_TOKEN"]},
    json={"image": encoded, "model": "RMBG3"},
    timeout=60,
)
print(resp.json())

RMBG3 cannot be combined with the prompt parameter. A request that does returns 422.

Step 5: How do you handle job results and the rate limit?

By default the request returns a request_id and a status_url, and you read the result from the status endpoint or a webhook. Photoroom returns the image in the response, so this is the largest code change.

  • Default: sync is false. The call returns at once with a job to poll.

  • Webhook: Pass webhook_url to receive the result.

  • Blocking: sync true holds the connection open. The docs suggest it for quick tests only.

  • Limits: The rate limits page says limits apply per organization and per endpoint, status calls count toward them, and 429 responses should be retried with exponential backoff and jitter.

Photoroom's FAQ states a default of 60 images per minute, with a 429 error beyond it. Compare your busiest minute with that and with Bria's 10, 60 or 1,000. If it is above 10, the free plan returns 429 errors.

Step 6: How do you check quality before you cut over?

Run 50 of your own images through both APIs and count the cutouts you would publish without a fix. Bria's benchmark used hard images, and your catalog may be easier or harder.

  1. Pick 50 images, including hair, shiny products and busy backgrounds.

  2. Run both APIs on the same files, keeping the Photoroom output as your baseline.

  3. View each result on a light and a dark background.

  4. Check output dimensions on your largest files, because the Bria docs page checked does not state output size.

  5. Count usable cutouts per API, and keep Photoroom running until the numbers agree.

For context, in Bria's benchmark RMBG 3.0 ranked first of 6 models with an average rank of 1.51 across 234 hard images, described in the benchmark post.

What should you not migrate?

Do not migrate features that have no equivalent in the Bria call you tested. Photoroom's Plus API covers AI backgrounds, shadows, expand, virtual try-on and product staging. This guide covers cutouts only.

  • Keep on Photoroom: Plus-only editing features you rely on.

  • Rebuild yourself: Solid background colors and resizing that your code sets today through bg_color, size or crop. Confirm what Bria's docs support before you plan this.

  • License check: The RMBG 3.0 weights on Hugging Face use CC BY-NC 4.0. The Bria API is the commercial path, and the model card says commercial use of the weights needs an agreement with Bria.

Which API should you switch to?

Switch to Bria RMBG 3.0 when you want a URL input and a free plan with 100 generations, and stay put when your pipeline depends on Plus features.

  • Choose Bria if you want $0.018 per image, URL or base64 input and a self-serve key.

  • Stay on Photoroom if you use its staging and shadow tools, need HEIC input, or already have a stable $0.02 per image workflow.

  • Consider Pixelcut if you prefer credit plans: 5 credits per removal at one cent each, per its API pricing.

Bria is not the lowest price in the market. Ideogram via fal lists $0.01 per image.

Related posts

FAQs

Bria RMBG 3.0 is a strong alternative when you want URL input and a free plan. The Bria API costs $0.018 per image against Photoroom's $0.02, includes 100 free generations and allows 60 requests per minute on pay as you go. In Bria's benchmark RMBG 3.0 ranked first of 6 models. Test it on your own images before you cut over.

Photoroom's Remove Background API takes a multipart upload in the image_file field with an x-api-key header, and returns image bytes. The Bria API takes a JSON body with a public image URL or a base64 string and an api_token header. By default it returns a request_id and a status_url that you poll or replace with a webhook, so plan time for that change.

The Bria remove_background endpoint accepts the image as a public URL or a base64 string, so local files need one of two steps. Either host the file at a public URL first, or encode it as base64 in the JSON body, as the Python example in this guide does. Photoroom's basic API sends the file bytes directly, so this is a real change to test early.

Photoroom's Remove Background API accepts PNG, JPEG, WEBP and HEIC files up to 50 MB and 6,000 pixels on the widest side, with 25 megapixels recommended. Its FAQ states a default rate limit of 60 images per minute. Bria's docs page checked states no input size limit, so test your largest files, and compare your busiest minute with Bria's 10, 60 or 1,000 requests per minute.

Follow us on social media

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