Segment Anything Model 3 API

Segment objects in an image from text, points or boxes

meta/sam-3-image
MetaPredictions

About this model

Segment Anything Model 3 (SAM 3) is Meta’s foundation model for promptable segmentation. It detects and segments objects from a text prompt such as “wheel”, or from points, boxes and masks, and these prompts can be combined.

You can ask for several masks (up to 32) with confidence scores and bounding boxes, and choose the mask output format. Pick SAM 3 when you want to choose which objects to select; a background remover is simpler if you only need the subject cut out.

Limit: one image per request.

Use cases

  • Selecting objects for editing
  • Dataset annotation
  • Masks for removal or replacement

Input and output

Input
Image + text, point or box prompt
Output
Mask images with optional scores and boxes
Developer
Meta
Type
Predictions

Segment Anything Model 3 request example

This model type has a request format of its own; see the API documentation for details.