# SAM 3: Segment Anything with Concepts, explained

> What SAM 3 is, how concept prompts differ from SAM 2's clicks, what SAM 3D Body and SAM 3D Objects add, the SAM License, and how to call SAM 3 by API.

OpenRobotics · December 1, 2026

**SAM 3 is Meta's segmentation model that finds every instance of a concept you name.** Give it a short phrase like "yellow school bus" or an example of what you want, and it returns a mask and an identity for each matching object in an image or video. Earlier Segment Anything models segment the one object you point at; SAM 3 also answers "find all of these."

This guide covers what changed from SAM 2, what the paper and the official repository actually report, where SAM 3D Body and SAM 3D Objects fit, what the SAM License allows, and how to call [SAM 3 on OpenRobotics](https://www.openrobotics.dev/models/meta/sam-3) with a text prompt over HTTP.

## What SAM 3 is

SAM 3 was published by Meta Superintelligence Labs in [SAM 3: Segment Anything with Concepts](https://arxiv.org/abs/2511.16719) (arXiv, November 20, 2025), with code and checkpoints in the [facebookresearch/sam3 GitHub repository](https://github.com/facebookresearch/sam3). The paper describes it as "a unified model that detects, segments, and tracks objects in images and videos based on concept prompts."

The paper names the task **Promptable Concept Segmentation (PCS)**. A concept prompt is one of:

- a **short noun phrase**, such as "striped cat" or "red cup"
- **image exemplars**: bounding boxes around examples, each labeled positive or negative
- a **combination** of both

Given a concept prompt, PCS returns segmentation masks and unique identities for *all* matching object instances. That is the main difference from earlier SAM models. A click on a mug produces one mug mask; the phrase "mug" asks for every mug in the scene, and an empty answer is a valid result when there are none.

SAM 3 still supports the older visual prompts. The [README](https://github.com/facebookresearch/sam3) says it can "detect, segment, and track objects using text or visual prompts such as points, boxes, and masks," and the paper reports that it improves previous SAM capabilities on visual segmentation tasks.

## How SAM 3 works

The official README summarizes the architecture in a few sentences:

- SAM 3 is a **detector and a tracker that share one vision encoder**. The model has **848M parameters**.
- The **detector** is DETR-based and conditioned on text, geometry and image exemplars.
- The **tracker** inherits the SAM 2 transformer encoder-decoder, which supports video segmentation and interactive refinement.

Two ideas from the paper matter in practice.

**A presence head separates "is it here?" from "where is it?"** The paper decouples recognition from localization with a presence head, which it reports boosts detection accuracy. The README's example is telling apart closely related prompts such as "a player in white" and "a player in red." For open-vocabulary prompts, deciding whether the concept is present at all is a large part of the problem.

**The data engine is the other half of the model.** The paper builds a data engine that produced a dataset with **4M unique concept labels, including hard negatives** (phrases with no matching object), across images and videos. Hard negatives train the model to return nothing when nothing matches, rather than masking the closest-looking object.

## SAM 3 benchmark results

Meta released a new benchmark with the model, **SA-Co (Segment Anything with Concepts)**. The README says it contains **270K unique concepts**, "over 50 times more than existing benchmarks," split into SA-Co/Gold and SA-Co/Silver for images and SA-Co/VEval for video. All three are on Hugging Face.

The main metric is cgF1 (classification-gated F1), which combines how well the model localizes instances with whether it correctly decides the concept is present. On SA-Co/Gold instance segmentation the README reports:

| Model | SA-Co/Gold cgF1 (instance masks) |
|---|---|
| Human | 72.8 |
| **SAM 3** | **54.1** |
| OWLv2 | 24.6 |
| DINO-X | 21.3 |
| Gemini 2.5 | 13.0 |

The same README table lists **48.5 mask AP on LVIS** for SAM 3. The paper's headline is that SAM 3 "doubles the accuracy of existing systems in both image and video PCS," and the README puts it at 75–80% of human performance on SA-Co (the paper gives 74% of estimated human performance on SA-Co/Gold).

On speed, [Meta's SAM 3 blog post](https://ai.meta.com/blog/segment-anything-model-3/) says SAM 3 "runs in 30 milliseconds for a single image with more than 100 detected objects on an H200 GPU." In video, cost grows with the number of tracked objects, because each object is tracked with its own SAM 2-style masklet.

### SAM 3.1

On March 27, 2026, Meta released **SAM 3.1** ([release notes](https://github.com/facebookresearch/sam3/blob/main/RELEASE_SAM3p1.md)). It adds **Object Multiplex**, which groups tracked objects into fixed-capacity buckets and processes them together instead of one at a time. The notes report a ~7x speedup at 128 objects on a single H100 compared with the November 2025 release. The checkpoints are at [facebook/sam3.1](https://huggingface.co/facebook/sam3.1) and need the latest repository code.

## SAM 2 vs SAM 3: what is the difference?

If you know [SAM 2](https://www.openrobotics.dev/blog/sam-2), the simplest summary is that SAM 2 answers "segment *this*" and SAM 3 also answers "segment *all of these*."

| | SAM 2 | SAM 3 |
|---|---|---|
| Paper | [arXiv 2408.00714](https://arxiv.org/abs/2408.00714) (2024) | [arXiv 2511.16719](https://arxiv.org/abs/2511.16719) (Nov 2025) |
| Main task | Promptable visual segmentation: one object per prompt | Promptable concept segmentation: every instance of a concept |
| Prompts | Points, boxes, masks | Text phrases and image exemplars, plus points, boxes and masks |
| Text input | No | Yes, short noun phrases |
| Video | Memory-based tracking of prompted objects | Detector plus a SAM 2-derived tracker; tracks every detected instance |
| Size | Tiny to Large checkpoints | 848M parameters (README) |
| License | Apache-2.0 | SAM License |

Before SAM 3, getting "all the cups" usually meant a two-stage pipeline: an open-vocabulary detector turns text into boxes, then SAM 2 turns each box into a mask. [Grounded SAM 2](https://www.openrobotics.dev/models/idea-research/grounded-sam-2) is that pipeline. SAM 3 does both steps in one model with a shared backbone.

SAM 2 is still the better fit in two cases: when you already know *where* the object is and just need its exact outline, and when you need the Apache-2.0 license.

## SAM 3D Body and SAM 3D Objects

Alongside SAM 3, Meta released **SAM 3D**, described in its READMEs as "a pair of models for object and human mesh reconstruction." Despite the shared name, they are separate models with their own repositories and papers. They lift objects or people from a single image into 3D rather than segmenting them.

**SAM 3D Objects** ([GitHub](https://github.com/facebookresearch/sam-3d-objects), paper [SAM 3D: 3Dfy Anything in Images](https://arxiv.org/abs/2511.16624)) reconstructs an object's geometry, texture and layout from a single image. You give it an image plus a mask of the object, for example one produced by SAM 3, and it returns a 3D model; the quick-start exports a Gaussian splat. The paper reports at least a 5:1 win rate in human preference tests on real-world objects and scenes, and it targets natural images with occlusion and clutter.

**SAM 3D Body** ([GitHub](https://github.com/facebookresearch/sam-3d-body), paper [SAM 3D Body: Robust Full-Body Human Mesh Recovery](https://arxiv.org/abs/2602.15989)) is a promptable model for single-image, full-body human mesh recovery. It estimates the pose of the body, feet and hands using Meta's **Momentum Human Rig (MHR)**, a parametric mesh that separates skeletal structure from surface shape. Like the SAM family, it accepts optional prompts: 2D keypoints and masks.

| | SAM 3 | SAM 3D Objects | SAM 3D Body |
|---|---|---|---|
| Input | Image or video + concept or visual prompt | Single image + object mask | Single image (+ optional keypoints or mask) |
| Output | 2D masks and instance IDs | 3D shape, texture, layout | 3D human mesh (MHR) |
| License | SAM License | SAM License | SAM License |

On OpenRobotics both SAM 3D models are in the catalog but not yet served by a live worker. The [3D reconstruction hub](https://www.openrobotics.dev/models/category/3d-reconstruction) lists what you can call today.

## Is SAM 3 open source? The SAM License

The weights and code are public, but under Meta's own **SAM License** (last updated November 19, 2025), not Apache-2.0 like SAM and SAM 2. The [license text](https://github.com/facebookresearch/sam3/blob/main/LICENSE) grants a "non-exclusive, worldwide, non-transferable and royalty-free limited license" to use, reproduce, distribute, modify and create derivative works. Among its conditions:

- redistributions must carry the same agreement
- research publications must acknowledge use of the SAM Materials
- compliance with trade controls: no use for activities subject to ITAR or end uses prohibited by trade controls, which the license says include military or warfare, nuclear, espionage and weapons uses

Commercial use is not excluded. The checkpoints on [Hugging Face](https://huggingface.co/facebook/sam3) are gated: you request access and authenticate before downloading. SAM 3D Objects and SAM 3D Body are under the same SAM License. As with any model license, read the full text before you ship.

## Running SAM 3 yourself

The [GitHub README](https://github.com/facebookresearch/sam3) lists Python 3.12+, PyTorch 2.7+ and a CUDA GPU with CUDA 12.6+ as prerequisites. The image API sets an image once and then prompts it with text:

```python
from PIL import Image
from sam3.model_builder import build_sam3_image_model
from sam3.model.sam3_image_processor import Sam3Processor

model = build_sam3_image_model()
processor = Sam3Processor(model)
state = processor.set_image(Image.open("kitchen.jpg"))
output = processor.set_text_prompt(state=state, prompt="mug")
masks, boxes, scores = output["masks"], output["boxes"], output["scores"]
```

For video, `build_sam3_video_predictor()` opens a session on an MP4 or a folder of JPEGs, and you add a text prompt at any frame. The repository's notebooks cover text and box prompts, batched inference, video refinement with points, and a "SAM 3 Agent" that uses SAM 3 as a tool for a multimodal LLM.

## Call SAM 3 by API on OpenRobotics

[SAM 3](https://www.openrobotics.dev/models/meta/sam-3) is live on OpenRobotics through [POST /v1/segment](https://www.openrobotics.dev/docs/api/segment), serving the `facebook/sam3` checkpoint. Send an image and a `text` prompt; you get one mask per instance found.

```bash
curl https://api.openrobotics.dev/v1/segment \
  -H "Authorization: Bearer $OPENROBOTICS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "meta/sam-3",
    "image": "<base64 JPEG or PNG>",
    "text": ["mug", "cutting board"]
  }'
```

What to know about this integration:

- **`text` is a phrase or a list of up to 16 phrases.** The image is encoded once and every phrase reuses its features, so asking for several concepts costs one image pass.
- **Every instance comes back.** Each entry in `masks` has `score`, `box` (`[x0, y0, x1, y1]` in pixels), `area` (pixels), `rle` (uncompressed, column-major COCO RLE) and `text`, the phrase it answers. Masks are sorted by score, up to 100 per request. A phrase with no match adds nothing.
- **Text only.** Our `meta/sam-3` adapter does concept segmentation from text. It does not take box exemplars, and a request with only `points` or `boxes` returns a 400 that points you to [SAM 2](https://www.openrobotics.dev/models/meta/sam-2), which selects one object per click or box.
- **Single images, no video session.** Each call is independent; there is no persistent object ID across calls.

The [SAM 2 guide](https://www.openrobotics.dev/blog/sam-2) has a tested, dependency-free Python decoder for the RLE format, and it works unchanged on SAM 3 masks. Check the `backend` field in every response to confirm the answer came from the model.

For robotics, a concept mask is usually step one. Pair it with depth from [Depth Anything](https://www.openrobotics.dev/blog/depth-anything) to get object points, or with a grasp or pose model. Other segmenters on the same endpoint, including SAM 2, Grounded SAM 2, EfficientSAM3 and EdgeTAM, are on the [segmentation hub](https://www.openrobotics.dev/models/category/segmentation). Switching between them means changing the `model` string, though the prompt types each accepts differ.

## FAQ

### What is SAM 3?

SAM 3 (Segment Anything Model 3) is Meta's unified model for detecting, segmenting and tracking objects in images and videos from concept prompts: short noun phrases, image exemplars, or both. It returns a mask and an identity for every matching instance. It was published in November 2025.

### What is the difference between SAM 2 and SAM 3?

SAM 2 segments the one object you indicate with a point, box or mask. SAM 3 adds text and exemplar prompts and segments *all* instances of a concept, using a DETR-based detector with a presence head and a tracker derived from SAM 2. SAM 2 is Apache-2.0; SAM 3 uses the SAM License.

### Is SAM 3 open source?

Its code and weights are publicly released under the SAM License, which allows use, modification, redistribution and commercial use, with conditions including trade-control compliance and a ban on military and weapons uses. The Hugging Face checkpoints are gated behind an access request.

### Where can I find the SAM 3 paper, GitHub and Hugging Face model?

The paper is [arXiv 2511.16719](https://arxiv.org/abs/2511.16719), the code is at [github.com/facebookresearch/sam3](https://github.com/facebookresearch/sam3), and the checkpoints are [facebook/sam3](https://huggingface.co/facebook/sam3) and [facebook/sam3.1](https://huggingface.co/facebook/sam3.1) on Hugging Face.

### What are SAM 3D Body and SAM 3D Objects?

They are two separate models in Meta's SAM 3D release. SAM 3D Objects reconstructs an object's 3D shape, texture and layout from a single image and mask. SAM 3D Body recovers a full-body 3D human mesh from a single image. Both are under the SAM License.
