GET

/v1/schemas/fal/video/fal-ai/sam-3-1/video-rle

kind inputactivity videohash 764708b0…extracted Oct 1, 2026version currentsource upstream spec ↗
fieldrecorded source
schemaSource linked above.

upstream-spec

Source trace
efd9dc0c822df577cbdffffeeecf5e17a252c0e402b004be552fd747237a7fd8
{
  "fetchedAt": 1790830869,
  "extractorVersion": "1",
  "verifiedAt": null
}

Request body

11 properties · 1 required · 2 $defs
propertytypedescriptionconstraints
video_url*stringThe URL of the video to be segmented.
apply_maskbooleanApply the mask on the video.default: false
mask_urlstringThe URL of the mask to be applied initially.nullable
frame_indexintegerFrame index used for initial interaction when mask_url is provided.default: 0
return_object_rlesbooleanAlso return every tracked object's own mask in each frame, with an id the object keeps for the whole video. The merged rle is returned as before.default: false
box_promptsBoxPrompt[]List of box prompts with optional frame_index.default: []
promptstringText prompt for segmentation. Use commas to track multiple objects (e.g., 'person, cloth').default: ""
boundingbox_zipbooleanReturn per-frame bounding box overlays as a zip archive.default: false
max_num_objectsintegerMaximum number of objects to track in the video.1 ≤ n ≤ 128 · default: 16
detection_thresholdnumberDetection confidence threshold (0.0-1.0). Lower = more detections but less precise. Defaults: 0.5 for existing, 0.7 for new objects. Try 0.2-0.3 if text prompts fail.0.01 ≤ n ≤ 1 · default: 0.5
point_promptsPointPrompt[]List of point prompts with frame indices.default: []

Types

2 $defs

BoxPromptobject

object_idintegerOptional object identifier. Boxes sharing an object id refine the same object.nullable
x_maxintegerX Max Coordinate of the boxnullable
frame_indexintegerThe frame index to interact with.nullable
y_minintegerY Min Coordinate of the boxnullable
x_minintegerX Min Coordinate of the boxnullable
y_maxintegerY Max Coordinate of the boxnullable

PointPromptobject

yintegerY Coordinate of the promptnullable
labelenum1 for foreground, 0 for background0 | 1 · nullable
frame_indexintegerThe frame index to interact with.nullable
xintegerX Coordinate of the promptnullable
object_idintegerOptional object identifier. Prompts sharing an object id refine the same object. When a text prompt is also given, the id selects which detected object the points refine.nullable

Validate a payload

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