SAM 3.1 Image

Image editing

SAM 3.1 finds and segments the objects you describe in an image, and handles many objects at once.

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

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.02 / 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.1 Image

Getting started

Prepare an object selection for a later cutout or editing step.

Review your result

Inspect thin edges, holes and nearby objects included in the mask.

Inputs and settings

Supply image_url, then identify the target with prompt, point_prompts or box_prompts. Boxes use x_min, y_min, x_max and y_max coordinates.

apply_mask controls the masked preview. return_multiple_masks, include_scores and include_boxes expose additional results; choose output_format for delivery. This operation selects regions rather than generating a new scene.