GET
/v1/schemas/fal/image/fal-ai/moondream3-preview/segment?kind=output
Accept:
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 | |
| path | string | SVG path data representing the segmentation mask. If not detected, will be null. | nullable |
| image | ImageFile | Segmentation mask image, or null if preview is disabled or no renderable mask is available. | nullable |
| bbox | Object | Bounding box of the segmented object. If not detected, will be null. | nullable |
Types
3 $defsImageFileobject
| content_type | string | The mime type of the file. | nullable |
| height | integer | The height of the image | nullable |
| url* | string | The URL where the file can be downloaded from. | |
| 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 |
| width | integer | The width of the image | nullable |
Objectobject
| y_min* | number | Top boundary of detection box in normalized format (0 to 1) | |
| y_max* | number | Bottom boundary of detection box in normalized format (0 to 1) | |
| 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) |
UsageInfoobject
| output_tokens* | integer | Number of output tokens generated | |
| decode_time_ms* | number | Time taken for decoding in milliseconds | |
| ttft_ms* | number | Time to first token in milliseconds | |
| prefill_time_ms* | number | Time taken for prefill in milliseconds | |
| input_tokens* | integer | Number of input tokens processed |
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", …}]}