Sam 3 1
/v1/runSam 3 1 Image Rle is Meta's intelligent image editing model. Transform, retouch, and reimagine existing images using text prompts - from background replacement to artistic style conversion.
Request body
Submit an async generation request. The model field selects the model; other fields are model-specific input parameters.
Model identifier. Set to meta/sam-3-1/image-rle.
Default: meta/sam-3-1/image-rle
Text prompt for segmentation
Default: wheel
URL of the image to be segmented
The format of the generated image.
Allowed values: jpeg, png
Default: png
Whether to include mask confidence scores.
Default: false
Maximum number of masks to return when `return_multiple_masks` is enabled.
Range: 1 to 32
Default: 3
Apply the mask on the image.
Default: true
List of point prompts
Default:
Whether to include bounding boxes for each mask (when available).
Default: false
If True, upload and return multiple generated masks as defined by `max_masks`.
Default: false
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:
Response Schema
The submit endpoint returns an accepted generation task. Poll the result endpoint with the returned id for terminal outputs or errors.
Error message if the task failed. Empty on success.
Unique identifier for the generation task.
Model ID used for the prediction.
Array of generated content. Empty when status is not completed.
Status of the task: pending, running, completed, failed, or timeout.
Allowed values: pending, running, completed, failed, timeout
Model capabilities
Capabilities declared by the model registry.
Default: image-to-image
Execution mode declared by the model registry.
Default: async

