Available now

SAM 3 Image: image segmentation

Meta's SAM 3 Image finds the objects you name or point at in a photo and returns a mask for each one.

Model ID

Input

Fields marked * are required. Review the price before generating.

The image to be segmented

Uploading a file needs an account. Create account

JPEG, PNG, WebP · up to 25 MB

Text prompt for segmentation

Example prompt. Edit it or write your own.

Additional settings

[DEPRECATED] Use 'prompt' instead. Kept for backward compatibility.

List of point prompts

Whether to include mask confidence scores.

Whether to include bounding boxes for each mask (when available).

Estimated total$0.01

You sign up first. Your settings are kept.

About this model

Overview

Upload an image and say what to select, such as "wheel" or "the dog on the sofa". You can also mark the object with points or boxes instead of words, or combine both to refine one object.

The result is a mask image, applied over the photo or on its own, in PNG, JPEG or WebP. On request it also returns several masks, a confidence score and a bounding box for each mask.

What you can build

  • Masks for inpainting or object removal in another tool
  • Selections of every product or person in a shot
  • Cutouts of one object picked by a short phrase
  • Labeled regions for sorting or checking images

Prompting tips

  • Name the object with a short noun phrase; add a position or color when the photo holds several of the same thing.
  • Add a background point where the mask spills into something you do not want selected.
  • Turn on multiple masks when you need each matching object as its own mask.

What to check

Compare each mask with the source at the edges and around overlapping objects. A confidence score is a selection aid, not proof that every pixel is correct.

Inputs

  • Image (required): URL of the image to be segmented.
  • Prompt (optional): Text prompt for segmentation.
  • Text Prompt (optional): [DEPRECATED] Use 'prompt' instead. Kept for backward compatibility.
  • Point Prompts (optional): List of point prompts.
  • Box Prompts (optional)
  • Apply Mask (optional): Apply the mask on the image.
  • Output Format (optional): The format of the generated image. Options: jpeg, png, webp.
  • Return Multiple Masks (optional)
  • Include Scores (optional): Whether to include mask confidence scores.
  • Include Boxes (optional): Whether to include bounding boxes for each mask (when available).

Output and limits

  • File formats: JPEG, PNG, WEBP.
  • Small or dense text in the image can come out misspelled.
  • Hands, crowds and complex poses can show artifacts; generate a few variations and pick the best.
  • Some prompts or outputs can be refused by safety checks.

Price guide

  • 1 request: $0.01 / request