Remove Background
remove_backgroundRemove the background from an image.
Uses Brainiall Cutout engine segmentation to precisely separate foreground from background. Returns a base64-encoded image with transparent background (PNG) or white background (WebP). Sub-500ms latency on GPU.
Args: image_base64: Base64-encoded image data (PNG, JPEG, or WebP). output_format: Output format -- 'png' (with transparency) or 'webp'.
Returns: dict with keys: - image_base64 (str): Base64-encoded result image - format (str): Output image format - original_size (dict): Original width and height - processing_ms (int): Processing time in milliseconds
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image_base64 | Yes | Base64-encoded image data. Supports PNG, JPEG, and WebP formats. | |
| output_format | No | Output image format: 'png' (default, with transparency) or 'webp' | png |