GET

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

kind inputactivity imagehash 1b4d07ce…extracted Jul 28, 2026version currentsource upstream spec ↗
fieldrecorded source
schemaSource linked above.
Source trace
11001bf27852087b9405c1c001b740f9be7ccb72e2feb2fb13df93ce1e94981e
{
  "fetchedAt": 1785214897,
  "extractorVersion": "1",
  "verifiedAt": null
}

Request body

11 properties · 1 required · 2 $defs
propertytypedescriptionconstraints
image_url*stringURL of the image to be segmented
return_multiple_masksbooleanIf True, upload and return multiple generated masks as defined by `max_masks`.default: false
include_boxesbooleanWhether to include bounding boxes for each mask (when available).default: false
output_formatenumThe format of the generated image.jpeg | png | webp · default: "png"
point_promptsPointPrompt[]List of point promptsdefault: []
box_promptsBoxPrompt[]Box prompt coordinates (x_min, y_min, x_max, y_max). Multiple boxes supported - use object_id to group boxes for the same object or leave empty for separate objects.default: []
include_scoresbooleanWhether to include mask confidence scores.default: false
max_masksintegerMaximum number of masks to return when `return_multiple_masks` is enabled.1 ≤ n ≤ 32 · default: 3
apply_maskbooleanApply the mask on the image.default: true
sync_modebooleanIf True, the media will be returned as a data URI.default: false
promptstringText prompt for segmentationdefault: "wheel"

Types

2 $defs

BoxPromptobject

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

PointPromptobject

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
xintegerX Coordinate of the promptnullable
labelenum1 for foreground, 0 for background0 | 1 · nullable
frame_indexintegerThe frame index to interact with.nullable
yintegerY Coordinate of the promptnullable

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/image-rle","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}