SandBase is live — $1 in free credits on signupStart free ›
Use in agentBria models

Bria modelsimage generation api

bria/background/replace

Background Replace by Bria - AI-powered image editing, style transfer, and transformation. Edit photos with natural language instructions, remove backgrounds, change styles, and enhance images effortlessly.

Input
The prompt you would like to use to generate images.

PNG, JPEG, WebP, or GIF · 20 MiB maximum

Input Image to erase from
Whether to use the fast model

PNG, JPEG, WebP, or GIF · 20 MiB maximum

The URL of the reference image to be used for generating the new background. Use "" to leave empty. Either ref_image_url or bg_prompt has to be provided but not both. If both ref_image_url and ref_image_file are provided, ref_image_url will be used. Accepted formats are jpeg, jpg, png, webp.
Whether to refine prompt
02147483647
The same seed and the same prompt given to the same version of the model will output the same image every time. Range: 0 to 2147483647.
Idle

Example output — click Run to generate your own

API README

Bria Background Replace

Bria Background Replace is built for context-aware background replacement around an existing subject. It gives creative and production teams a focused way to move from an approved brief or source asset to a reviewable result without fragmenting the job across unrelated tools. The model is most valuable when visual intent, brand suitability, and downstream usability all matter, because its output can enter an editorial, campaign, product, or content pipeline as a purposeful asset rather than an isolated experiment.

In practice, teams can use Bria Background Replace during a structured cycle of briefing, generation, comparison, and refinement. Establish the subject, audience, visual objective, and acceptance criteria first; prepare any reference media at suitable quality; then evaluate alternatives for composition, continuity, realism, and communication value before delivery. This workflow keeps creative judgment central while making repeated production easier to review, reproduce, and scale for the specific bria/background/replace task.

Highlights

Subject identity retention. Subject identity retention gives bria › background › replace a recognizable technical advantage: reviewers can assess this property directly in the generated asset instead of inferring it from request mechanics.

Natural foreground-background blending. bria › background › replace applies natural foreground-background blending to the visual or temporal result itself, helping artists make a meaningful quality decision during selection and refinement.

Prompt-directed environments. For bria › background › replace, prompt-directed environments supports coherent assets across the intended creative workflow and distinguishes this capability from a simple format or delivery option.

Relighting for scene coherence. The practical value of relighting for scene coherence is visible in the finished media from bria › background › replace, where it supports repeatable art direction rather than merely exposing another request setting.

Pricing

Billing basisPrice
Per request$0.040000

When to Use

✅ Good fit❌ Consider alternatives
Use it when context-aware background replacement around an existing subject is the central production goalChoose a different model when the required media task is fundamentally different
The team needs several reviewable creative alternativesExact deterministic reproduction is mandatory
Visual quality and practical downstream use both matterEditable source layers or native project files are required
A managed generation step fits the delivery workflowA live frame-by-frame interactive editor is essential
The documented inputs cover the available source assetsRequired source media or controls fall outside the documented fields

Prompt Guide

State the intended result first, then describe the subject, environment, action, visual treatment, and delivery constraints. Keep instructions concrete, avoid conflicting directions, and change one creative variable at a time when comparing outputs. For source-driven work, describe what should remain recognizable as clearly as what should change.

{
  "image": "https://static.sandbase.ai/examples/bria/background/replace/input_image_1.jpg",
  "prompt": "Man leaning against a wall"
}

Technical Specs

PropertyDetails
fastType / options: boolean<br>Required: No<br>Description: Whether to use the fast model
seedType / options: integer · 0–2147483647<br>Required: No<br>Description: The same seed and the same prompt given to the same version of the model will output the same image every time.
imageType / options: string<br>Required: Yes<br>Description: Input Image to erase from
promptType / options: string<br>Required: Yes<br>Description: The prompt you would like to use to generate images.
ref_image_urlType / options: string<br>Required: No<br>Description: The URL of the reference image to be used for generating the new background. Use "" to leave empty. Either ref_image_url or bg_prompt has to be provided but not both. If both ref_image_url and ref_image_file are provided, ref_image_url will be used. Accepted formats are jpeg, jpg, png, webp.
refine_promptType / options: boolean<br>Required: No<br>Description: Whether to refine prompt

Related Models

  • bria/background/remove
  • bria/embed-product
  • bria/eraser

Related Models

bria/background/removeBackground Remove is Bria's intelligent image editing model. Transform, retouch, and reimagine existing images using text prompts - from background replacement to artistic style conversion.bria/embed-productEmbed Product is Bria's intelligent image editing model. Transform, retouch, and reimagine existing images using text prompts - from background replacement to artistic style conversion.bria/eraserEraser by Bria - AI-powered image editing, style transfer, and transformation. Edit photos with natural language instructions, remove backgrounds, change styles, and enhance images effortlessly.bria/expandExpand by Bria - AI-powered image editing, style transfer, and transformation. Edit photos with natural language instructions, remove backgrounds, change styles, and enhance images effortlessly.bria/extract-objectExtract Object by Bria - AI-powered image editing, style transfer, and transformation. Edit photos with natural language instructions, remove backgrounds, change styles, and enhance images effortlessly.bria/fiboFibo by Bria - generate stunning images from text prompts with state-of-the-art AI. Supports multiple aspect ratios, styles, and high-resolution output for creative and commercial use.bria/fibo-liteFibo Lite is Bria's advanced text-to-image AI model. Create photorealistic images, illustrations, and concept art from natural language descriptions with exceptional detail and prompt adherence.bria/fibo/editFibo Edit is Bria's intelligent image editing model. Transform, retouch, and reimagine existing images using text prompts - from background replacement to artistic style conversion.