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

⭐ Official ▶️ 43.2K runs 📅 Jul 2025 ⚙️ Cog 0.16.9 ⚖️ License
background-generation 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
[DEPRECATED] Use fast mode. No longer used in V2 API.
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
[DEPRECATED] Force background removal. No longer used in V2 API.
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
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
[DEPRECATED] Enhance reference image. No longer used in V2 API.
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
3a1f29aee18799a08d64a8ad8277d7beba24747595f1e191cc7c9f043e0eec7c
Version Created
December 4, 2025
Run on Replicate →