devarsh-mavani-19/sam3

Public
3 runs

Run devarsh-mavani-19/sam3 with an API

Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.

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
{
  "type": "string",
  "title": "Output",
  "format": "uri"
}