Available now

SAM 2 Image: image segmentation

Mark the part of a photo you want to isolate. SAM 2 Image uses your points or box to identify the subject and produces a mask for the selected region.

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

Additional settings

List of prompts to segment the image

Coordinates for boxes

Price$0.53 / run

You sign up first. Your settings are kept.

About this model

Overview

Upload an image and mark what you want with point coordinates or a box. Each point is labeled as foreground (part of the object) or background (not part of it). The result is the segmented image as PNG, JPEG or WebP, and you can choose to apply the mask onto the image.

What you can build

  • Masks for inpainting and object edits
  • Product selections from busy photos
  • Cutouts of people or pets for collages

Prompting tips

  • Start with one foreground point in the middle of the object, then add background points where the selection spills over.
  • Use a box around the object when it has a clear outline but many parts, such as a bicycle.

What to check

Check selected boundaries and excluded regions; inspect the output format before relying on transparency.

Inputs

  • Image (required): URL of the image to be segmented.
  • Prompts (optional): List of prompts to segment the image.
  • Box Prompts (optional): Coordinates for boxes.
  • Apply Mask (optional): Apply the mask on the image.
  • Output Format (optional): The format of the generated image. Options: jpeg, png, webp.

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

  • up to: $0.53 / run