[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Wan 2.2 FastWan 5B Text to Video](https://spiral.ai/integrations/opencode/wan-2-2-fastwan-5b-text-to-video)

# How to Use Wan 2.2 FastWan 5B Text to Video in opencode

Use Wan 2.2 FastWan 5B Text to Video for short scene concepts, camera studies, and B-roll from written descriptions. Compared with Wan 2.2 TI2V-5B, it uses distillation to reduce generation steps, with a documented five-second, 720p target.

|  |  |
| --- | --- |
| Model | Wan 2.2 FastWan 5B Text to Video |
| Available through | fal |
| Category | Video |
| Price | `resolution`: 480p $0.01625, 580p $0.024375, 720p (default) $0.0325 per video. |
| Returns | video |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Wan 2.2 FastWan 5B Text to Video in opencode

- Read the homepage brief in this project, then use Wan 2.2 FastWan 5B Text to Video to create a five-second 720p background concept at 24 frames per second. Describe one subject, gentle movement, soft lighting, and a fixed camera.
- Use Wan 2.2 FastWan 5B Text to Video to turn the opening beat in our storyboard into a five-second 720p motion sketch. Include the subject, setting, action, framing, and one camera direction.
- Read our campaign brief and use Wan 2.2 FastWan 5B Text to Video to generate three five-second 720p lighting studies. Keep the seed, subject, action, and camera fixed; change only the light source.
- Use Wan 2.2 FastWan 5B Text to Video to create a five-second 720p scene of wind moving through tall grass for this project's landing page. Use a low camera angle and soft morning light, then place the result in the project's media folder.
- From the shot description in our creative brief, use Wan 2.2 FastWan 5B Text to Video to compare the current guidance setting with a small increase. Keep the seed and five-second 720p output settings fixed, and prepare both results for visual review.

## How to set up Wan 2.2 FastWan 5B Text to Video 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 Wan 2.2 FastWan 5B Text to Video**: 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/wan/v2.2-5b/text-to-video/fast-wan",
    "input": {
      "prompt": "A medium shot establishes a modern, minimalist office setting: clean lines, muted grey walls, and polished wood surfaces. The focus shifts to a close-up on a…"
    }
  }'
```

Then paste one of the prompts above: opencode finds Wan 2.2 FastWan 5B Text to Video on Spiral, shows the price and runs it.

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

## Wan 2.2 FastWan 5B Text to Video tools and prices

- [Wan FastWan 5B · Text to Video](https://spiral.ai/tools/fal/fal-ai/wan/v2.2-5b/text-to-video/fast-wan) (fal): `resolution`: 480p $0.01625, 580p $0.024375, 720p (default) $0.0325 per video.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| negative_prompt |  |  | Negative prompt for video generation. |
| num_frames | 17 to 161 | 81 | Number of frames to generate. Must be between 17 to 161 (inclusive). |
| frames_per_second | 4 to 60 | 24 | Frames per second of the generated video. Must be between 4 to 60. When using interpolation and `adjust_fps_for_interpolation` is set to true (default true,) the final FPS will be multiplied by the number of interpolated frames plus one. For example, if the generated frames per second is 16 and the number of interpolated frames is 1, the final frames per second will be 32. If `adjust_fps_for_interpolation` is set to false, this value will be used as-is. |
| seed |  | — | Random seed for reproducibility. If None, a random seed is chosen. |
| resolution | 480p, 580p, 720p | 720p | Resolution of the generated video (580p or 720p). |
| aspect_ratio | 16:9, 9:16, 1:1 | 16:9 | Aspect ratio of the generated video (16:9 or 9:16). |

## What can you do with Wan 2.2 FastWan 5B Text to Video in opencode?

Turn project briefs and storyboard notes into short motion concepts with Wan 2.2 FastWan 5B. Use the agent to translate written requirements into specific shots and organize the results for review.

### B-roll for an explainer

Generate a short shot of steam rising from a cup, rain hitting a window, or leaves moving in the wind. Describe the movement and framing before adding it to an edit.

### Camera movement studies

Try a static composition, a slow push, and a lateral tracking shot of the same described scene. Review the clips before choosing a direction for production.

### Lighting tests

Explore how a scene reads under soft window light, strong backlight, or an overhead lamp. Keep the subject and action consistent across the tests.

### Storyboard motion sketches

Turn a written storyboard beat into a short moving concept. Give each beat its own subject, setting, action, and camera description.

### Website background concepts

Create restrained motion studies such as drifting clouds or gently moving foliage. Review the result in the layout before selecting a background.

### Social video inserts

Create one short visual beat for a larger social edit, such as a bicycle passing through a sunlit street. Add titles and other editorial elements afterward.

### Fictional product scene concepts

Describe an unbranded object, its surroundings, and a small movement to explore an advertising idea. Use the clip to assess composition and mood.

## Overview

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

## Wan 2.2 FastWan 5B Text to Video in other agents

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

## More opencode guides

- [Wan 2.2 Animate Replace](https://spiral.ai/integrations/opencode/wan-2-2-animate-replace)
- [Wan 2.2 S2V 14B](https://spiral.ai/integrations/opencode/wan-2-2-s2v-14b)
- [Wan 2.2 Animate Move](https://spiral.ai/integrations/opencode/wan-2-2-animate-move)
- [Wan 2.5 Image to Video](https://spiral.ai/integrations/opencode/wan-2-5-image-to-video)
- [Wan 2.2 A14B Video to Video](https://spiral.ai/integrations/opencode/wan-2-2-a14b-video-to-video)
- [Wan 2.5 Text to Video](https://spiral.ai/integrations/opencode/wan-2-5-text-to-video)

## Questions about Wan 2.2 FastWan 5B Text to Video in opencode

**Can opencode use Wan 2.2 FastWan 5B Text to Video?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Wan 2.2 FastWan 5B Text to Video like any built-in tool.

**How much does Wan 2.2 FastWan 5B Text to Video cost in opencode?**

`resolution`: 480p $0.01625, 580p $0.024375, 720p (default) $0.0325 per video. 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 Wan 2.2 FastWan 5B Text to Video in opencode?**

No. Spiral runs Wan 2.2 FastWan 5B Text to Video on its own fal account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Wan 2.2 FastWan 5B Text to Video in opencode?**

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

**Does opencode wait while Wan 2.2 FastWan 5B Text to Video runs?**

Wan 2.2 FastWan 5B Text to Video runs in the background. opencode starts the run, checks on it and gives you the video when it's ready.

**What is Wan 2.2 FastWan 5B useful for?**

Try it for short scene concepts, B-roll, and camera or lighting studies from text. Its distilled design makes it a practical choice for exploring several treatments of one shot.

**How long should I make a clip?**

Plan around the documented five-second target at 24 frames per second. For a longer sequence, generate individual shots and assemble them afterward.

**What resolution should I start with?**

Start with 720p. The maker documents training at 1280 by 704 pixels and warns that other output sizes may reduce quality.

**How should I write a Wan 2.2 FastWan 5B prompt?**

Describe the subject, setting, and visible movement, then add framing, lighting, and a camera direction. For example, ask for a close-up of a ceramic cup with rising steam, soft window light, and a slow camera push.

**Will higher guidance always improve the result?**

Higher guidance can make the video follow your description more closely, but it can also reduce visual quality. Compare a small increase against your original result before raising it further.

