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

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

Performance

9.4sTypical run time
95.1KTotal runs

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
[DEPRECATED] Use fast mode. No longer used in V2 API.
seed Type: integerDefault: null
Random seed. Set for reproducible generation
sync Type: booleanDefault: true
Synchronous response mode
image Type: stringDefault: null
Image file
bg_prompt Type: stringDefault: null
Text description of the new scene or background. Either bg_prompt or ref_image_url must be provided
image_url Type: stringDefault: null
Image URL
force_rmbg Type: booleanDefault: false
[DEPRECATED] Force background removal. No longer used in V2 API.
ref_image_url Type: stringDefault: null
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
ref_image_file Type: stringDefault: null
Reference image file for background generation
negative_prompt Type: stringDefault: null
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
[DEPRECATED] Enhance reference image. No longer used in V2 API.
content_moderation Type: booleanDefault: false
Enable content moderation
Output Schema

Output

Type: array • Items Type: string • Items Format: uri

Example Execution Logs
Downloading 1657154 bytes
Downloaded 1.58MB in 0.11sec
Version Details
Version ID
d43e99b7537b23fa376e8e75d71552830269e2926e817efa3b1481c47dd3a73d
Version Created
November 10, 2026
Run on Replicate →