Meta SAM 2 Video Segmentation
Apache-2.0 temporal video rotoscoping engine ($0 local GPU or ~$0.01–$0.05/clip on fal.ai) that tracks any clicked object across frames to emit clean mask videos.
Meta SAM 2 (Segment Anything Model 2 / SAM 2.1, open-weight Apache-2.0 at github.com/facebookresearch/sam2 and hosted serverless at fal-ai/sam2/video) replaces hours of manual keyframe rotoscoping with single-click point or bounding-box prompts. Drop one positive click on a boom mic, bystander, car, or actor in frame 1, and SAM 2 tracks that object across occlusions and camera pans—emitting a crisp temporal mask video ready to pipe directly into Alibaba Wan VACE 14B ($0.08/sec) for clean-plate removal or DaVinci Resolve for green-screen-free VFX compositing.
Quick Cost Estimator ($0.00 API)
When should you choose Meta SAM 2—and what are its limits?
Best fit for Meta SAM 2
- Generating pixel-accurate animated binary masks in seconds to feed Wan VACE 14B object removal and video inpainting workflows
- Replacing manual spline rotoscoping for foreground text-behind-subject typography effects in DaVinci Resolve, Premiere, or CapCut
- Isolating moving products or actors cleanly for selective color grading, background blur, or green-screen-free compositing
- Private offline VFX studios requiring permissive Apache-2.0 weights with zero cloud footage uploads
Watch out for (limitations)
- Produces hard binary segmentation masks rather than continuous semi-transparent hair/smoke alpha mattes—feather edges or pair with Bria RMBG 2.0 / BiRefNet v2 for wispy portraits
- Tight object masks intentionally exclude cast floor shadows and mirror reflections; always run an FFmpeg 8–16px dilation pass before object-removal inpainting
- Fast motion blur or total multi-second occlusion can drop track lock unless you add a second corrective positive point prompt at the re-entry frame
- Variable-frame-rate (VFR) smartphone videos cause matte-to-plate frame drift unless transcoded to constant frame rate (CFR) first
How much does Meta SAM 2 cost across tiers?
Standardized rate is $0.00 unlimited local GPU · ~$0.01–$0.05 per 5s clip on fal.ai. Verified against official pricing documentation on Dec 1, 2026:
| Tier / Variant | Verified rate | What you get |
|---|---|---|
| Open-Weight Local Execution (Apache-2.0 · SAM 2.1 Hiera Large / Base+) | $0.00 / clip (local 8GB–16GB VRAM GPU or Apple Silicon) | Runs smoothly in Python, ComfyUI-SAM2 nodes, or VFX plugins with zero usage fees and 100% private offline footage handling. |
| fal.ai Serverless Compute-Metered Endpoint (fal-ai/sam2/video) | Compute-second metered (~$0.01–$0.05 per 5s clip) | No GPU setup required; returns direct mask video and optional boundingbox_zip ready to chain into fal-ai/wan-vace-14b. |
Full specs, audio support & commercial rights
| Specification | Verified value |
|---|---|
| Maker & version | Meta FAIR — SAM 2.1 Hiera Large (fal-ai/sam2/video) |
| Release date | Jul 29, 2024 |
| Max clip length | Shot-length video clips (3s–30s+ depending on GPU memory or serverless compute budget) |
| Resolution & frame rate | Matches input 720p / 1080p / 4K video dimensions (internal 1024px mask encoder) · Frame-accurate tracking across 24/25/30/60fps CFR clips |
| Aspect ratios | Preserves Exact Input Aspect Ratio (16:9, 9:16, 4:3, 2.39:1) |
| Reference & control limits | video_url + prompts (positive/negative x,y point coordinates with frame_index and object_id) + box_prompts + apply_mask (boolean) + mask_url + boundingbox_zip |
| Built-in sound | No — Spatial-temporal segmentation matte generator (outputs visual mask video) |
| Watermark & provenance | Zero watermark on Apache-2.0 local and fal.ai outputs |
| Commercial rights | 100% permissive Apache-2.0 commercial rights for VFX, agency, broadcast, and SaaS embedding |
| Where to access | GitHub / Hugging Face Apache-2.0 weights, ComfyUI-SAM2, fal.ai API (fal-ai/sam2/video) |
Zero royalty or non-commercial traps—safe for commercial film VFX, agencies, and SaaS pipelines.
Add positive (label: 1) and negative (label: 0) clicks on frame 0 to isolate complex overlapping objects.
Dilate the SAM 2 matte by 8–16px and pass straight to Wan VACE 14B ($0.08/sec) for clean removal.
Serverless compute-metered endpoint avoids local CUDA setup on occasional post-production jobs.
Workflows using Meta SAM 2
Prompts & skills for Meta SAM 2
Compare Meta SAM 2 side-by-side
Frequently Asked Questions
- Is Meta SAM 2 free for commercial video editing and VFX work?
- Yes. Meta released SAM 2 and SAM 2.1 weights and code under the permissive Apache-2.0 license, allowing unlimited commercial VFX, film, agency, and SaaS usage at $0 API cost on local GPUs—or pennies per clip on serverless fal-ai/sam2/video.
- Why should I dilate a SAM 2 mask before sending it to Wan VACE 14B?
- SAM 2 tracks the crisp boundary of the physical object itself, leaving its contact shadow and edge fringe outside the white mask. Expanding (dilating) the binary matte by 8–16 pixels via FFmpeg ensures Wan VACE 14B erases both the object and its shadow footprint without leaving dark ghost smudges.
- How is Meta SAM 2 different from Bria RMBG 2.0 or BiRefNet v2?
- Bria RMBG 2.0 and BiRefNet v2 perform automatic salient-foreground alpha matting on still images (preserving soft semi-transparent hair and glass edges). Meta SAM 2 is an interactive promptable video tracker that lets you click any arbitrary background prop, mic stand, or car and track its silhouette temporally across an entire video clip.
- How do I fix a SAM 2 mask that leaks onto an adjacent object?
- Add one or two negative point prompts (label: 0) directly on the unwanted adjacent object on the frame where leakage begins. SAM 2 immediately snaps the matte boundary back to the target object for the remainder of the shot.