v1
latestOpenAPI 3.0.02026-07-13650400.5 KBGenerate Background
Description
The Replace BG Route is used to replace the background of any image with a generated background using the state-of-the-art BRIA 2.3 ControlNet BG-Gen model (<a href="https://huggingface.co/briaai/BRIA-2.3-ControlNet-BG-Gen" target="_blank">available on Hugging Face</a>).
We offer a fast version of this feature, powered by Bria 2.3 Fast LoRA (<a href="https://huggingface.co/briaai/BRIA-2.3-FAST-LORA" target="_blank">model card on Hugging Face</a>), which provides an optimal balance between speed and quality.
This endpoint also supports solid colors - you can take a color code and use it in the prompt.
Here are some examples:
original image:
<img src="https://i.ibb.co/n6JtktM/unnamed-13.jpg" width="200"/>bg_prompt: in a parking lot
num_results: 3
results:
<img src="https://i.ibb.co/1zvT5h4/unnamed-14.jpg" width="200"/> <img src="https://i.ibb.co/MkVDxc8/unnamed-15.jpg" width="200"/> <img src="https://i.ibb.co/pfgQ34p/unnamed-16.jpg" width="200"/>
Headers
API token associated with the organization.
Request body
Response
Successful operation.
Example response
{
"result": [
[
"result_url",
244184855,
"ef3d9a20-4d5d-11ee-8741-8e22fc45bbfc.JPEG"
]
]
}