[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [fal video analysis](https://spiral.ai/integrations/opencode/fal-video-analysis)

# How to Use fal video analysis in opencode

fal video analysis returns a text answer about what happens in a supplied video. Use it to describe scenes, summarize visible actions, or answer a focused question about footage.

|  |  |
| --- | --- |
| Model | fal video analysis |
| Available through | fal |
| Category | Data |
| Price | $0.013 per 5 seconds. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with fal video analysis in opencode

- Use fal video analysis on Big Buck Bunny at https://storage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4. Add its scene summary as a draft entry in this project's video catalog.
- Use fal video analysis on Blender's Sintel at https://storage.googleapis.com/gtv-videos-bucket/sample/Sintel.mp4. Save a plain-language description of the visible action in the project's content directory.
- Use fal video analysis on Blender's Elephants Dream at https://storage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4. Create a reviewable catalog description using the project's existing content format.
- Use fal video analysis on Big Buck Bunny at https://storage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4. Ask about the setting and visible objects, then add the answer beside its entry in our media index.
- Use fal video analysis on Sintel at https://storage.googleapis.com/gtv-videos-bucket/sample/Sintel.mp4. Draft a visual description and place it in this project's accessibility review queue.

## How to set up fal video analysis in opencode

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

### Use Spiral's MCP server

1. **Add the server**: Leave out `--global` to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

```bash
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
```

2. **Sign in**: Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, `/mcps` starts the same sign-in.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode 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 fal video analysis**: 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/video-understanding",
    "input": {
      "video_url": "https://v3.fal.media/files/elephant/mLAMkUTxFMbe2xF0qpLdA_Ll9mDE8webFA6GAu3vD_M_71ee7217db1d4aa4af1d2f1ae060389b.mp4",
      "prompt": "What is happening in this video?"
    }
  }'
```

Then paste one of the prompts above: opencode finds fal video analysis on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## fal video analysis tools and prices

- [Video Understanding](https://spiral.ai/tools/fal/fal-ai/video-understanding) (fal): $0.013 per 5 seconds.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| detailed_analysis |  | false | Whether to request a more detailed analysis of the video |

## What can you do with fal video analysis in opencode?

Build a video catalog with draft descriptions of the action and settings in authorized clips. A coding agent can use fal's text answers to populate reviewable entries in the project's existing catalog.

### Draft video library descriptions

Ask for a short description of each authorized clip's setting and visible action, then review the drafts for a searchable video catalog.

### Review product demonstrations

Ask which product actions appear in a demonstration and compare the answer with the planned demonstration checklist.

### Prepare footage selection notes

Describe the settings, objects, and actions in authorized footage so an editor can shortlist clips for a brief.

### Summarize animation references

Ask for a description of the action and setting in an open film, then use the answer as a starting point for an animation review.

### Draft visual descriptions for accessibility

Request a plain-language description of visible events in an authorized educational clip for an accessibility editor to review.

### Compare advertising footage

Ask the same question of each authorized advertisement, then compare the descriptions of product use and scene setting.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## fal video analysis in other agents

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

## More opencode guides

- [fal image NSFW probability](https://spiral.ai/integrations/opencode/fal-image-nsfw-probability)
- [Artificial Analysis hosting endpoint search](https://spiral.ai/integrations/opencode/artificial-analysis-hosting-endpoint-search)
- [fal NSFW image check](https://spiral.ai/integrations/opencode/fal-nsfw-image-check)
- [Artificial Analysis model details](https://spiral.ai/integrations/opencode/artificial-analysis-model-details)
- [Sa2VA 8B video segmentation](https://spiral.ai/integrations/opencode/sa2va-8b-video-segmentation)
- [Artificial Analysis model hosting comparison](https://spiral.ai/integrations/opencode/artificial-analysis-model-hosting-comparison)

## Questions about fal video analysis in opencode

**Can opencode use fal video analysis?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run fal video analysis like any built-in tool.

**How much does fal video analysis cost in opencode?**

$0.013 per 5 seconds. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

**Do I need a fal account to use fal video analysis in opencode?**

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

**How long does it take to set up fal video analysis in opencode?**

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

**Does opencode wait while fal video analysis runs?**

fal video analysis runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**What does fal return from a video?**

The documented result is a text analysis answering the question asked about the supplied video. Use it for descriptions and focused questions about what happens in the footage.

**Which video formats does fal list?**

The endpoint's playground lists five accepted file types: MP4, MOV, WebM, M4V, and GIF.

**Can fal read a video behind a login?**

fal's documentation requires hosted file URLs to be publicly accessible. A video page that requires a login does not meet that requirement.

**Are the video descriptions guaranteed to be accurate?**

fal's terms explicitly warn that its AI features may generate incorrect information. Review descriptions against the footage before publishing them as factual accounts.

**Does a public video URL give me permission to analyze it?**

Public accessibility satisfies fal's hosted-file requirement, but fal's terms separately require the rights and permissions needed to submit the content. Check those permissions before submitting someone else's footage.

