Remove background
Remove the background from a product, person, or object.
Use background removal when you want a clean cutout for ecommerce, design, or further editing.
The simplest request uses background.remove.
{
"url": "https://deep-image.ai/api-example.png",
"background": {
"remove": "auto"
}
}auto works well for most images.
Use human for portraits.
Use item for products and objects.
Prompt-based removal
Use prompt-based removal when the image contains multiple foreground elements and you want to control what stays.
{
"background": {
"remove": "generative",
"prompt": "keep relevant foreground, keep relevant objects"
}
}Let's remove background from this photo:

First with default model:

And then with diffusion based background removal with prompt: "keep relevant foreground, keep relevant objects"

You can combine removal with a flat color or a replacement background.
For full parameter details, examples, and item cropping, see Background removal and generation.
For photo preparation tips, see Remove BG recommendation.
Last updated