---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://framesfield.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
title: "Meta SAM 2 Video Segmentation — Verified Model Specification"
description: "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."
canonical: "https://framesfield.com/specs/sam2-video"
---

# Meta SAM 2 Video Segmentation — Verified Model Specification

> 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.

- **Canonical URL:** https://framesfield.com/specs/sam2-video
- **Maker:** Meta FAIR
- **Version:** SAM 2.1 Hiera Large (fal-ai/sam2/video)
- **Category:** Video Generation
- **Deployment:** Cloud API + Local Weights
- **Release Date:** 2024-07-29
- **Last Verified:** 2026-12-01
- **Official Documentation:** https://fal.ai/models/fal-ai/sam2/video/api
- **Pricing Page:** https://fal.ai/models/fal-ai/sam2/video

## Technical Specifications & API Pricing

| Metric | Verified Value |
| --- | --- |
| API Unit Price | $0.00 local · ~$0.02/clip API (Apache-2.0 local ($0) · fal.ai compute-metered (~$0.01–$0.05/clip)) |
| Standardized Cost | $0.00 unlimited local GPU · ~$0.01–$0.05 per 5s clip on fal.ai |
| Max clip length | Shot-length video clips (3s–30s+ depending on GPU memory or serverless compute budget) |
| Max resolution | Matches input 720p / 1080p / 4K video dimensions (internal 1024px mask encoder) |
| Frame rate | 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 Policy | 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 |
| License | Apache-2.0 (Open Weights) · Hosted Serverless API |
| API Access | GitHub / Hugging Face Apache-2.0 weights, ComfyUI-SAM2, fal.ai API (fal-ai/sam2/video) |

## Pricing Tiers

| Tier | Rate | Notes |
| --- | --- | --- |
| 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. |

## Best Suited For

- 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

## Verified 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

## FAQ

### 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.

## Related Workflows

- [Meta SAM 2 Masking + Wan VACE 14B Video Object Removal Pipeline ($0.42–$0.82 / 5s)](https://framesfield.com/workflows/sam2-masking-and-wan-vace-video-object-removal-pipeline)

## Related Agents & Skills

- [FLUX LoRA Training & Wan VACE 14B fal.ai Skill](https://framesfield.com/skills/flux-lora-training-and-wan-vace-fal-skill)
- [Meta SAM 2 Video Masking & Kling O1 V2V fal.ai Skill](https://framesfield.com/skills/sam2-video-masking-and-kling-o1-v2v-fal-skill)
- [V2V Object Removal & Subject Swap Prompt Builder](https://framesfield.com/skills/v2v-object-removal-and-subject-swap-prompt-builder)
