GET
/v1/schemas/fal/image/fal-ai/moondream3-preview/segment?kind=output
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above.Source trace3d3e6ff9b1d667efa23796f2cfb388e0df9d2aaee745f856c148db3137bb0a44{
"fetchedAt": 1783330412,
"extractorVersion": "1",
"verifiedAt": null
} |
Response body
5 properties · 2 required · 3 $defs| property | type | description | constraints |
|---|---|---|---|
| usage_info* | UsageInfo | Usage information for the request | |
| finish_reason* | string | Reason for finishing the output generation | |
| image | ImageFile | Segmentation mask image. If no object detected or preview not requested, will be null. | nullable |
| bbox | Object | Bounding box of the segmented object. If not detected, will be null. | nullable |
| path | string | SVG path data representing the segmentation mask. If not detected, will be null. | nullable |
Types
3 $defsImageFileobject
| url* | string | The URL where the file can be downloaded from. | |
| content_type | string | The mime type of the file. | nullable |
| width | integer | The width of the image | nullable |
| file_name | string | The name of the file. It will be auto-generated if not provided. | nullable |
| file_size | integer | The size of the file in bytes. | nullable |
| height | integer | The height of the image | nullable |
Objectobject
| x_max* | number | Right boundary of detection box in normalized format (0 to 1) | |
| x_min* | number | Left boundary of detection box in normalized format (0 to 1) | |
| y_max* | number | Bottom boundary of detection box in normalized format (0 to 1) | |
| y_min* | number | Top boundary of detection box in normalized format (0 to 1) |
UsageInfoobject
| input_tokens* | integer | Number of input tokens processed | |
| output_tokens* | integer | Number of output tokens generated | |
| decode_time_ms* | number | Time taken for decoding in milliseconds | |
| prefill_time_ms* | number | Time taken for prefill in milliseconds | |
| ttft_ms* | number | Time to first token in milliseconds |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"fal","endpointId":"fal-ai/moondream3-preview/segment","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}