GET
/v1/schemas/fal/image/fal-ai/sam2/auto-segment?kind=output
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above.Source trace608a33f03e2ad1f73d9d318accc122d4476d362db663fed7b0afad3ca8a70451{
"fetchedAt": 1783329487,
"extractorVersion": "1",
"verifiedAt": null
} |
Response body
2 properties · 2 required · 1 $defs| property | type | description | constraints |
|---|---|---|---|
| combined_mask* | Image | Combined segmentation mask. | |
| individual_masks* | Image[] | Individual segmentation masks. |
Types
1 $defsImageobject
Represents an image file.
| file_size | integer | The size of the file in bytes. | nullable |
| width | integer | The width of the image in pixels. | nullable |
| file_name | string | The name of the file. It will be auto-generated if not provided. | nullable |
| height | integer | The height of the image in pixels. | nullable |
| content_type | string | The mime type of the file. | nullable |
| url* | string | The URL where the file can be downloaded from. |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"fal","endpointId":"fal-ai/sam2/auto-segment","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}