GET

/v1/schemas/fal/image/fal-ai%2Fevf-sam

kind inputactivity imagehash 42c8e470extracted Jul 6, 2026version currentsource upstream spec ↗

Request body

10 properties · 2 required · 0 $defs
propertytypedescriptionconstraints
image_url*stringURL of the input image
prompt*stringThe prompt to generate segmentation from.
blur_maskintegerApply Gaussian blur to the mask. Value determines kernel size (must be odd number)0 ≤ n ≤ 50 · default: 0
mask_onlybooleanOutput only the binary mask instead of masked imagedefault: true
use_grounding_dinobooleanUse GroundingDINO instead of SAM for segmentationdefault: false
revert_maskbooleanInvert the mask (background becomes foreground and vice versa)default: false
expand_maskintegerExpand/dilate the mask by specified pixels0 ≤ n ≤ 20 · default: 0
negative_promptstringAreas to exclude from segmentation (will be subtracted from prompt results)nullable
semantic_typebooleanEnable semantic level segmentation for body parts, background or multi objectsdefault: false
fill_holesbooleanFill holes in the mask using morphological operationsdefault: false

Validate a payload

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