Erase an object from an image
Submits an erase task using an input image and a mask identifying the object or region to remove.
Authorizations
Body
Input model for public FLUX.2 erase.
Base64-encoded input image or HTTP(S) image URL.
Base64-encoded black/white mask or HTTP(S) image URL. White pixels indicate the object to remove; black pixels are preserved. Must have the same dimensions as the input image.
Opaque identifier for the end user supplied by the calling platform.
1 - 256Number of pixels to dilate the mask by before removal. Dilation helps cover object edges. Maximum is 25 pixels.
0 <= x <= 25Optional seed for reproducibility.
42
Tolerance level for input and output moderation. Between 0 and 5, 0 being most strict, 5 being least strict.
0 <= x <= 52
jpeg, png, webp URL to receive webhook notifications
1 - 2083Optional secret for webhook signature verification

