remove_background
Remove the background from an image. Returns the processed image as base64. Accepts URL or base64-encoded image.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| crop | No | Whether to crop the image to the subject bounds | |
| size | No | Output image size preset | full |
| image | Yes | Image input: base64-encoded image data or a URL to an image | |
| format | No | Output image format | png |
| bg_color | No | Background color (hex, rgb, or color name). Only applies when channels is 'rgb'. Example: '#ffffff' | |
| channels | No | Output color channels. Use 'rgba' for transparency, 'rgb' for opaque background | rgba |