# Segment Anything (SAM 3.1) (slim)

> Segment Anything is Meta's promptable segmentation model family. The newest, SAM 3.1, masks and tracks objects in images and video from a text phrase, boxes, points or masks. Weights are gated on Hugging Face, and Meta Model API hosts it.

- Full: https://www.anchorterminal.com/tools/segment-anything.md (~6,600 tokens) · this version ~1,780 tokens · JSON https://www.anchorterminal.com/tools/segment-anything.json · canonical https://www.anchorterminal.com/tools/segment-anything
- Index: https://www.anchorterminal.com/llms.txt · API: https://www.anchorterminal.com/api/v1/index.json · MCP: https://www.anchorterminal.com/mcp · Updated: 2026-12-01 · pricing https://www.anchorterminal.com/tools/segment-anything#pricing · reviews https://www.anchorterminal.com/tools/segment-anything#reviews
- Licence: CC BY 4.0, credit Anchor Terminal and link this page (https://www.anchorterminal.com/terms/#data)

**F · 34.7/100 · rank #182 of 184 open-weight models · #22 in Computer vision models, APIs & labelling · not agent-ready · confidence medium**


Assessment: Meta's newest promptable segmentation model, which masks and tracks every object matching a text phrase in images and video. The code is current and the licence allows commercial use. Access is the problem, since the checkpoint is a pickle behind manual approval, and Meta's own API is the practical route for most agents.

## Facts

- Kind: Open-weight model · vendor: Meta · category: Computer vision models, APIs & labelling · legal entity: Meta Platforms, Inc., or Meta Platforms Ireland Limited in the EEA and Switzerland, per the SAM License · provenance 53/100
- Packages: huggingface `facebook/sam3.1`, huggingface `facebook/sam3`
- Auth: None · pricing: Free · x402: no · licence: SAM License, a custom Meta licence last updated 19 November 2025, for code and weights. Royalty-free and commercial use allowed, with prohibited uses beyond the law (military, nuclear, espionage, weapons) and terms Meta may change
- Benchmark probes: not run yet, so Performance is pending
- Surface graded: The open-weight SAM 3.1 checkpoint and the code in facebookresearch/sam3, read from the repository (a shallow clone), its release notes and licence, the Hub model page and its metadata for facebook/sam3.1, and Meta's developer docs for the hosted sam-3.1. Nothing was downloaded or run, and no account was made. Earlier releases (SAM 1 and SAM 2, in their own repositories, and SAM 3 in facebook/sam3) are named but not graded
- Model: SAM 3 is a promptable model for images and video. A short noun phrase such as "yellow school bus" returns every matching instance as a box and mask, and boxes, points or masks mark specific objects, which the tracker follows through a video. 848M parameters per the README. SAM 3.1 adds Object Multiplex for joint multi-object tracking
- Files: facebook/sam3.1 holds one 3.5 GB PyTorch pickle checkpoint, sam3.1_multiplex.pt, with config.json and tokeniser files, and a SHA-256 listed for the large file. No safetensors file is in the repository. The code loads checkpoints with weights_only=True in most places
- Access: The Hub reports gated manual on 1 December 2026. The Hub card says the repository hosts only the checkpoints and there is no Transformers integration. It also says no Inference Provider deploys it. Nearly all of the 40 most recent discussions are requests to review or reset a rejected or pending access request, and none shows a reply from a Meta member
- Licence: The SAM License (19 November 2025) grants a royalty-free licence to use, copy and modify, and bars uses subject to trade controls, including military, nuclear, espionage and weapons, bars reverse engineering, ends on a patent claim against Meta, and lets Meta change the terms with immediate effect. Meta gives no support. The package metadata in pyproject.toml lists an MIT classifier, which disagrees with the licence file
- Hosted: Meta Model API serves it as sam-3.1 on POST /v1/responses at $2.50 per 1,000 images and $0.20 per 1,000 video frames, at least 50 frames a video request, with a 3,000 requests a minute limit per team and exponential backoff guidance with Retry-After. Platform readings (status, keys, data use) are the meta-model-api listing's
- Hardware: The README needs Python 3.12, PyTorch 2.7 and a CUDA 12.6 GPU. Meta quotes its speedup on an H100. No lower memory figure is given. Meta publishes no quantised build
- Prices: Segment Anything 3.1 image segmentation (Meta Model API) $0.0025 per image

- Scores: Capability pending, Reach 45, Risk 25, Agent interface 15, Documentation and upkeep 48
- Why:  · Reach, Memory 30, the 3.5 GB checkpoint needs about 4.2 GB with the fifth added. · Risk, File safety 0, a pickle checkpoint and nothing else. · Agent interface, Chat template 10, prompts are given as code. · Documentation and upkeep, Model card 8, no limitations, context length, languages or cut-off.
- Sources: 11, open questions: 6, both in the full twin
- Capabilities: vision.segment, vision.track, vision.detect
- JSON: https://www.anchorterminal.com/api/v1/tools/segment-anything.json · card, about 200 tokens, for choosing between listings: https://www.anchorterminal.com/tools/segment-anything.card.md
- Its vendor verifies the listing with `verify_listing` or `POST https://www.anchorterminal.com/api/v1/verify` (the full twin says how); no effect on the grade.
- Support: https://github.com/facebookresearch/sam3; https://dev.meta.ai/support/; more in the full twin

## Before you call it

1. Request access to facebook/sam3.1 on Hugging Face before anything else and expect a wait. Without a CUDA GPU, call Meta Model API's sam-3.1 instead
2. Install from a clone of facebookresearch/sam3 with pip install -e . on Python 3.12 and PyTorch 2.7. Don't pip install sam3, which is Roboflow's package
3. Send one short noun phrase per request. To find several kinds of object, send several requests, as Meta's hosted docs advise
4. On the hosted API a video request bills at least 50 frames, so batch short clips
5. Pull the latest code before loading SAM 3.1 checkpoints, since the README says they need it

## Connect

```bash
git clone https://github.com/facebookresearch/sam3.git && cd sam3 && pip install -e .
# needs Python 3.12, PyTorch 2.7 and a CUDA GPU. Request access to facebook/sam3.1 on Hugging Face first, then `hf auth login`
```

```bash
# Hosted route on Meta Model API, billed per image or frame
curl -N -X POST "https://api.meta.ai/v1/responses" \
  -H "Authorization: Bearer $MODEL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Accept: text/event-stream" \
  -d '{"model":"sam-3.1","stream":true,"input":[{"type":"message","role":"user","content":[{"type":"input_text","text":"yellow school bus"},{"type":"input_image","image_url":"https://example.com/street.png"}]}]}'
```

## Similar tools

| Tool | Grade | Score | Shared capabilities | Slim |
| --- | --- | --- | --- | --- |
| Supervision | BB | 73.5 | vision.detect, vision.segment, vision.track | https://www.anchorterminal.com/tools/supervision.min.md |
| Roboflow | B | 67.7 | vision.detect, vision.segment, vision.track | https://www.anchorterminal.com/tools/roboflow.min.md |
| Labelbox | B | 66.3 | vision.detect, vision.segment, vision.track | https://www.anchorterminal.com/tools/labelbox.min.md |
| Label Studio | B | 65.4 | vision.detect, vision.segment, vision.track | https://www.anchorterminal.com/tools/label-studio.min.md |
| Encord | C | 56.8 | vision.detect, vision.segment, vision.track | https://www.anchorterminal.com/tools/encord.min.md |


## Panel reviews (0, desk reviews from public material, no calls made)

