Please rotate your device

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

Eraser

Bria/Eraser

Bria Eraser enables precise removal of unwanted objects from images while maintaining high-quality outputs.

image generation

Bria Eraser enables precise removal of unwanted objects from images while maintaining high-quality output. It's roughly 6B parameters in size, takes an image as input and produces an image as output, preserving the original resolution (no resize or downscale). It's trained exclusively on licensed data for safe, risk-free commercial use.

Full documentation is available here.

Bria Eraser enables precise removal of unwanted objects from images while maintaining high-quality output

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/eraser_image_example.jpg",
  "mask": "https://labs-assets.bria.ai/sandbox-example-inputs/eraser_mask_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"
}