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

# How to Use Wan 2.2 5B Image to Video in opencode

Wan 2.2 5B Image to Video turns a still into a short moving shot, useful for product photos and illustrated scenes. Unlike Wan 2.2 5B Text to Video, it starts with an image, so your prompt can concentrate on movement.

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

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

- Use Wan 2.2 5B Image to Video to animate the product still in this project's assets. Create a five-second 720p shot at 24 fps with a slow push-in and restrained movement. Keep the prompt focused on motion.
- Use Wan 2.2 5B Image to Video to animate the landscape artwork in this project. Make a five-second 720p clip at 24 fps with drifting clouds and gently swaying foliage. Request a fixed camera and save the video with the other scene assets.
- Animate the image I attach with Wan 2.2 5B Image to Video: slow push-in, leaves moving in the wind. Save the result in ./assets.
- Turn this product photo into a 5-second rotating shot with Wan 2.2 5B Image to Video.
- Bring this portrait to life with Wan 2.2 5B Image to Video: a subtle smile and a blink.

## How to set up Wan 2.2 5B Image 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 5B Image 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/image-to-video",
    "input": {
      "image_url": "https://storage.googleapis.com/falserverless/model_tests/wan/dragon-warrior.jpg",
      "prompt": "The white dragon warrior stands still, eyes full of determination and strength. The camera slowly moves closer or circles around the warrior, highlighting the…"
    }
  }'
```

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

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

## Wan 2.2 5B Image to Video tools and prices

- [Wan v2.2 5B · Image to Video](https://spiral.ai/tools/fal/fal-ai/wan/v2.2-5b/image-to-video) (fal): `resolution`: 580p $0.195, 720p (default) $0.195 per video.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| 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. |
| negative_prompt |  |  | Negative prompt for video generation. |
| seed |  | — | Random seed for reproducibility. If None, a random seed is chosen. |
| resolution | 580p, 720p | 720p | Resolution of the generated video (580p or 720p). |
| aspect_ratio | auto, 16:9, 9:16, 1:1 | auto | Aspect ratio of the generated video. If 'auto', the aspect ratio will be determined automatically based on the input image. |

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

Create short video assets for a site, prototype, or game with Wan 2.2 5B. A coding agent can turn project briefs into shot descriptions and place the generated clips where the project needs them.

### B-roll for an explainer

Generate a short supporting shot, such as steam rising from a cup or wind moving through a field. Give each shot one clear action.

### Motion studies for a storyboard

Preview a camera push-in, a subject crossing the frame, or a quiet reaction before committing to a finished sequence.

### Product shot concepts

Test a product scene with a slow camera move and deliberate lighting. Use the clips to compare shot direction.

### Website background footage

Create a short atmospheric shot with restrained movement, such as drifting clouds or rippling water, for use behind page content.

### Illustrated story clips

Make a brief illustrated scene with one readable action, such as a character waving or a small boat crossing a pond.

### Lighting and composition tests

Compare warm side lighting with cool overcast light, or a close-up with a wider composition, before choosing a shot direction.

### Product photo animation

Start with a product photo and request a slow push-in or short camera arc. Keep the motion prompt focused on what should change.

### Landscape still animation

Animate a landscape image with moving clouds, swaying grass, or gentle water movement while requesting a fixed camera.

## Overview

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

## Wan 2.2 5B Image to Video in other agents

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

## More opencode guides

- [Vizard AI Clip v1](https://spiral.ai/integrations/opencode/vizard-ai-clip-v1)
- [Wan 2.2 5B Text to Video](https://spiral.ai/integrations/opencode/wan-2-2-5b-text-to-video)
- [Vidu Template to Video](https://spiral.ai/integrations/opencode/vidu-template-to-video)
- [Wan 2.2 A14B Image to Video](https://spiral.ai/integrations/opencode/wan-2-2-a14b-image-to-video)
- [Vidu Start-End to Video](https://spiral.ai/integrations/opencode/vidu-start-end-to-video)
- [Wan 2.2 A14B Image to Video Turbo](https://spiral.ai/integrations/opencode/wan-2-2-a14b-image-to-video-turbo)

## Questions about Wan 2.2 5B Image to Video in opencode

**Can opencode use Wan 2.2 5B Image to Video?**

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

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

`resolution`: 580p $0.195, 720p (default) $0.195 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 5B Image to Video in opencode?**

No. Spiral runs Wan 2.2 5B Image 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 5B Image to Video in opencode?**

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

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

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

**What resolution does Wan 2.2 5B generate?**

Wan 2.2 5B is documented at 720p and 24 fps. The maker's reference landscape and portrait dimensions are 1280 × 704 and 704 × 1280.

**How long should I make a Wan 2.2 5B shot?**

Five-second clips are documented for Wan 2.2 5B. Use that as a practical starting length, and build longer pieces from separately generated shots.

**How do I write a useful Wan 2.2 5B prompt?**

Describe the subject, setting, movement, lighting, framing, and visual style. Start with one clear action and one camera move so you can judge what needs changing.

**What camera moves need extra care?**

Wide orbits can distort the scene's spatial relationships. Start with a short arc or a simple push-in, then inspect the result before requesting a larger move.

**Does stronger prompt guidance always improve the video?**

Higher guidance can make the result follow your wording more closely, but it can also reduce visual quality. Treat it as a tradeoff and compare results before increasing it further.

