Erase an object from an image
Submits an erase task using an input image and a mask identifying the object or region to remove.
Documentation Index
Fetch the complete documentation index at: https://docs.bfl.ml/llms.txt
Use this file to discover all available pages before exploring further.
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.
Number 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

