Context1 tokens
Price (In / Out)Free / Free
CategoryImage Model
Max Output1 tokens
About SAM 2
SAM 2, or Segment Anything Model 2, is Meta FAIR’s promptable visual segmentation model for images and videos. The official repository provides inference code, SAM 2.1 checkpoints, example notebooks, training resources, and benchmark tables for SA-V, MOSE, and LVOS video object segmentation tasks.
Capabilities
visionimage segmentationvideo segmentationpromptable segmentationopen weights
Input Modalities
imagevideovisual prompts
Output Modalities
segmentation masksmasklets
Technical Details
- API Identifier
- facebook/sam2-hiera-large
- Category
- Image Model
- Context Window
- 1 tokens
- Max Output Tokens
- 1 tokens
Tags
sam-2segment-anythingimage-segmentationvideo-segmentationmetafairopen-weightscomputer-vision
Benchmarks
Performance scores for SAM 2 across standard benchmarks.
SA-V test J&Fofficial SAM 2 README, sam2.1_hiera_large · Sep 2024
79.5%
MOSE val J&Fofficial SAM 2 README, sam2.1_hiera_large · Sep 2024
74.6%
LVOS v2 J&Fofficial SAM 2 README, sam2.1_hiera_large · Sep 2024
81%
Speed FPS A100official SAM 2 README, sam2.1_hiera_large · Sep 2024
39.5%
Pricing
Token pricing for SAM 2 API usage.
Input Tokens
Free
per million tokens
Output Tokens
Free
per million tokens
Pricing Calculator
Input cost$0.00
Output cost$0.00
Estimated monthly cost$0.00
Open checkpoints and code are provided under Apache 2.0 in the official repository; compute costs depend on the user’s hardware or cloud environment.
AI Models by Meta
Large language models from the same organization.
| Model | Context Window | Price (In / Out per M) |
|---|---|---|
| DINOv3Current | 1 | Free / Free |
| Llama Guard 4 12BCurrent | 164K | $0.18 / $0.18 |
| Llama 4 MaverickCurrent | 1.0M | $0.15 / $0.60 |
| Llama 4 ScoutCurrent | 328K | $0.08 / $0.30 |
| Llama Guard 3 8BCurrent | 131K | $0.48 / $0.03 |
Related News
Latest coverage and updates.
AI Costs Spiral as Agentic Systems Burn 1000x More Tokens Than Chatbots
Jun 1, 2026
CNN Sues Perplexity AI Over Copyright Theft of 17000 News Stories
Jun 1, 2026
Meta Cuts 3,200 Bay Area Jobs as AI Restructuring Wave Passes 134,000 US Tech Layoffs in 2026
May 29, 2026
OpenAI Foundation Pledges $250M to Help Workers Navigate AI Disruption
May 28, 2026
Meta Cuts 1400 Washington Jobs as $145B AI Bet Reshapes Its Workforce
May 28, 2026
Chinese AI Models Hit 60% of OpenRouter Usage as Pricing War Threatens OpenAI, Anthropic IPOs
May 26, 2026