Bria AI’s Image Editing API v2 is a suite of generative image-manipulation models built for developers, creators, and product managers. It supports precise object removal, content-aware fills, background editing, canvas expansion, detail enhancement, and resolution upscaling. Leveraging advanced diffusion and transformer architectures, Bria AI v2 produces context-aware edits while preserving original image quality. With built-in moderation controls, it’s designed for safe, scalable integration into web, mobile, and desktop applications.
scale
parameter (1–5) to control blur intensity in background edits. Default is 3
for balanced blurring.preserve_alpha
for logos or overlays to maintain alpha channels.visual_input_content_moderation
or visual_output_content_moderation
when handling sensitive imagery.Q: How do I remove an object from an image?
A: Use the Eraser model with a binary mask over the target area. The API will seamlessly fill the removed region based on surrounding context.
Q: Can I replace or blur a background automatically?
A: Yes. Invoke the background editing endpoint, set scale
(1–5) for blur, or pass a replacement image/prompt for dynamic backgrounds.
Q: What is Generative Fill and how do I use it?
A: Generative Fill regenerates masked regions via text prompts. Supply a mask and descriptive prompt (e.g., “add a sunset over the lake”) to create new content.
Q: How can I upscale images without artifacts?
A: Call Increase Resolution after Enhance Image. The upscaler preserves edges and textures without fabricating new elements.
Q: How do I maintain transparency in output?
A: Enable preserve_alpha=true
. This retains the original alpha channel, ideal for overlays, watermarks, and UI assets.