Bria Eraser is a production-grade image editing API that removes unwanted objects from photos and fills erased regions with contextually accurate, AI-generated pixels. Powered by Bria's inpainting foundation model, it analyzes surrounding lighting, texture, and composition to reconstruct the scene seamlessly — without disturbing original pixels outside the mask.
The API accepts a source image and a mask URL, then returns a clean, inpainted PNG in a single synchronous call at a flat cost of $0.04 per request.
mask_type=automatic for quick edits on well-defined objects like logos or isolated props.Q: What image formats does Bria Eraser support? A: The API accepts publicly accessible image URLs in JPEG or PNG format. High-resolution PNGs produce the cleanest inpainting results.
Q: What is the difference between manual and automatic mask types? A: Manual mask type uses a mask image you supply, giving pixel-level control over the removal area. Automatic mode lets Bria's segmentation model detect and mask the target object — faster for well-isolated elements.
Q: Does erasing an object affect the rest of the image? A: No. Bria Eraser only regenerates pixels inside the masked region. All original pixels outside the mask are preserved exactly.
Q: How does content moderation work?
A: Setting visual_input_content_moderation: true scans the source image before processing. Setting visual_output_content_moderation: true screens the result before it is returned — both can be enabled independently.
Q: Is this suitable for batch workflows? A: Yes. With a flat $0.04-per-inference rate and synchronous response, it integrates cleanly into automated pipelines for bulk catalog or asset processing.