The background removal feature uses AI to isolate the main subject of an image by removing the background with high accuracy. This is especially useful for applications like e-commerce, social media, or design, where a subject needs to be highlighted or placed on a different background.
To enable background removal, include the background: { remove: "auto" } parameter in your API request. The model will process the image to detect the primary subject and automatically remove the background, outputting an image with alpha channel consisting transparency mask.