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.
Prompts to try with Wan 2.2 FastWan 5B Text to Video in opencode
Copy an example into opencode, or ask in your own words.
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
- 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.
opencode mcp add spiral --global --url https://api.spiral.ai/mcp
- 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.
opencode mcp auth spiral
- Check it
Spiral shows as connected.
opencode mcp list
Use the Spiral skill
- Send opencode this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Wan 2.2 FastWan 5B Text to Video
One request; the result comes back by polling or a webhook.
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.
Wan 2.2 FastWan 5B Text to Video providers and prices
Spiral runs Wan 2.2 FastWan 5B Text to Video through fal. Open a card for today's price, with every fee included.
resolution: 480p $0.01625, 580p $0.024375, 720p (default) $0.0325 per video.
Settings you can ask for
Wan 2.2 FastWan 5B Text to Video works from your prompt. Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Negative prompt | what to leave out, in words | Negative prompt for video generation. | |
| Number of 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 |
| Seed | a whole number | Random seed for reproducibility. If None, a random seed is chosen. | |
| Resolution | 480p, 580p, or 720p | 720p | Resolution of the generated video (580p or 720p). |
| Aspect ratio | 16:9, 9:16, or 1:1 | 16:9 | Aspect ratio of the generated video (16:9 or 9:16). |
| Enable prompt expansion | on or off | off | Whether to enable prompt expansion. This will use a large language model to expand the prompt with additional details while maintaining the original meaning. |
| Guidance scale | 1 to 10 | 3.5 | Classifier-free guidance scale. Higher values give better adherence to the prompt but may decrease quality. |
| Interpolator model | none, film, or rife | film | The model to use for frame interpolation. If None, no interpolation is applied. |
| Number of interpolated frames | 0 to 4 | 0 | Number of frames to interpolate between each pair of generated frames. Must be between 0 and 4. |
| Adjust FPS for interpolation | on or off | on | If true, the number of frames per second 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 false, the passed frames per second will be used as-is. |
| Video quality | low, medium, high, or maximum | high | The quality of the output video. Higher quality means better visual quality but larger file size. |
| Video write mode | fast, balanced, or small | balanced | The write mode of the output video. Faster write mode means faster results but larger file size, balanced write mode is a good compromise between speed and quality, and small write mode is the slowest but produces the smallest file size. |
Every API field of Wan FastWan 5B · Text to Video is on its tool page: open its card above.
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.
More on Wan 2.2 FastWan 5B Text to Video and opencode
Overview
Wan 2.2 FastWan 5B Text to Video in other agents
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.
Start using Wan 2.2 FastWan 5B Text to Video in opencode
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into opencode:
set up https://spiral.ai/SKILL.md


