How to Use Wan 2.7 Reference to Video in opencode
Wan 2.7 Reference to Video uses reference images or clips to guide character and object appearance in short performances. Unlike Wan 2.7 Text to Video, it gives you visual references for casting people and props.
Prompts to try with Wan 2.7 Reference to Video in opencode
Copy an example into opencode, or ask in your own words.
Use Wan 2.7 Reference to Video with the character reference images in this project. Create an eight-second, 1080p scene where Image 1 hands a parcel to Image 2; enable multiple shots and describe a wide shot followed by a close-up.
Estimate, then generate a 5-second 9:16 clip with Wan 2.7 Reference to Video: a paper boat drifting down a rainy street. Save the result in ./assets.
Make a 10-second product teaser with Wan 2.7 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 2.7 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 2.7 Reference to Video.
How to set up Wan 2.7 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 2.7 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": "fal-ai/wan/v2.7/reference-to-video", "input": { "prompt": "A person walking through a beautiful garden, cinematic style." } }'
Then paste one of the prompts above: opencode finds Wan 2.7 Reference to Video on Spiral, shows the price and runs it.
Wan 2.7 Reference to Video providers and prices
Spiral runs Wan 2.7 Reference to Video through fal. Open a card for today's price, with every fee included.
resolution: 720p $0.13, 1080p (default) $0.13 per second. Billed on duration, default 5.
Settings you can ask for
Wan 2.7 Reference to Video works from your prompt, reference image URLs, and reference video URLs. Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Negative prompt | what to leave out, in words | Content to avoid in the video. Max 500 characters. | |
| Aspect ratio | 16:9, 9:16, 1:1, 4:3, or 3:4 | 16:9 | Aspect ratio of the generated video. |
| Resolution | 720p or 1080p | 1080p | Output video resolution tier. |
| Duration | 2 to 10 | 5 | Output video duration in seconds (2-10). |
| Multi shots | on or off | off | When true, enables intelligent multi-shot segmentation. When false (default), generates a single continuous shot. |
| Seed | a whole number | Random seed for reproducibility (0-2147483647). |
Every API field of Wan 2.7 Reference to Video is on its tool page: open its card above.
What can you do with Wan 2.7 Reference to Video in opencode?
Create short video assets and scene studies from a project's creative brief. A coding agent can prepare the shot descriptions, generate clips, and place selected outputs alongside the project's media.
Product shot planning
Test a five-second product scene before filming. Describe the object and camera move, supplying a product image or visual reference when required.
Short story beats
Preview one moment, such as a traveler noticing a light in an abandoned station. Keep the action readable within five to ten seconds.
Atmospheric cutaways
Create short inserts of rain on a window, curtains moving, or a quiet street. Supply an opening image or reference material when required.
Camera direction tests
Compare a fixed camera, a slow push toward the subject, and a lateral tracking shot before choosing a direction for a scene.
Still artwork animation
Give an illustration a brief movement, such as a character turning toward a sound or a cloak moving in the wind.
Reference-led character performances
Use supplied character images or clips to stage a short greeting, reaction, or interaction between two characters.
More on Wan 2.7 Reference to Video and opencode
Overview
Wan 2.7 Reference to Video in other agents
Questions about Wan 2.7 Reference to Video in opencode
Can opencode use Wan 2.7 Reference to Video?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Wan 2.7 Reference to Video like any built-in tool.
How much does Wan 2.7 Reference to Video cost in opencode?
`resolution`: 720p $0.13, 1080p (default) $0.13 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 2.7 Reference to Video in opencode?
No. Spiral runs Wan 2.7 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 2.7 Reference to Video in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Wan 2.7 Reference to Video runs?
Wan 2.7 Reference 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.7 useful for?
Use it for short scene studies, performance clips, and video concepts where subject motion and camera direction matter. Product shots, character moments, and storyboard tests are practical starting points.
How should I write a Wan 2.7 prompt?
Describe the subject, setting, action, lighting, and visual style. Give the camera a clear instruction, such as a slow push toward the subject or a fixed position.
Can Wan 2.7 make a one-minute video in one generation?
Plan a longer video as separate short clips and edit them together. A five- to ten-second scene is within the supported duration range across the listed Wan 2.7 models.
What output resolution should I plan for?
Wan 2.7 supports 720p and 1080p output tiers. For image animation, the opening image or clip determines the output proportions.
Will repeating a seed reproduce exactly the same video?
A fixed seed helps reproducibility, but identical results are not guaranteed. Keep the prompt and other choices unchanged when comparing outputs.
Start using Wan 2.7 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


