How to Use Vidu Q2 Text to Video in opencode
Use Vidu Q2 Text to Video to explore a scene before you have artwork or photography. Unlike Vidu Q2 Pro Image to Video, it creates the shot from a written description, making it useful for storyboards and concept tests.
Prompts to try with Vidu Q2 Text to Video in opencode
Copy an example into opencode, or ask in your own words.
Use Vidu Q2 Text to Video to create a four-second 720p background concept for the landing page: a sunlit greenhouse, gently moving leaves, and a static camera. Show the video in the existing hero component for review.
Read the opening scene in docs/storyboard.md and use Vidu Q2 Text to Video to generate one six-second 1080p establishing shot. Choose one camera movement, keep the action simple, and add the clip to the storyboard preview.
Estimate, then generate a 5-second 9:16 clip with Vidu Q2 Text to Video: a paper boat drifting down a rainy street. Save the result in ./assets.
Make a 10-second product teaser with Vidu Q2 Text to Video for a smartwatch, slow orbit shot, studio lighting.
Generate three 5-second b-roll clips of a busy coffee shop with Vidu Q2 Text to Video and list what each cost.
How to set up Vidu Q2 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 Vidu Q2 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/vidu/q2/text-to-video", "input": { "prompt": "A cinematic shot of a futuristic city at sunset, with flying cars and towering skyscrapers." } }'
Then paste one of the prompts above: opencode finds Vidu Q2 Text to Video on Spiral, shows the price and runs it.
Vidu Q2 Text to Video providers and prices
Spiral runs Vidu Q2 Text to Video through fal. Open a card for today's price, with every fee included.
resolution: 360p $0.13 per run, 1080p $0.26 per run plus $0.13 per unit of duration, 520p $0.26 per run, 720p (default) $0.39 per run. Billed on duration, default 4.
Settings you can ask for
Vidu Q2 Text to Video works from your prompt. Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Seed | a whole number | Random seed for reproducibility. If None, a random seed is chosen. | |
| Duration | 2 to 8 | 4 | Duration of the video in seconds |
| Resolution | 360p, 520p, 720p, or 1080p | 720p | Output video resolution |
| Aspect ratio | 16:9, 9:16, or 1:1 | 16:9 | The aspect ratio of the output video |
| Movement amplitude | auto, small, medium, or large | auto | The movement amplitude of objects in the frame |
| Bgm | on or off | off | Whether to add background music to the video (only for 4-second videos) |
Every API field of Vidu is on its tool page: open its card above.
What can you do with Vidu Q2 Text to Video in opencode?
Create short video assets and motion studies alongside your project's design work. A coding agent can turn a scene brief into a shot, then place the result in a preview for review.
Product reveal concepts
Test a short reveal of a ceramic mug, watch, or skincare bottle. Give the shot one action, such as a slow turn or a camera push toward the product.
Character reaction shots
Explore a brief emotional beat for a storyboard: surprise settling into relief, a restrained smile, or a worried glance. Keep the performance easy to read.
Camera movement tests
Compare a static view with a slow push-in before choosing how to film or animate a scene. Keep the action and lighting consistent between tests.
Short ad concepts
Make separate shots for competing ad ideas, such as a quiet product close-up and a character discovering the product. Review the visual hook before developing the full edit.
Scenes before a photo shoot
Explore an imagined location, lighting treatment, or character moment directly from a written brief. Use the draft to decide which ideas deserve finished artwork or photography.
More on Vidu Q2 Text to Video and opencode
Overview
Vidu Q2 Text to Video in other agents
Questions about Vidu Q2 Text to Video in opencode
Can opencode use Vidu Q2 Text to Video?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Vidu Q2 Text to Video like any built-in tool.
How much does Vidu Q2 Text to Video cost in opencode?
`resolution`: 1080p $0.13, 1080p $0.13, 1080p $0.13, 1080p $0.13, 360p $0.13, 520p $0.13, 720p (default) $0.13, 1080p $0.13, 1080p $0.26, 1080p $0.26, 1080p $0.26, 1080p $0.26, 520p $0.26, 520p $0.26, 520p $0.26, 520p $0.26, 720p (default) $0.39, 720p (default) $0.39, 720p (default) $0.39, 720p (default) $0.39 per video. Billed on `duration`, default 4. 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 Vidu Q2 Text to Video in opencode?
No. Spiral runs Vidu Q2 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 Vidu Q2 Text to Video in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Vidu Q2 Text to Video runs?
Vidu Q2 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 Vidu Q2 good at?
Vidu Q2 is worth trying for expressive reaction shots and deliberate camera movement. Describe a visible change, such as a smile fading or the camera moving from a wide view toward a face.
How should I write a Vidu Q2 prompt?
Describe the subject, action, setting, camera movement, lighting, and visual style. For a first test, choose one action and one camera instruction so you can judge what needs changing.
What should I simplify when a Vidu Q2 shot goes wrong?
Reduce the number of subjects and replace ambiguous directions with visible actions. Alibaba Cloud's Vidu guidance specifically recommends avoiding complex subject arrangements and using natural, precise phrasing.
Can I prompt Vidu Q2 in languages other than English?
Vidu says its prompts support more than 200 languages. That describes prompt input support; it does not establish equal quality in every language.
Can Vidu Q2 make 1080p video?
Yes. Use 720p to review a creative direction, then request 1080p for the shot you intend to use.
Start using Vidu Q2 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


