How to Use Wan 3.0 Prime Reference to Video in opencode
Wan 3.0 Prime Reference to Video uses visual references to carry characters, props, and style into new scenes. Unlike Wan 3.0 Prime Image to Video, references guide the result without defining its opening frame.
Prompts to try with Wan 3.0 Prime Reference to Video in opencode
Copy an example into opencode, or ask in your own words.
Use Wan 3.0 Prime Reference to Video with our two approved character images. Make a 10-second 720p scene: Image 1's character enters a courtyard from 0-5 seconds, then greets Image 2's character from 5-10 seconds; include footsteps and a brief greeting.
Estimate, then generate a 5-second 9:16 clip with Wan 3.0 Prime Reference to Video: a paper boat drifting down a rainy street. Save the result in ./assets.
Make a 10-second product teaser with Wan 3.0 Prime Reference to Video for a smartwatch, slow orbit shot, studio lighting.
Generate three 5-second b-roll clips of a busy coffee shop with Wan 3.0 Prime Reference to Video and list what each cost.
Make a 6-second 16:9 drone shot over a misty pine forest at sunrise with Wan 3.0 Prime Reference to Video.
How to set up Wan 3.0 Prime Reference 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 3.0 Prime Reference 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": "alibaba/wan-3.0-prime/reference-to-video", "input": { "prompt": "<prompt>" } }'
Then paste one of the prompts above: opencode finds Wan 3.0 Prime Reference to Video on Spiral, shows the price and runs it.
Wan 3.0 Prime Reference to Video providers and prices
Spiral runs Wan 3.0 Prime Reference to Video through fal. Open a card for today's price, with every fee included.
resolution: 480p $0.0884, 720p $0.182, 1080p (default) $0.364 per second. Billed on duration, default 5.
Settings you can ask for
Wan 3.0 Prime Reference to Video works from your prompt, reference image URLs, reference video URLs, and reference audio URLs. Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Resolution | 480p, 720p, or 1080p | 1080p | Output video resolution tier. |
| Aspect ratio | adaptive, 16:9, 4:3, 1:1, 3:4, or 9:16 | adaptive | Output aspect ratio, or adaptive selection. |
| Duration | 2 to 30 | 5 | Output duration in seconds. Set to null for smart duration, which lets the model pick a length from the prompt and reference media. |
| Audio | on or off | on | Include generated audio. |
| Enable prompt expansion | on or off | on | Enable intelligent prompt rewriting. Disabling it can save roughly 20-60 seconds of latency but is likely to degrade generation quality. |
| Enable thinking | on or off | off | Enable enhanced reasoning before generation. |
| Seed | 0 to 2147483647 |
Every API field of Wan 3.0 Prime Reference to Video is on its tool page: open its card above.
What can you do with Wan 3.0 Prime Reference to Video in opencode?
Create video assets for a site, app, or game while working in the project. A coding agent can turn the creative brief into shot directions and place the resulting clips where the project needs them.
Short product ads
Create a 10-second product scene with a clear reveal, one camera move, and a closing hold. Add exact product names and offer text during editing.
Storyboard previews
Preview a short sequence with numbered shots and timestamps. Use the result to judge pacing, framing, and transitions before production.
Atmospheric background footage
Make a slow shot of a workshop, garden, or imagined landscape for a website or presentation. Request silence when the footage will sit behind other audio.
Dialogue scene drafts
Try a brief exchange or a single spoken line with a specified setting and soundscape. Review the delivery and audio before using the clip.
Game scene concepts
Explore an environment, character entrance, or short story beat. Keep each clip focused on a few visible actions so the team can assess the direction.
Travel campaign concepts
Plan a short destination sequence around light, scenery, and a deliberate camera path. Treat imagined locations as concept footage.
Animated artwork
Start with an illustration and direct a restrained action, such as drifting clouds, moving fabric, or a character turning toward the camera.
Character scene studies
Use an approved character image to explore expressions, staging, and short actions. Review the character's appearance throughout the result.
More on Wan 3.0 Prime Reference to Video and opencode
Overview
Wan 3.0 Prime Reference to Video in other agents
Questions about Wan 3.0 Prime Reference to Video in opencode
Can opencode use Wan 3.0 Prime Reference to Video?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Wan 3.0 Prime Reference to Video like any built-in tool.
How much does Wan 3.0 Prime Reference to Video cost in opencode?
`resolution`: 480p $0.0884, 720p $0.182, 1080p (default) $0.364 per second. Billed on `duration`, default 5. 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 3.0 Prime Reference to Video in opencode?
No. Spiral runs Wan 3.0 Prime Reference 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 3.0 Prime Reference to Video in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Wan 3.0 Prime Reference to Video runs?
Wan 3.0 Prime Reference to Video runs in the background. opencode starts the run, checks on it and gives you the video when it's ready.
How long can Wan 3.0 Prime videos be?
A single output can run up to 30 seconds, at up to 1080p and 30 fps. Give each action enough time instead of filling the clip with rapid instructions.
Can Wan 3.0 Prime generate sound?
Yes. It can generate dialogue, background music, and sound effects with the picture; describe the speech and sounds you want in the prompt.
Which prompt languages does Wan 3.0 Prime support?
Alibaba documents Chinese and English prompts. Use either language to describe the scene, actions, and camera direction.
How should I write a multi-shot prompt?
Number the shots and give each a start and end time. For each shot, describe the subject, setting, action, and camera treatment, then specify dialogue and sound separately.
What should I check before using the finished video?
Check generated lettering and listen closely to the audio. Alibaba identifies on-screen text accuracy and audio texture as areas still improving, so plan to add exact titles and correct the sound in an editor.
Start using Wan 3.0 Prime Reference 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


