[Integrations](https://spiral.ai/integrations) › [Claude Code](https://spiral.ai/integrations/claude-code) › [Sa2VA 8B video segmentation](https://spiral.ai/integrations/claude-code/sa2va-8b-video-segmentation)

# How to Use Sa2VA 8B video segmentation in Claude Code

Sa2VA 8B returns a text answer and segmentation mask videos for a supplied clip. Use it to evaluate video object segmentation with the model that scored 58.9 on MeVIS versus 4B's 55.9.

|  |  |
| --- | --- |
| Model | Sa2VA 8B video segmentation |
| Available through | fal |
| Category | Data |
| Price | Up to $6.24 per run at the default inputs for 60 seconds of input. |
| Returns | text |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Sa2VA 8B video segmentation in Claude Code

- Use Sa2VA 8B video segmentation on the supplied Blender Foundation Sintel trailer excerpt. Request a scene description with masks for the objects discussed, then save the results as review fixtures in this repository.
- Use Sa2VA 8B video segmentation on the supplied 10-second Big Buck Bunny excerpt. Request a description of visible actions and corresponding object masks, then display the returned text and mask videos in this project's media viewer.
- Use Sa2VA 8B video segmentation to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Sa2VA 8B video segmentation and tell me what changed since last week.
- Check Sa2VA 8B video segmentation and summarize what you find in three bullet points.

## How to set up Sa2VA 8B video segmentation in Claude Code

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the hosted server**: This adds Spiral to the current project. Add `--scope user` to use it in every project.

```bash
claude mcp add --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `claude`, type `/mcp`, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.

### Use the Spiral skill

1. **Send Claude Code this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Sa2VA 8B video segmentation**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "fal",
    "model": "fal-ai/sa2va/8b/video",
    "input": {
      "prompt": "Could you please give me a brief description of the video? Please respond with interleaved segmentation masks for the corresponding parts of the answer.",
      "video_url": "https://drive.google.com/uc?id=1iOFYbNITYwrebBBp9kaEGhBndFSRLz8k"
    }
  }'
```

Then paste one of the prompts above: Claude Code finds Sa2VA 8B video segmentation on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/claude-code

## Sa2VA 8B video segmentation tools and prices

- [Sa2VA 8B Video · Vision](https://spiral.ai/tools/fal/fal-ai/sa2va/8b/video) (fal): $0.104 per second.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| num_frames_to_sample | 5 to 100 | — | Number of frames to sample from the video. Defaults to 32 if not provided. Minimum 5, maximum 100. |

## What can you do with Sa2VA 8B video segmentation in Claude Code?

Build a media review screen that places Sa2VA descriptions beside the corresponding object masks. A coding agent can work with your project's image and video assets and add the returned results to an annotation review workflow.

### Draft visual descriptions

Ask Sa2VA to describe a product photo or demonstration clip, then use the answer as a draft for a media caption.

### Prepare annotation drafts

Request object descriptions with corresponding masks for an image or video dataset. Give annotators the text and masks together for review.

### Catalog product media

Describe visible products, colors, and surroundings in catalog photos and demonstration videos. Use the descriptions to draft searchable asset labels.

### Prepare masks for editing

Name the object an editor needs to isolate and request its segmentation mask. Review the returned image mask or mask video before using it in an editing workflow.

### Review generated media

Ask specific questions about objects and their relationships in generated stills or clips. Compare the answers and masks with the creative brief during review.

### Create visual teaching material

Use licensed illustrations or animation clips to draft object descriptions and visual questions. Request matching masks to highlight the regions discussed in a lesson.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All Claude Code guides](https://spiral.ai/integrations/claude-code)

## Sa2VA 8B video segmentation in other agents

- [Amp](https://spiral.ai/integrations/amp/sa2va-8b-video-segmentation)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/sa2va-8b-video-segmentation)
- [Claude](https://spiral.ai/integrations/claude-desktop/sa2va-8b-video-segmentation)
- [Cline](https://spiral.ai/integrations/cline/sa2va-8b-video-segmentation)
- [Codex](https://spiral.ai/integrations/codex/sa2va-8b-video-segmentation)
- [Cursor](https://spiral.ai/integrations/cursor/sa2va-8b-video-segmentation)
- [Devin](https://spiral.ai/integrations/devin/sa2va-8b-video-segmentation)
- [dots](https://spiral.ai/integrations/dots/sa2va-8b-video-segmentation)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/sa2va-8b-video-segmentation)
- [Gemini](https://spiral.ai/integrations/gemini/sa2va-8b-video-segmentation)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/sa2va-8b-video-segmentation)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/sa2va-8b-video-segmentation)
- [goose](https://spiral.ai/integrations/goose/sa2va-8b-video-segmentation)
- [Grok](https://spiral.ai/integrations/grok/sa2va-8b-video-segmentation)
- [Grok Build](https://spiral.ai/integrations/grok-build/sa2va-8b-video-segmentation)
- [Hermes](https://spiral.ai/integrations/hermes/sa2va-8b-video-segmentation)
- [Instinct](https://spiral.ai/integrations/instinct/sa2va-8b-video-segmentation)
- [Manus](https://spiral.ai/integrations/manus/sa2va-8b-video-segmentation)
- [Muse](https://spiral.ai/integrations/muse/sa2va-8b-video-segmentation)
- [Muse Code](https://spiral.ai/integrations/muse-code/sa2va-8b-video-segmentation)
- [n8n](https://spiral.ai/integrations/n8n/sa2va-8b-video-segmentation)
- [Notion](https://spiral.ai/integrations/notion/sa2va-8b-video-segmentation)
- [OpenClaw](https://spiral.ai/integrations/openclaw/sa2va-8b-video-segmentation)
- [opencode](https://spiral.ai/integrations/opencode/sa2va-8b-video-segmentation)
- [Perplexity](https://spiral.ai/integrations/perplexity/sa2va-8b-video-segmentation)
- [Raycast](https://spiral.ai/integrations/raycast/sa2va-8b-video-segmentation)
- [VS Code](https://spiral.ai/integrations/vscode/sa2va-8b-video-segmentation)
- [Windsurf](https://spiral.ai/integrations/windsurf/sa2va-8b-video-segmentation)
- [Zapier](https://spiral.ai/integrations/zapier/sa2va-8b-video-segmentation)

## More Claude Code guides

- [Sa2VA 8B image segmentation](https://spiral.ai/integrations/claude-code/sa2va-8b-image-segmentation)
- [fal NSFW image check](https://spiral.ai/integrations/claude-code/fal-nsfw-image-check)
- [Sa2VA 4B video segmentation](https://spiral.ai/integrations/claude-code/sa2va-4b-video-segmentation)
- [fal image NSFW probability](https://spiral.ai/integrations/claude-code/fal-image-nsfw-probability)
- [Sa2VA 4B image segmentation](https://spiral.ai/integrations/claude-code/sa2va-4b-image-segmentation)
- [fal video analysis](https://spiral.ai/integrations/claude-code/fal-video-analysis)

## Questions about Sa2VA 8B video segmentation in Claude Code

**Can Claude Code use Sa2VA 8B video segmentation?**

Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run Sa2VA 8B video segmentation like any built-in tool.

**How much does Sa2VA 8B video segmentation cost in Claude Code?**

Up to $6.24 per run at the default inputs for 60 seconds of input. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Claude Code plan is separate.

**Do I need a fal account to use Sa2VA 8B video segmentation in Claude Code?**

No. Spiral runs Sa2VA 8B video segmentation on its own fal account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Sa2VA 8B video segmentation in Claude Code?**

About two minutes: add the hosted server, then sign in.

**Does Claude Code wait while Sa2VA 8B video segmentation runs?**

Sa2VA 8B video segmentation runs in the background. Claude Code starts the run, checks on it and gives you the text when it's ready.

**What does Sa2VA return besides a description?**

Its documented outputs include generated text and segmentation masks. Image analysis returns image masks; video analysis returns mask video files.

**Can Sa2VA fetch media behind a login?**

Externally hosted media URLs must be publicly accessible. A link that requires a website login falls outside that documented boundary.

**How do the published 4B and 8B results compare?**

ByteDance reports MMBench scores of 81.8 for 4B and 84.4 for 8B. On the MeVIS video segmentation benchmark, it reports 55.9 and 58.9 respectively; these are benchmark scores, not accuracy percentages for your media.

**How should I ask for segmentation masks?**

Explicitly request masks for the objects discussed in the answer. ByteDance's example asks for interleaved segmentation masks corresponding to parts of the description.

**Which scenes need closer review?**

The Sa2VA paper identifies occlusion and long referring descriptions as challenges. It also calls out longer videos with camera motion, so review those results closely before using the masks as annotations.

