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

meta /sam-2:b88dc2ea

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
points_per_side
integer
32
Points per side for mask generation
pred_iou_thresh
number
0.88
Predicted IOU threshold
stability_score_thresh
number
0.95
Stability score threshold
use_m2m
boolean
True
Use M2M

Output schema

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

Schema
{'properties': {'combined_mask': {'format': 'uri',
                                  'title': 'Combined Mask',
                                  'type': 'string'},
                'individual_masks': {'items': {'format': 'uri',
                                               'type': 'string'},
                                     'title': 'Individual Masks',
                                     'type': 'array'}},
 'required': ['combined_mask', 'individual_masks'],
 'title': 'Output',
 'type': 'object'}