bria/generate-background ✓🔢🖼️📝 → 🖼️

⭐ Official ▶️ 21.6K runs 📅 Jul 2025 ⚙️ Cog 0.16.7 ⚖️ License
background-removal background-replacement image-editing image-to-image

About

Bria Background Generation allows for efficient swapping of backgrounds in images via text prompts or reference image, delivering realistic and polished results. Trained exclusively on licensed data for safe and risk-free commercial use

Example Output

Output

Example output

Performance Metrics

9.38s Prediction Time
9.54s Total Time
All Input Parameters
{
  "fast": true,
  "sync": true,
  "image": "https://replicate.delivery/pbxt/NIKKLcHFHaRbZBVggmGNysFkbRXT2zXx4h9VbV9kuX5yn4ms/unnamed-13.jpg",
  "bg_prompt": "in a parking lot",
  "force_rmbg": false,
  "num_results": 1,
  "refine_prompt": true,
  "original_quality": false,
  "enhance_ref_image": true,
  "content_moderation": false
}
Input Parameters
fast Type: booleanDefault: true
Use fast mode for best balance between speed and quality
seed Type: integer
Random seed. Set for reproducible generation
sync Type: booleanDefault: true
Synchronous response mode
image Type: string
Image file
bg_prompt Type: string
Text description of the new scene or background. Either bg_prompt or ref_image_url must be provided
image_url Type: string
Image URL
force_rmbg Type: booleanDefault: false
Force background removal even if image has alpha channel
ref_image_url Type: string
URL of reference image for background generation. Either bg_prompt or ref_image_url must be provided
refine_prompt Type: booleanDefault: true
Refine the prompt for optimal results using Meta Llama 3
ref_image_file Type: string
Reference image file for background generation
negative_prompt Type: string
Negative prompt for image generation
original_quality Type: booleanDefault: false
Retain original input image size, otherwise scale to 1MP
enhance_ref_image Type: booleanDefault: true
Enhance reference image for optimal results
content_moderation Type: booleanDefault: false
Enable content moderation
Output Schema

Output

Type: arrayItems Type: stringItems Format: uri

Example Execution Logs
Downloading 1657154 bytes
Downloaded 1.58MB in 0.11sec
Version Details
Version ID
3318f0b99e0b2a93a7db3aa6fcbd33c3614b5418dc32f30d01b9ec789bfafb51
Version Created
October 3, 2025
Run on Replicate →