# SAM 2

> Promptable visual segmentation model for images and real-time video tracking.

Meta's Segment Anything Model 2 (SAM 2) is a computer vision foundation model that segments and tracks visual objects across images and video frames. Users can prompt the model with clicks or bounding boxes on a single frame, and it propagates masks throughout the entire video sequence in real time.

Website: https://github.com/facebookresearch/sam2

## What it is for

- Track and isolate moving objects across video frames without manual rotoscoping
- Generate cutouts and green-screen masks for video editing and compositing
- Blur or pixelate specific sensitive subjects across video footage
- Segment multiple objects simultaneously in computer vision pipelines

## Features

- Zero-shot promptable segmentation via clicks, bounding boxes, or masks
- Streaming memory architecture for real-time video tracking
- Multi-object tracking support with independent per-object inference
- Automatic mask generation across entire images
- Pretrained checkpoints ranging from tiny to large
- Official open-source web demo interface and backend code

## Pricing

Open source. Free and open source under Apache 2.0

## Details

- Type: Web app
- Category: [AI](https://xiry.app/topics/ai.md)
- Open source: yes
- Platforms: Web, Code library, Self-hosted, Linux, Windows
- For: Video editors, AI researchers, and computer vision developers
- Alternative to: Runway, Adobe After Effects Roto Brush
- Tags: computer vision, segmentation, video editing, rotoscoping, object tracking, meta ai

## Why it was saved

- [@mardan_king, 19 October 2024](https://www.instagram.com/reel/DBTaN8Zu6rf/): Eliminates tedious manual rotoscoping by allowing users to isolate, blur, pixelate, or remove objects in video clips in seconds.

## Compare

- [Alternatives to Runway](https://xiry.app/alternatives/runway.md)

## Related

- [Meta SAM 3](https://xiry.app/resources/meta-sam-3): Open-source vision model for zero-shot object segmentation and tracking in video (AI model, Open source)
- [OpusClip](https://xiry.app/resources/opusclip): AI tool that turns long videos into short social clips automatically. (Web app, Freemium)
- [Gling](https://xiry.app/resources/gling): AI video editor that cuts bad takes, silences, and filler words (Desktop app, Freemium)
- [Meta Animated Drawings](https://xiry.app/resources/meta-animated-drawings): Turn static 2D character sketches into animated videos using AI. (Web app, Free)
- [quso.ai](https://xiry.app/resources/quso-ai): Turn long videos and podcasts into short, captioned social media clips (Web app, Freemium)
- [VEED.IO](https://xiry.app/resources/veed-io): Browser-based video editor with automated AI trimming, subtitles, and eye tracking (Web app, Freemium)

Updated 3 October 2026. Page: https://xiry.app/resources/sam-2

Make your own library: Xiry takes your saved reels, tweets, Reddit bookmarks and Watch Later videos, makes them searchable and pulls the useful stuff out, like this library. It's invite-only for now; join the waitlist at https://xiry.app/#waitlist.
