SAM 3 Image

Image editing

SAM 3 is a unified foundation model for promptable segmentation in images and videos. It can detect, segment, and track objects using text or visual prompts such as points, boxes, and masks.

Input

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

URL of the image to be segmented

Uploading a file needs an account. Create accountJPEG, PNG, WebP · up to 25 MB

Text prompt for segmentation

Additional settings

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

List of point prompts

Tips and requirements

Box prompt coordinates (x_min, y_min, x_max, y_max). Multiple boxes supported - use object_id to group boxes for the same object or leave empty for separate objects.

Apply the mask on the image.

The format of the generated image.

If True, upload and return multiple generated masks as defined by max_masks.

Whether to include mask confidence scores.

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

Price$0.01 / request

You sign up first. Your settings are kept.

API code for this input

Complete the required fields and fix input errors to see API code.

How to use SAM 3 Image

Getting started

Select an object or region in an image to produce segmentation masks. Use a text description, points or boxes to guide the selection; this is not a new-scene generator.

Review your result

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 and settings

Provide image_url, then choose prompt, point_prompts or box_prompts for your selection. Check the full schema for coordinate and grouping rules.

Use include_scores or include_boxes when you need that metadata, and return_multiple_masks when you need separate candidate masks.