Meta SAM 3 Playground

Guide · updated for SAM 3.1

Meta SAM 3 Segmentation: Image and Video Masking Guide Click, box or describe an object, and SAM 3 turns it into a clean mask in seconds. This guide explains how it works, how to get better masks, and how to use them.

Meta SAM 3 creating segmentation masks in an image

At a glance

SAM 3 Segmentation in Six Points

Pixel masksexact outlines, not just boxes
2 modesone object (PVS) or every match (PCS)
3 prompt typestext, examples and clicks
Images + videowith stable IDs over time
Scoreda confidence score for every mask
SAM 3.1current version, faster in video

Basics

What Is Segmentation in Meta SAM 3?

Segmentation means marking exactly which pixels belong to an object, rather than drawing a rough box around it. The result is a mask: a precise silhouette you can cut out, recolour, measure or track.

three kinds of segmentation
Animation comparing semantic, instance and panoptic segmentationThe same street scene with three people is shown three ways in turn. Semantic: all people share one colour. Instance: each person has a different colour and number. Panoptic: each person is separate and the road and sky are also labelled. skyroad person (all one class) #1#2#3 #1#2#3 SemanticInstancePanoptic SemanticInstancePanoptic
Illustration: the same scene shown as semantic, instance and panoptic segmentation.

The three classic kinds

  • Semantic. Every pixel gets a class, but all objects of that class share one mask: “all people”.
  • Instance. Each object gets its own mask and number: person #1, #2, #3.
  • Panoptic. Instance masks for objects, plus labels for background areas such as road and sky.

Where SAM 3 fits: it produces instance masks for whatever you prompt, each with a box and a confidence score. Need semantic masks? Merge the instance masks for that prompt. Background areas like “sky” or “road” can be prompted by name too.

Two modes

Visual vs Concept Segmentation

SAM 3 can work in two ways. Pick the one that matches your question: “segment this one thing” or “segment every thing like this”.

PVS vs PCS
Animation comparing visual and concept segmentationA park with four dogs. First a single click masks one dog (visual segmentation). Then the text prompt “dog” masks all four dogs, each numbered (concept segmentation). PVS · one click → this dog #1#2#3#4 PCS · text “dog” → every dog
Illustration: a click selects one dog; the text prompt “dog” selects all four.
  • Promptable Visual Segmentation (PVS). Clicks, boxes or masks segment one specific object per prompt. This is what SAM 1 and SAM 2 do, and SAM 3 does it too.
  • Promptable Concept Segmentation (PCS). A short phrase or an example image finds every matching object, and returns nothing if there is none. This is new in SAM 3.
  • Mix them. Run a concept prompt to get every match, then add a click to fix one mask.

More on concept prompts on our SAM 3 page.

Prompts

The Prompts You Can Use

Every prompt answers one question for the model: which pixels do you mean?

Text

A short noun phrase such as “red backpack”. Built into SAM 3, so no separate text model is needed.

Example (exemplar)

Box one object; SAM 3 finds the look-alikes. Add a negative example to exclude near-misses.

Points

Positive clicks on what you want, negative clicks on what to leave out.

Boxes

A rough rectangle; SAM 3 finds the exact shape inside it.

Masks

A rough mask, for example from another tool or a brush stroke, that SAM 3 cleans up.

Combined

Text first, then a click to correct; or a box first, then clicks for edges.

Wording tips and examples: SAM 3 prompts guide · prompt library

Images

Segmenting an Image, Step by Step

The typical workflow in any SAM 3 tool, from a click to a file you can use.

click → pick → export
Animation of the image segmentation workflowA click on a mug produces three candidate masks: the label, the mug body and the whole mug. The whole mug is chosen and exported as a cut-out. 1 · click2 · pick a candidate3 · export label0.84 mug body0.90 whole mug0.97 cut-out.png
Illustration: one click gives three candidate masks with scores; you pick one and export it.
  1. 1Load the imageHigher resolution and good lighting give cleaner edges.
  2. 2PromptClick the object, draw a box, or type what you want.
  3. 3Choose a maskA single click can be ambiguous (the label, the mug, or the mug plus its handle?), so tools often show a few candidates with scores.
  4. 4RefineAdd positive or negative clicks until it is right.
  5. 5Export or applySave the mask or cut-out, or use it straight away: replace the background, blur it, or recolour just the object.

Several objects? Prompt each one, or use a text prompt to get all matches at once. Guides: image segmentation · background removal · select specific objects

Video

Segmenting a Video

In video, SAM 3 segments the object once and then follows it. You only step in where it goes wrong.

prompt · propagate · fix
Animation of the video segmentation workflowFour frames of a dancer. The dancer is prompted on frame one, the mask is carried through every frame, and a correction on frame three fixes a small error. prompt once → propagate → fix a key frame frame 1frame 2frame 3frame 4 id 1
Illustration: a dancer is prompted on frame 1, tracked through the clip, and corrected on frame 3.
  • Prompt one frame. Text, an example or clicks on any frame.
  • Propagate. SAM 3’s tracker, built on SAM 2’s memory design, carries each mask forward with a stable ID.
  • Correct key frames. If a mask drifts, click on that frame and the fix carries through the frames after it.
  • Many objects? SAM 3.1’s Object Multiplex tracks up to 16 objects together in one pass, which is much faster than one at a time.

Full guide: video segmentation. Problems? tracking loses objects · slow video tracking

Outputs

What You Get Back, and How to Export It

For every object, SAM 3 returns a mask, a bounding box and a confidence score, and in video an ID. How you save the mask depends on what you will do with it next.

one mask, four formats
Animation of common mask export formatsOne mask of a leaf is exported four ways, which appear one after another: a PNG cut-out with transparency, a black-and-white binary mask, COCO RLE text for datasets, and a polygon outline. PNG with transparencycut-outs, design tools Binary maskcompositing, ML pipelines {"size": [480, 640], "counts": "Pk`3j1..."}COCO RLE · datasets Polygon · annotation, vectors
Illustration: the same mask saved four common ways.
  • PNG with transparency. A ready-made cut-out for design tools, thumbnails and stickers.
  • Binary mask. White object on black, for compositing, video editors and ML pipelines.
  • COCO RLE. A compact text format used by datasets such as SA-1B and most labelling tools.
  • Polygons. Outline points for annotation tools, GIS and vector editors.
  • Video. A mask per frame, or a video with an alpha channel, plus IDs for tracking data.

Details: mask formats · how to export masks

Under the hood

How SAM 3 Segmentation Works

You do not need this to use SAM 3, but it explains why it is fast and flexible.

  1. 1Vision encoderReads the image or frame once and turns it into features that are reused for every prompt.
  2. 2Prompt understandingText, example boxes and clicks are encoded so the model knows what and where you mean.
  3. 3Detector with presence checkFinds every object that matches a concept prompt, and first checks whether the concept is in the image at all.
  4. 4Mask predictionProduces a pixel mask, a box and a confidence score for each object.
  5. 5Tracker (video)Uses memory of earlier frames to keep each object’s mask and ID over time.

The full picture, with a diagram and benchmarks, is on our SAM 3 page.

Comparison

Segmentation in SAM 1 vs SAM 2 vs SAM 3

What changed for segmentation across the Segment Anything family.

AspectSAM 1 (2023)SAM 2 (2024)SAM 3 / 3.1 (2025–26)
Works onImagesImages and videoImages and video
PromptsPoints, boxes, masksPoints, boxes, masksText, examples, points, boxes, masks
Per prompt you getOne object (up to 3 candidate masks)One object, trackedOne object, or every match
Video trackingNoYes, with streaming memoryYes; much faster for many objects in 3.1
Says “none found”NoDetects when an object is hiddenYes, presence check for concepts
LicenceApache 2.0Apache 2.0SAM License

More: all comparisons · SAM 3 vs SAM 2 · SAM 3 vs SAM 3.1

Better results

Tips for Cleaner Masks

A strong model still depends on good input. These habits fix most problems.

one negative click
Animation of refining a mask with a negative clickA mask of a cat also covers the cushion it sits on. A negative click on the cushion removes it, leaving a clean mask of just the cat. mask grabs the cushion too − click on cushion → just the cat ✓
Illustration: a negative click on the cushion removes it from the cat’s mask.
  1. Start with a good imageSharp, well lit and high resolution. Motion blur and tiny objects are the hardest cases.
  2. Use negative clicksIf the mask grabs too much, one click on the extra area usually fixes it.
  3. Box first for awkward shapesThen add a few clicks to tidy the edges.
  4. Keep text prompts short“red backpack” beats a full sentence. Add one detail if too much is selected; try another word if nothing is.
  5. Zoom in on fine detailCheck hair, wires and thin parts, and add a positive click where something is missing.
  6. In video, fix key framesCorrect the start, hard cuts and occlusions, and let the fix propagate.

More fixes: improve mask quality · empty masks

Use cases

Where SAM 3 Segmentation Is Used

Creators and designers

Background removal, thumbnails, posters, stickers, and effects that follow a subject in Reels or Shorts.

Post-production and VFX

Rotoscoping, matte passes and grading one character or object without touching the rest.

App and web developers

“One-click cut-out”, “auto subject highlight” and background swap features in photo, video and design apps.

Dataset labelling

Pre-label whole scenes by concept, then correct, export and train smaller models.

Industry and science

Crops and weeds from drone footage, parts on a production line, and medical structures after fine-tuning and with expert review.

Privacy

Find and blur faces, people or licence plates across a whole video.

More on our use cases page.

Limits

What to Watch Out For

Works well

  • Everyday objects in clear photos and video.
  • Many objects at once from one text prompt.
  • Quick interactive fixes with a click.
  • New domains without training, with fine-tuning available for specialist ones.

Needs care

  • Motion blur, low resolution and very small objects.
  • Crowds of look-alikes, such as a team in identical kits.
  • Rare concepts and unusual wording; non-English prompts are less consistent.
  • Specialist imagery such as medical scans usually needs fine-tuning and expert review.
  • Compute: SAM 3 is a large model designed for GPUs.

Building a product? Always give users an easy way to fix a mask, and show alternatives when the model is unsure. More: limitations.

Questions

Segmentation FAQ

What does segmentation mean in Meta SAM 3?

Segmentation means marking exactly which pixels belong to an object. SAM 3 returns a mask for each object you ask for, plus a box, a confidence score and, in video, an ID that stays with the object from frame to frame.

What is the difference between PVS and PCS?

Promptable Visual Segmentation (PVS) uses clicks, boxes or masks to segment one specific object per prompt. This is what SAM 1 and SAM 2 do. Promptable Concept Segmentation (PCS) uses a short phrase or an example to find every object that matches. SAM 3 does both.

Does SAM 3 do semantic or instance segmentation?

It returns instance masks: one separate mask per object. If you need semantic segmentation (one mask for a whole class, such as all “road”), merge the instance masks for that prompt.

Can SAM 3 segment objects from a text prompt on its own?

Yes. Unlike SAM 1 and SAM 2, SAM 3 understands short text phrases natively, so you do not need a separate text-detection model in front of it. For long or complex instructions, Meta’s SAM 3 Agent pairs it with a multimodal language model.

What mask formats can I export?

That depends on your tool. Common options are a PNG cut-out with transparency, a black-and-white (binary) mask, compressed COCO RLE for datasets, and polygon outlines for annotation and vector tools.

Does SAM 3 segmentation work on video?

Yes. Prompt on one frame and SAM 3 tracks each object through the clip with a stable ID. SAM 3.1, released in March 2026, makes this much faster when many objects are tracked at once.

How can I get cleaner masks?

Use a sharp, well-lit image, add a negative click on any area that does not belong, start with a box for awkward shapes, keep text prompts short and concrete, and in video correct a few key frames rather than every frame.

Keep reading

Sources