Explainer · Segment Anything · SAM 1 to SAM 3.1
What Is Meta SAM? Segment Anything explained: the AI from Meta that outlines any object you point at or name, in photos and videos. What it is, how it works, where it came from, and how to try it.
In one sentence
Meta SAM in One Sentence
Meta SAM (Segment Anything Model) is a family of free, open AI models from Meta that draw the exact outline of objects in images and videos when you click them, box them, or (since SAM 3) name them in a few words.
The outline is called a mask. Other tools use it to cut out, blur, recolour, count, measure or track the object. New to the idea? What segmentation means
The name
What “Segment Anything Model” Means
Each word in the name tells you something.
You’ll also see SAM called a foundation model (one general model many apps build on) and promptable (it does what your click, box or words ask).
The big idea
Why SAM Was a Big Deal: One Model, Any Object
Before SAM, segmentation models were trained for specific object types. SAM made one general model you steer with a prompt.
- Before: want to segment kettles? Collect thousands of labelled kettle photos and train a model.
- With SAM: click the kettle. No new training, no labels.
- Zero-shot: Meta designed SAM to transfer to new kinds of images and tasks without retraining.
- Building block: apps add SAM for selection, then do their own thing with the mask.
How it works
How SAM Works, Simply
Three parts: one looks at the picture, one reads your prompt, one draws the mask.
- 1Image encoderturns the picture into features. It’s the heavy step and runs once per image.
- 2Prompt encoderturns your click, box or words into the same language.
- 3Mask decodercombines the two and outputs the outline in a fraction of a second, so you can click again and again.
- +Later additions:SAM 2 adds memory to follow objects through video; SAM 3 adds a detector that finds every match for a text prompt.
Deeper dive: how SAM 3 segmentation works
How it learned
How Meta Trained SAM: The Data Engine
SAM’s generality comes from scale. Meta built its datasets with the model in the loop.
- The loop: the model proposes masks, people check and correct them, the model retrains, and the next round is faster.
- SA-1B (SAM 1): about 11 million licensed images with over 1 billion masks.
- SA-V (SAM 2): tens of thousands of videos with hundreds of thousands of tracked masks.
- SA-Co (SAM 3): over 4 million unique concept phrases, including hard “not this” examples.
- Details per dataset: SAM models · SA-Co benchmark
Family
The SAM Family at a Glance
One idea, applied to more and more kinds of media.
| Model | In one line |
|---|---|
| SAM 1 | Click or box an object in a photo, get its mask |
| SAM 2 | Same for video: the mask follows the object |
| SAM 3 | Type “red car” and every red car is found, masked and tracked |
| SAM 3.1 | Today’s version: SAM 3 with much faster multi-object video |
| SAM 3D | Turn an object or person in one photo into a 3D model |
| SAM Audio | Pull one sound out of a recording |
Full specs, datasets and licences side by side: all SAM models
Uses
What People Use SAM For
| Area | Example |
|---|---|
| Photo and video editing | Background removal, spotlight effects, blurring faces and plates |
| E-commerce | Clean product cut-outs at scale |
| AI training data | Labelling images in seconds instead of minutes |
| Science and medicine (research) | Counting cells, outlining organs or tumours for study |
| Mapping and agriculture | Fields, buildings, trees and crops from aerial images |
| Robotics and AR | Knowing exactly where an object is in view |
Worked examples: use cases · background removal
Clearing up confusion
What SAM Is Not
Common misunderstandings about Segment Anything.
It doesn’t create or change pixels. It only outlines; editing is done by other tools using the mask.
SAM 3 understands short phrases like “striped cat”, but it won’t describe a scene or answer questions.
It can outline a person, but it doesn’t identify who they are.
Tiny, thin, transparent or very crowded objects can trip it up. See limitations.
It’s a model. You use it through Meta’s playground, other apps, APIs, ComfyUI or your own code.
The family now covers video, 3D and sound too.
Licence
Is Meta SAM Free and Open?
Yes, with a licence
- SAM 1, SAM 2 / 2.1: Apache 2.0, a permissive open-source licence.
- SAM 3, 3.1, 3D: Meta’s SAM License: free, commercial use allowed, with some restrictions.
- Newer weights are gated: request access on Hugging Face first.
This is a summary, not legal advice; read the licence for your model before shipping a product.
Try it
Try Meta SAM Yourself
Pick how hands-on you want to be.
Everything in one place: how to use Meta SAM · all guides
Questions
Meta SAM FAQ
What does SAM stand for?
Segment Anything Model. “Segment” means outlining an object pixel by pixel, and “anything” means it isn’t limited to a fixed list of object types.
Who made Meta SAM?
Meta’s AI research team (FAIR). The first model was released in April 2023, with SAM 2, SAM 3, SAM 3.1, SAM 3D and SAM Audio following.
What is the latest version of SAM?
For images and video, SAM 3.1, released on 27 March 2026. SAM 3D (3D models) and SAM Audio (sound) extend the family.
Is Meta SAM free?
Yes to download and use under its licence: SAM 1 and SAM 2 are Apache 2.0; SAM 3, 3.1 and 3D use Meta’s SAM License, which allows commercial use with some restrictions. The online playground is free to try.
Does SAM know what objects are called?
SAM 1 and SAM 2 don’t: they outline what you point at. SAM 3 understands short text like “red car” and finds every match, but it doesn’t describe images or answer questions.
Is SAM an image generator?
No. SAM doesn’t create or change pixels. It produces masks (outlines) that other tools use to cut out, blur, recolour or edit objects.
Do I need a powerful computer?
Not to try it: the playground runs in a browser. Running SAM 3 yourself needs a recent NVIDIA GPU; hosted APIs avoid that.