Comparison · 8 models · 5 identical tasks
Segment Anything Alternatives, Compared on the Same Tasks Eight options, from SAM 3.1 to YOLOE-26, Florence-2, Gemini and EdgeTAM, judged on the same five jobs. Here’s which one fits each.
Method
The Five Sample Tasks
Every option is judged against the same jobs, so you can compare like with like.
- 1Click cut-outClick a mug on a desk photo and export a clean cut-out.
- 2Find every hard hatMask every hard hat on a building-site photo from a text prompt.
- 3Track players in videoFollow every player through a 30-second clip with stable IDs.
- 4Run live on a phoneSegment or track on the device itself, without a server.
- 5Describe one objectMask “the person holding the red umbrella” and nobody else.
Ratings come from each model’s published capabilities, benchmarks and documentation, not from timed runs on our own hardware. Always test your top two picks on your own images.
The eight options
SAM 3.1
Meta’s current model: clicks, text and example prompts, every match tracked with IDs. The baseline for this page.
SAM LicenseSAM 2.1
Click, box or mask prompts for images and video, in four sizes from 38.9M to 224.4M parameters.
Apache 2.0Grounded SAM 2
A pipeline: Grounding DINO (or DINO-X / Florence-2) finds boxes from text, SAM 2 masks and tracks them.
Apache 2.0 *YOLOE-26
Ultralytics’ real-time open-vocabulary segmenter: text, visual and prompt-free modes in five sizes (n–x).
AGPL-3.0 / EnterpriseFlorence-2
Microsoft’s 0.23B / 0.77B vision-language model; segmentation is one of many tasks, via phrase and referring prompts.
MITGemini API
Google’s multimodal models can return a box, label and probability-map mask for objects you describe.
Paid APIEdgeTAM
Meta’s on-device take on SAM 2 for video: 16 FPS on an iPhone 15 Pro Max.
Open sourceMobileSAM / EfficientSAM
Lightweight SAM 1-style models for fast click and box prompts on small GPUs and devices.
Open source* Grounding DINO and SAM 2 are Apache 2.0; the stronger Grounding DINO 1.5/1.6 and DINO-X detectors need an API token. Also see SAM 2, SAM 3 and SAM 3.1.
Scorecard
Results Across All Five Tasks
Three green dots means the model is built for the task; one amber dot means it needs a workaround.
| Model | Click cut-out | Find every hard hat | Track players in video | Run live on a phone | “The person with the red umbrella” |
|---|---|---|---|---|---|
| SAM 3.1 | Strong | Strong | Strong | Not suited | Works |
| SAM 2.1 | Strong | Not suited | Works | Workaround | Not suited |
| Grounded SAM 2 | Strong | Works | Works | Not suited | Workaround |
| YOLOE-26 | Workaround | Works | Works | Strong | Workaround |
| Florence-2 | Workaround | Workaround | Not suited | Workaround | Works |
| Gemini API | Not suited | Works | Not suited | Not suited | Strong |
| EdgeTAM | Works | Not suited | Works | Strong | Not suited |
| MobileSAM / EfficientSAM | Works | Not suited | Not suited | Strong | Not suited |
Task 1
Click Cut-out: Click a Mug, Export It
The classic Segment Anything job. Most SAM-family models do it well; language models don’t take clicks.
- StrongSAM 3.1 / SAM 2.1: click, refine with more clicks, sharp masks. SAM 3 beats SAM 2 on Meta’s interactive benchmark.
- StrongGrounded SAM 2: uses SAM 2 underneath, so clicks work the same.
- WorksMobileSAM / EfficientSAM: same click flow, much smaller; slightly softer edges (MobileSAM ~12 ms per image on a GPU).
- WorksEdgeTAM: SAM 2-style prompts on a phone, a little less accurate.
- WorkaroundYOLOE-26 / Florence-2: box-style visual or region prompts, not click-and-refine.
- Not suitedGemini API: text only; no click input.
Need ultra-clean hair or wire edges? HQ-SAM adds a high-quality output token to SAM for finer boundaries.
Task 2
Find Every Hard Hat
Type one class name, get a mask for each instance. This is where alternatives split most.
- StrongSAM 3.1: one model, one prompt; every hat gets a mask, box and score.
- WorksYOLOE-26: very fast with text prompts (YOLOE-26x: 40.6 AP on LVIS minival); masks less detailed than SAM 3.
- WorksGrounded SAM 2: detector boxes → SAM 2 masks; two models to install and tune.
- WorksGemini API: returns masks for described objects; slower, paid per call, coarser edges.
- WorkaroundFlorence-2: phrase segmentation returns polygons; may merge or miss instances.
- Not suitedSAM 2.1 / EdgeTAM / MobileSAM: no text prompts; add a detector first.
Task 3
Track Players Through a 30-second Clip
Keeping the same ID through crossings and occlusion needs real video memory.
- StrongSAM 3.1: “player” finds and tracks everyone; Object Multiplex handles up to 16 per pass (SA-V J&F 85.1).
- WorksSAM 2.1: strong memory tracker, but you click each player first.
- WorksGrounded SAM 2: text in, SAM 2 tracking out; its continuous-ID mode is still marked as not fully stable.
- WorksEdgeTAM: click each player; runs on the phone (SA-V test J&F 71.7).
- WorksYOLOE-26: per-frame masks plus a tracker; fast, but IDs can swap in crowds.
- Not suitedFlorence-2 / Gemini / MobileSAM: image models; no video memory.
More: video segmentation guide
Task 4
Run Live on a Phone
SAM 3 is a server model. On-device work needs a model built for it.
- StrongEdgeTAM: 16 FPS video tracking on an iPhone 15 Pro Max, versus about 1 FPS for the smallest SAM 2.
- StrongYOLOE-26: real-time sizes (n, s) and exports to 19 edge and mobile runtimes.
- StrongMobileSAM / EfficientSAM: under 10M (MobileSAM) or 25M (EfficientSAM-S) parameters for click and box prompts.
- WorkaroundSAM 2.1 Tiny / Florence-2 base: possible on strong devices, slow on phones.
- Not suitedSAM 3.1 / Grounded SAM 2 / Gemini: need a GPU server or cloud API.
Task 5
Mask “the Person Holding the Red Umbrella”
This needs language reasoning about relationships, not just a class name.
- StrongGemini API: built for conversational segmentation of described objects; check masks, as output format can vary.
- WorksFlorence-2: has a referring-expression segmentation task; small and MIT-licensed.
- WorksSAM 3.1: strong on short phrases (“red umbrella”); for full sentences use SAM 3 Agent with a multimodal LLM.
- WorkaroundGrounded SAM 2 / YOLOE-26: handle short phrases; long descriptions often pick the wrong person.
- Not suitedSAM 2.1 / EdgeTAM / MobileSAM: no language input.
Tips: SAM 3 prompts guide
Size and speed
Model Size at a Glance
Smaller models are cheaper and faster to serve, but usually less accurate on hard scenes.
- MobileSAM: 9.66M parameters, ~12 ms per image on a GPU, versus ~456 ms for the original SAM.
- EfficientSAM-S: 25M parameters, about 47 images per second on an A100, 44.4 vs 46.5 COCO AP for SAM.
- SAM 2.1: 38.9M–224.4M, 39.5–91.2 FPS on an A100.
- Florence-2: 0.23B and 0.77B; runs on a single consumer GPU.
- SAM 3 / 3.1: ~848M; ~30 ms per image on an H200, ~32 FPS video on an H100 (3.1).
- YOLOE-26: five sizes, built on YOLO26’s NMS-free, edge-first design.
Details: all Meta SAM models · SAM 3 vs SAM 2
Licences and cost
Licences and Running Costs
| Model | Licence | How you pay | Watch out for |
|---|---|---|---|
| SAM 3.1 | SAM License | Your GPU, or a hosted API | Use restrictions; gated weights |
| SAM 2.1 | Apache 2.0 | Your GPU | No text prompts |
| Grounded SAM 2 | Apache 2.0 (base models) | Your GPU; API token for DINO-X / GD 1.5+ | Two models to maintain |
| YOLOE-26 | AGPL-3.0 or Enterprise | Free if you open-source; paid licence otherwise | AGPL covers trained models too |
| Florence-2 | MIT | Your GPU | Coarser masks |
| Gemini API | Google API terms | Per token / per call | Images leave your network; output can vary |
| EdgeTAM, MobileSAM, EfficientSAM | Open source (check each repo) | Runs on device | Lower accuracy than server models |
Not legal advice. SAM pricing on hosted platforms: pricing guide · SAM terms summary: terms
How to choose
Which Alternative Should You Use?
Answer two questions, then check licence and budget.
- Best all-rounder for text + video: SAM 3.1.
- Clicks only, permissive licence: SAM 2.1.
- Real-time on edge with text: YOLOE-26 (mind AGPL).
- Phone video tracking: EdgeTAM.
- Long descriptions, no GPU: Gemini API.
- Small, MIT, multi-task: Florence-2.
- Fixed classes (road, sky, car) on every pixel: a closed-set model such as Mask2Former or OneFormer, trained on your labels.
Try SAM 3 first: playground · Known gaps: limitations
Questions
Segment Anything Alternatives FAQ
What is the best alternative to Segment Anything?
It depends on the task. For text-prompted masks in one model, SAM 3 is still the strongest. For real-time edge use, YOLOE-26 or MobileSAM. For phones and video, EdgeTAM. For complex descriptions, Gemini or Florence-2. For an Apache-licensed text pipeline, Grounded SAM 2.
Is there a faster alternative to SAM?
Yes. MobileSAM runs a full SAM-style pipeline in about 12 ms per image on a GPU with under 10M parameters, EfficientSAM-S processes about 47 images per second on an A100, and EdgeTAM tracks video at 16 FPS on an iPhone 15 Pro Max.
Which alternative supports text prompts?
SAM 3 does natively. Grounded SAM 2 adds text through a Grounding DINO detector, YOLOE-26 accepts text, example and prompt-free modes, Florence-2 has phrase and referring-expression segmentation, and the Gemini API can return masks for described objects.
Can I use a Segment Anything alternative commercially?
Usually, but licences differ. SAM 2 and Florence-2 use permissive licences (Apache 2.0 and MIT), SAM 3 uses the SAM License, Ultralytics YOLOE is AGPL-3.0 unless you buy an Enterprise licence, and Gemini is a paid API under Google’s terms. Check each licence before shipping.
Which alternative works on a phone?
EdgeTAM is built for on-device video tracking at 16 FPS on an iPhone 15 Pro Max. MobileSAM and EfficientSAM are small image models, and YOLOE-26 exports to many mobile and edge runtimes.
Are these ratings from your own tests?
No. Ratings are based on each model’s published capabilities, benchmarks and documentation for the same five tasks. Test the top two options on your own images before choosing.