Remove image background
remove_backgroundRemove the background from an image and return the cutout. Provide exactly one of image_url or image_base64. Returns a transparent PNG by default, or the subject on a solid colour when bg_color is set.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| crop | No | Crop the output to the subject. | |
| size | No | Output resolution: preview ≈ 0.25 MP, medium 1.5 MP, hd 4 MP. Use the HTTP API for larger outputs. | medium |
| format | No | png | |
| bg_color | No | Optional background colour, e.g. ffffff or white. | |
| image_url | No | Public http(s) URL of the source image (max 12 MB). | |
| image_base64 | No | Base64-encoded source image (max 12 MB decoded). |