GET

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

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

Request body

12 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
output_formatenumThe format of the generated image.jpeg | png | webp · default: "png"
include_scoresbooleanWhether to include mask confidence scores.default: false
apply_maskbooleanApply the mask on the image.default: true
point_promptsPointPrompt[]List of point promptsdefault: []
include_boxesbooleanWhether to include bounding boxes for each mask (when available).default: false
promptstringText prompt for segmentationdefault: "wheel"
sync_modebooleanIf True, the media will be returned as a data URI.default: false
text_promptstring[DEPRECATED] Use 'prompt' instead. Kept for backward compatibility.nullable · deprecated
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: []
max_masksintegerMaximum number of masks to return when `return_multiple_masks` is enabled.1 ≤ n ≤ 32 · default: 3

Types

2 $defs

BoxPromptobject

object_idintegerOptional object identifier. Boxes sharing an object id refine the same object.nullable
y_maxintegerY 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
x_maxintegerX Max Coordinate of the boxnullable

PointPromptobject

yintegerY 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
frame_indexintegerThe frame index to interact with.nullable
labelenum1 for foreground, 0 for background0 | 1 · nullable
xintegerX 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/image-rle","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}