Please rotate your device

To continue exploring this website, please rotate your device to a vertical orientation

Image Background Removal (RMBG)

Bria/Image Background Removal (RMBG)

Removes backgrounds from product/people images. One API call in, transparent PNG out.

image generation

Bria Background Remove is an image-editing model that automatically removes backgrounds from images, accepting input images up to 12,000 × 12,000 px in JPEG, PNG, or WEBP format (RGB, RGBA, or CMYK color modes). It outputs a PNG with an 8-bit alpha channel, preserving soft, non-binary edges for clean, natural-looking cutouts, with output resolution always matching the input.

Full documentation is available here.

Bria Background Remove is an image-editing model that automatically removes backgrounds from images

The model is available under a commercial-use license via Bria, trained exclusively on licensed data with full IP indemnification for generated outputs.

Input

python
import os
import requests

url = os.environ["MODEL_API_URL"]
payload = {
  "image": "https://labs-assets.bria.ai/sandbox-example-inputs/remove_background_example.jpg"
}

headers = {
  "Content-Type": "application/json",
  "api_token": os.environ['MODEL_API_KEY']
}

response = requests.post(url, json=payload, headers=headers)

data = response.json()
print(data)

Output

json
{
  "result": {
    "image_url": "string"
  },
  "request_id": "string"
}