Meta SAM 3 Playground

Video · updated for SAM 3.1

Meta SAM 3 Video Segmentation: Track Any Object in Video Describe what you care about once, and SAM 3 finds, masks and follows every match through your clip, each with its own ID.

Meta SAM 3 masking and tracking objects in a video

At a glance

SAM 3 Video Segmentation in Six Points

Describe ita phrase, an example, or a click
Every matchmasked and tracked with an ID
One modeldetects, segments and tracks
16 objectsper pass with SAM 3.1
32 FPSSAM 3.1 on one H100, medium object counts
Fix with a clickon any frame that drifts

Latest version: SAM 3.1 (March 2026) is a drop-in update to SAM 3 that makes video with many objects much faster. Everything on this page works with both.

Overview

What Is Meta SAM 3 Video Segmentation?

It is SAM 3’s concept segmentation applied to a whole clip. Instead of cutting out one object in one frame, SAM 3 finds every object that matches your prompt and keeps a mask and ID on each one as the video plays.

“white van” through a clip
Animation: every white van is found and trackedTraffic moves along a road. The prompt “white van” finds the two white vans, gives them IDs 1 and 2 and follows them as they drive, while other cars are ignored. id 1id 2 text › “white van” 2 tracked · others skipped
Illustration: the two white vans are found, numbered and followed; other cars are ignored.

What happens when you prompt a video

  1. 1FindEvery object that matches your phrase or example is detected.
  2. 2Mask and numberEach one gets a pixel-accurate mask and its own ID.
  3. 3TrackMasks and IDs follow the objects through the rest of the clip, and new matches that appear later get new IDs.

Compared with earlier models: SAM 2 tracks the objects you click. SAM 3 can also track everything that matches a description, which is what makes its video segmentation “open vocabulary”.

Prompt types

Three Ways to Tell SAM 3 What to Track

The same prompts work for video as for images. Use whichever matches your question, and combine them when needed.

text · example · click
Animation of the three ways to prompt a videoA football frame with three players in red, one in blue and a referee in yellow. The text prompt “player in red” selects the three red players; an example box around one red player does the same; a single click selects only one player. text › “player in red” example › box one player click › just this player
Illustration: text and example prompts select all red players; a click selects one.
  • Text: “every X”. Short phrases such as “players in red”, “cars on the road” or “blue helmets”. Best when the thing is easy to name.
  • Example: “things like this”. Box one object; SAM 3 finds look-alikes. Add a negative example to leave out near-misses, such as referees. Best for logos or object types that are hard to name.
  • Clicks, boxes, masks: “this one”. For one hero object, or to fix one mask precisely.
  • Combine: start with text to get every match, then click to correct a single object over time.

Several concepts at once? Run one prompt per concept, such as “cars”, “bikes” and “people”. More in our prompts guide.

How tracking works

How SAM 3 Follows Objects Through a Video

SAM 3 pairs a detector, which finds matches in each frame, with a tracker, which remembers what it has already seen. Matching the two keeps IDs stable.

detector + tracker · simplified
Animated diagram of how SAM 3 tracks videoFor each new frame, the detector finds objects matching the prompt and the tracker carries existing masks forward from memory. The two are matched: known objects keep their IDs and new objects get new IDs. The result is masks with IDs for that frame, which feed the memory for the next frame. Frame t+ your prompt Detectorfinds every match Trackercarries masks forward Match + IDskeeps or adds IDs Masks + IDs Memory each frame’s result becomes memory for the next (green path)
Simplified diagram. Each block lights up in turn.
  • Shared vision encoder. Each frame is read once and reused by both parts.
  • Detector with a presence check. Finds every object matching the prompt, and checks whether the concept is in the frame at all.
  • Memory-based tracker. Built on SAM 2’s design, it carries each mask forward and copes with camera motion, partial occlusion and changes in scale or light.
  • Matching. Known objects keep their IDs; newly appearing ones get new IDs.

Architecture details: SAM 3 page.

Speed

What SAM 3.1 Changed for Video

Original SAM 3 tracks objects one by one, so crowded scenes get slow. SAM 3.1’s Object Multiplex tracks them together.

16 objects: 16 passes vs 1
Animation comparing SAM 3 and SAM 3.1 on sixteen tracked objectsTwo rows of sixteen dots. In the SAM 3 row the dots light up one after another, one pass per object. In the SAM 3.1 row all sixteen light up together in a single shared pass. SAM 3one object at a time working…done · 16 passes SAM 3.1Object Multiplex done · 1 shared pass ✓
Simplified illustration of the idea. It shows the number of passes, not measured speed.
  • Up to 16 objects per forward pass, using a shared memory.
  • About twice the throughput: Meta reports 16 rising to 32 frames per second on a single H100 GPU for a medium number of objects.
  • Same accuracy: video scores are level with or slightly above SAM 3.
  • Drop-in: same prompts and code; update the repository and load the SAM 3.1 checkpoint.

Upgrade steps: upgrade to SAM 3.1 · SAM 3 vs SAM 3.1

Accuracy

How Accurate Is It on Video?

Meta tests video concept segmentation on its SA-Co/VEval benchmark, which covers three kinds of footage.

SA-Co/VEval · cgF1
Animated bar chart of video benchmark scorescgF1 scores on three SA-Co video test sets. SA-V: human 53.1, SAM 3 30.3, SAM 3.1 30.5. YT-Temporal-1B: human 71.2, SAM 3 50.8, SAM 3.1 52.9. SmartGlasses: human 58.5, SAM 3 36.4, SAM 3.1 36.3. SA-VHuman53.1SAM 330.3SAM 3.130.5YT-Temporal-1BHuman71.2SAM 350.8SAM 3.152.9SmartGlassesHuman58.5SAM 336.4SAM 3.136.3cgF1 · higher is better
Scores from Meta’s SAM 3 repository and Ultralytics’ SAM 3 documentation.
  • Clearly below human level. SAM 3 reaches roughly 57% to 71% of the human score across the three sets.
  • Best on everyday web video (YT-Temporal-1B), harder on varied clips (SA-V) and first-person footage from smart glasses.
  • SAM 3.1 matches or edges ahead, most clearly on YT-Temporal-1B (50.8 → 52.9).
  • Strong at click-based tracking: on the classic SA-V test, J&F rises from 84.4 for SAM 3 to 85.1 for SAM 3.1.

In practice: expect great first passes on common objects, and plan a quick review for long, crowded or fast-moving footage.

Use cases

What People Use It For

Sports analysis

Track “players in red”, separate referees and goalkeepers, and turn tracks into heat maps and tactics.

Social and creative editing

Isolate a dancer, car or product through a clip, then grade, blur or stylise just that subject.

Traffic and monitoring

Count vehicles, bikes and pedestrians passing through an area, within local laws and policies.

Robotics

Turn camera streams into object-by-object maps, often combined with depth or LiDAR.

Video data labelling

Generate masks across hundreds of frames from one prompt, then train small real-time models.

Anonymisation

Find and blur faces or licence plates across a whole video before sharing it.

More: all use cases

Get started

How to Get Started

Pick the route that fits your skills and volume.

Self-hosting in brief

  1. 1InstallPython 3.12+, PyTorch 2.7+ and a CUDA 12.6+ GPU, then the official sam3 code. See install SAM 3.
  2. 2Get access to the weightsRequest access on Hugging Face (facebook/sam3 or facebook/sam3.1). See Hugging Face access.
  3. 3Prompt and propagateStart a session, add a text, example or click prompt, and run it through the clip.
  4. 4SaveMasks per frame, an alpha video, or tracks as JSON. See mask formats.

Prefer Hugging Face Transformers? It includes a SAM 3 video model that can take several text prompts in one pass.

A text-prompted video, in code

from sam3.model_builder import build_sam3_video_predictor

predictor = build_sam3_video_predictor()

# 1. Open the video
response = predictor.handle_request(
    request=dict(type="start_session", resource_path="match.mp4")
)
session_id = response["session_id"]

# 2. Describe what to track, on any frame
response = predictor.handle_request(
    request=dict(
        type="add_prompt",
        session_id=session_id,
        frame_index=0,
        text="players in red",
    )
)
output = response["outputs"]   # masks, boxes and IDs

Based on the official sam3 repository. Its video example notebook shows how to propagate through every frame and refine with clicks. See also the Python tutorial.

Costs

How Video Costs and Credits Work

SAM 3 is free to download from Meta. What you pay depends on where it runs.

Hosted services

  • Per second of video, or credits per second or per frame.
  • Price usually rises with length, resolution and number of objects.
  • Short clips are cheap; long or many clips suit a larger plan.
  • See our credits and pricing pages.

Self-hosted

  • No licence fee under the SAM License, within its use limits.
  • You pay for GPU time and storage.
  • SAM 3.1 lowers GPU time when you track many objects.
  • Check system requirements before you buy hardware.

Best practices and limits

Tips for Better Tracking, and Known Limits

Most tracking problems come from long clips, scene cuts, crowds and fast motion. These habits help.

re-prompt after a cut
Animation of re-prompting at a scene cutA clip has two scenes. Masks and IDs work in scene one. After the cut, a new prompt on the first frame of scene two picks up the objects again with fresh IDs. scene 1scene 2 (after a cut) cut id 1id 2 new shot: nothing tracked id 3id 4re-prompt → picked up ✓
Illustration: after a scene cut, a fresh prompt picks the objects up again.
  1. Keep prompts short and clear“red bikes”, “goalkeepers”, “white vans”.
  2. Use an example for look-alikesA positive and a negative example beat a long description.
  3. Split long videosProcess by scene or in chunks, and re-prompt at each cut.
  4. Correct key framesFix the frame where a track drifts; the correction carries forward.
  5. Review what mattersFor critical work, check key clips by hand or combine SAM 3 with other trackers.
Known limits: extreme motion blur, tiny objects and dense crowds can confuse the model, and IDs may switch if an object leaves the frame for a long time or changes appearance a lot. Help: tracking loses objects · slow video tracking · CUDA out of memory

Questions

Video Segmentation FAQ

What is Meta SAM 3 video segmentation?

It is SAM 3 applied to video: you describe an object with a short phrase, show an example, or click it, and SAM 3 finds every match, draws a mask around each one and keeps the same ID on it from frame to frame.

How is it different from SAM 2 video tracking?

SAM 2 tracks the objects you click. SAM 3 can also find and track every object that matches a text phrase or an example, such as “players in red”, and its tracker builds on SAM 2’s memory design.

What did SAM 3.1 change for video?

SAM 3.1 adds Object Multiplex, which tracks up to 16 objects together in one pass instead of one at a time. Meta reports throughput rising from 16 to 32 frames per second on one H100 GPU for a medium number of objects, with accuracy about the same.

Can SAM 3 segment video in real time?

Near real-time is possible on a data-centre GPU when tracking a handful of objects: Meta cites about five at once. Many objects, high resolution or long clips take longer, so offline processing is common.

How long can the video be?

There is no fixed limit, but memory and processing time grow with length and resolution. For long footage, split it into shorter chunks or scenes and re-prompt at the start of each.

How much does SAM 3 video segmentation cost?

The model is free to download. Hosted services usually charge per second of video or by credits. If you run it yourself, the cost is your GPU time and storage.

What can I export from a video job?

Typically a mask per frame, a video with an alpha channel, or tracking data (IDs, boxes and masks per frame, often as JSON) for analytics and training.

Keep reading

Sources