bria/generate-background ✓🔢🖼️📝 → 🖼️
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
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
- [DEPRECATED] Use fast mode. No longer used in V2 API.
- seed
- Random seed. Set for reproducible generation
- sync
- Synchronous response mode
- image
- Image file
- bg_prompt
- Text description of the new scene or background. Either bg_prompt or ref_image_url must be provided
- image_url
- Image URL
- force_rmbg
- [DEPRECATED] Force background removal. No longer used in V2 API.
- ref_image_url
- URL of reference image for background generation. Either bg_prompt or ref_image_url must be provided
- refine_prompt
- Refine the prompt for optimal results
- ref_image_file
- Reference image file for background generation
- negative_prompt
- Negative prompt for image generation
- original_quality
- Retain original input image size, otherwise scale to 1MP
- enhance_ref_image
- [DEPRECATED] Enhance reference image. No longer used in V2 API.
- content_moderation
- Enable content moderation
Output Schema
Output
Example Execution Logs
Downloading 1657154 bytes Downloaded 1.58MB in 0.11sec
Version Details
- Version ID
3a1f29aee18799a08d64a8ad8277d7beba24747595f1e191cc7c9f043e0eec7c- Version Created
- December 4, 2025