Bria Erase Foreground is a specialized generative AI endpoint designed to remove the primary subject (foreground) from any image and seamlessly regenerate the background at full resolution. Built for developers, creators, and product managers, this model delivers pixel-perfect accuracy in untouched regions and preserves transparency (alpha channel) when required. Whether you’re building an image editing app or automating bulk photo workflows, Bria Erase Foreground streamlines complex masking and inpainting tasks with a single API call.
visual_input_content_moderation
and visual_output_content_moderation
flags help enforce safe-for-work outputs.preserve_alpha
to true
for transparent PNG outputs; set to false
for fully opaque results.visual_input_content_moderation
when handling user-generated content to pre-filter inappropriate images.visual_output_content_moderation
to catch any unwanted artifacts.Q: How do I remove a subject from an image via API?
A: Call the Erase Foreground endpoint with your image (URL or Base64) and optional flags (preserve_alpha
, content moderation). The response returns a regenerated background preserving original dimensions.
Q: Can I keep the PNG transparency after removal?
A: Yes. Set preserve_alpha=true
(default) to retain the alpha channel in your output.
Q: What image formats are supported?
A: You can supply JPEG, PNG, or WebP images via URL or Base64. The output matches your input format, including transparency when enabled.
Q: Is background regeneration consistent across different scenes?
A: Bria uses advanced context-aware inpainting, ensuring that lighting, texture, and perspective align with the original image.
Q: How do I ensure safe content?
A: Enable visual_input_content_moderation
to filter incoming images and visual_output_content_moderation
to review generated results before public display.