Erase Region
erase_regionRemove selected areas from an image using a grayscale mask. The erased region is filled with contextually consistent content.
Instructions
Erase a region from an image defined by a mask. The erased area is filled seamlessly. Provide the image and a grayscale mask (white = erase, black = preserve).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mask | Yes | Grayscale mask as a URL or base64-encoded string. White = erase, black = preserve. | |
| image | Yes | Source image as a URL or base64-encoded string. | |
| image_format | No | Output format. |