You're looking at a specific version of this model. Jump to the model overview.

devarsh-mavani-19 /sam3:88456543

Input schema

The fields you can use to run this model with an API. If you don’t give a value for a field its default value will be used.

Field Type Default value Description
image
string
Input image to segment.
text_prompt
string
object
Text description of the object(s) to segment (e.g. "yellow school bus", "person wearing red").
box_prompt
string
Optional: bounding box as JSON [x1, y1, x2, y2] in pixel coordinates. Example: "[100, 200, 400, 500]".
confidence_threshold
number
0.5

Max: 1

Minimum confidence score to include a mask in output.
mask_opacity
number
0.5

Max: 1

Opacity of the mask overlay on the visualization.
mask_color
None
green
Color of the mask overlay.
output_format
None
png
'png' returns annotated image; 'json' returns masks, boxes, and scores.

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{'format': 'uri', 'title': 'Output', 'type': 'string'}