$

Cost per second

For enterprise pricing and custom weights or models

Bria AI – Generative Image Editing Model

What is Bria AI?

Bria AI is a next-generation generative image editing model in the Image Editing API v2 designed for developers, creators, and product managers. At its core, Bria AI offers Generative Fill capabilities—allowing you to inject new content into masked areas with pixel-precise accuracy. Beyond fill operations, the suite supports background removal, advanced segmentation, foreground erasure with automatic background reconstruction, AI-driven canvas expansion, background blurs, detail sharpening, and high-quality upscaling. Built for asynchronous API workflows, Bria AI preserves original resolution and transparency while integrating robust visual and prompt content moderation.

Key Features

  • Generative Fill: Add objects or patterns into blob-shaped masked regions using detailed prompts.
  • Advanced Segmentation: Automatically or manually mask backgrounds for removal or replacement.
  • Foreground Erase & Reconstruct: Seamlessly erase subjects and rebuild backgrounds behind them.
  • Canvas Expansion: Extend image boundaries with AI-generated scenery or textures.
  • Background Blur: Isolate subjects by applying depth-of-field style blurs.
  • Image Enhancement: Sharpen textures, boost clarity, and recover fine details.
  • Upscaling: Increase resolution up to 4× without artifacts, preserving alpha channels.
  • Asynchronous API: Submit jobs non-blocking, poll for results, and integrate at scale.
  • Content Moderation: Optional visual and prompt moderation flags ensure compliance.

Best Use Cases

  • Product Photography: Swap backgrounds, remove reflections, sharpen product details.
  • Marketing Assets: Generate on-brand graphics or expand creative canvases.
  • Web & Mobile Design: Create hero images with transparent alpha or blurred backgrounds.
  • Digital Restoration: Recover and upscale old photos or artwork.
  • Rapid Prototyping: Mock up scenes—futuristic cityscapes, natural landscapes, or abstract art.

Prompt Tips and Output Quality

  1. Define a precise mask (URL or Base64 PNG) to control where fill or erase occurs.
  2. Use detailed prompts (“A neon city skyline at dusk”) for richer compositions.
  3. Employ a negative_prompt to omit unwanted elements (“No skyscrapers or ground vehicles”).
  4. Set a seed for reproducibility; omit for varied creative outputs.
  5. Enable preserve_alpha to maintain transparency in overlays and PNG exports.
  6. Leverage content_moderation flags in regulated environments.

Properly structured inputs lead to pixel-perfect edits, consistent style, and high-resolution final images.

FAQs

Q: Which image formats are supported?
A: Supply the source image via URL or Base64. PNG with alpha, JPEG, and WebP are all compatible.

Q: How do I define and switch mask types?
A: Pass mask_type as "manual" for your custom mask or "automatic" to leverage Bria AI’s built-in segmentation.

Q: Can I preserve transparency in the output?
A: Yes. Set preserve_alpha: true to retain the alpha channel for overlays and icons.

Q: How do I ensure consistent generative fill results?
A: Provide the same integer seed value. Changing or omitting it yields varied outputs.

Q: Is moderation available for inputs and outputs?
A: Enable visual_input_content_moderation or visual_output_content_moderation to filter inappropriate content automatically.