GET

/v1/schemas/fal/image/fal-ai/sam2/auto-segment?kind=output

kind outputactivity imagehash 923e2799…extracted Jul 6, 2026version currentsource upstream spec ↗
fieldrecorded source
schemaSource linked above.
Source trace
608a33f03e2ad1f73d9d318accc122d4476d362db663fed7b0afad3ca8a70451
{
  "fetchedAt": 1783329487,
  "extractorVersion": "1",
  "verifiedAt": null
}

Response body

2 properties · 2 required · 1 $defs
propertytypedescriptionconstraints
combined_mask*ImageCombined segmentation mask.
individual_masks*Image[]Individual segmentation masks.

Types

1 $defs

Imageobject

Represents an image file.

file_sizeintegerThe size of the file in bytes.nullable
widthintegerThe width of the image in pixels.nullable
file_namestringThe name of the file. It will be auto-generated if not provided.nullable
heightintegerThe height of the image in pixels.nullable
content_typestringThe mime type of the file.nullable
url*stringThe URL where the file can be downloaded from.

Validate a payload

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