GET

/v1/schemas/fal/image/fal-ai/flux-pro/v1/erase

kind inputactivity imagehash fbe82787…extracted Oct 9, 2026version currentsource upstream spec ↗
fieldrecorded source
schemaSource linked above.

upstream-spec

Source trace
15dbeb8ff5fd5fb575ea4e82ec54afd8101f6383ac1441613fc596099276cbec
{
  "fetchedAt": 1791522002,
  "extractorVersion": "1",
  "verifiedAt": null
}

Request body

6 properties · 2 required · 0 $defs
propertytypedescriptionconstraints
mask_url*stringThe URL of a black/white mask image where white (255) marks pixels to erase and black (0) marks pixels to keep. Needs to match the dimensions of the input image.
image_url*stringThe URL of the input image to erase content from.
output_formatenumThe format of the generated image.jpeg | png · default: "jpeg"
enable_safety_checkerbooleanAuthorized callers may set false to request relaxed screening.default: true
sync_modebooleanIf `True`, the media will be returned as a data URI and the output data won't be available in the request history.default: false
dilate_pixelsintegerNumber of pixels to expand the mask edges by. Higher values produce cleaner erase results around the masked region.0 ≤ n ≤ 100 · default: 10

Validate a payload

before you spend tokens
shell
$ curl -X POST https://modelschemas.com/v1/validate \
    -d '{"provider":"fal","endpointId":"fal-ai/flux-pro/v1/erase","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}