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