GET
/v1/schemas/fal/image/fal-ai/flux-pro/v1/erase
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above. upstream-spec Source trace15dbeb8ff5fd5fb575ea4e82ec54afd8101f6383ac1441613fc596099276cbec{
"fetchedAt": 1791522002,
"extractorVersion": "1",
"verifiedAt": null
} |
Request body
6 properties · 2 required · 0 $defs| property | type | description | constraints |
|---|---|---|---|
| mask_url* | string | The 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* | string | The URL of the input image to erase content from. | |
| output_format | enum | The format of the generated image. | jpeg | png · default: "jpeg" |
| enable_safety_checker | boolean | Authorized callers may set false to request relaxed screening. | default: true |
| sync_mode | boolean | If `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_pixels | integer | Number 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 tokensshell
$ 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", …}]}