Model Details
Bria Eraser cleanly removes unwanted content from an image. You supply a source image and a binary mask marking the area you want gone; Eraser deletes whatever the mask covers and reconstructs the space behind it so the result looks like the object was never there. It runs prompt-free — there is no text instruction to write. Its strength is precise, seamless object removal that reconstructs plausible background rather than leaving a smear or a hole.
Bria models are trained exclusively on fully licensed data, making outputs safe and risk-free for commercial use.
## Best for - Erasing unwanted objects, people, or distractions from a photo (cleanup / distraction removal) - Removing watermarks, logos, timestamps, or text overlays by masking them - Cleaning up product and real-estate photos before publishing - Deleting photobombers or clutter while keeping the rest of the image untouched
## Choose another model when - You want to add or replace content in the masked region rather than erase it — use a generative-fill / inpainting model - You want to cut out the subject and get a transparent-PNG background — use a background-removal model - You want to enlarge the canvas and generate new surroundings — use an outpainting / expand model - You need an instruction-driven edit described in words — use a prompt-based image editor
## Tips - Draw the mask tightly around the object; white pixels mark what gets erased, black is preserved - The mask must match the source image's dimensions, or the regions won't line up - Set `mask_type` to `automatic` only when your mask came from an algorithm like SAM; leave it `manual` for hand-drawn masks
## Advanced Configuration
### mask_type Tells Eraser how the mask was produced. `manual` (default) is for user-drawn or hand-edited masks. `automatic` is for masks generated by a segmentation algorithm such as SAM. Match this to how you created the mask so the model interprets the boundaries correctly.
### preserve_alpha When the input image has transparency, set this to `true` to keep the alpha channel intact in the output. Leave it `false` (default) for ordinary opaque photos.
To run via the ModelRunner JavaScript client: ```js import { modelrunner } from "@modelrunner/client";
const result = await modelrunner.subscribe("bria/eraser", { input: { image_url: "https://media.modelrunner.ai/example-source.png", mask_url: "https://media.modelrunner.ai/example-mask.png", mask_type: "manual", }, }); ```


