How to Use Vidu Q2 Text to Image in opencode
Vidu Q2 Text to Image turns written scene descriptions into single still images for concept work and marketing drafts. Unlike Vidu Q2 Reference to Image, it starts from text alone.
Prompts to try with Vidu Q2 Text to Image in opencode
Copy an example into opencode, or ask in your own words.
Read the homepage copy and use Vidu Q2 Text to Image to create a wide illustration of a neighborhood bicycle repair shop. Put the mechanic and workbench on the right, leave the left third uncluttered for the headline, and use soft morning light.
Use Vidu Q2 Text to Image to make a square editorial illustration for the gardening article in this project: a balcony with terracotta pots, herbs, a watering can, and late-afternoon light. Keep the generation prompt under 1,500 characters.
Read the game's setting notes and use Vidu Q2 Text to Image to create one concept image of its abandoned railway station. Show the entrance from street level, with overgrown tracks and rain-darkened brick.
Use Vidu Q2 Text to Image to create a portrait artwork draft for the reading app's welcome screen: an armchair beside a tall window, books on a low table, and an overcast sky outside. Leave the upper area simple for interface text.
Use Vidu Q2 Text to Image to create two separate landscape artwork drafts for the travel page. Keep the seed and scene description fixed, change only the requested lighting from morning to evening, and save both prompts with the images.
How to set up Vidu Q2 Text to Image 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 Image
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-image", "input": { "prompt": "A majestic dragon perches on the mountaintop, its eyes fixed intently on a small baby dragon." } }'
Then paste one of the prompts above: opencode finds Vidu Q2 Text to Image on Spiral, shows the price and runs it.
Vidu Q2 Text to Image providers and prices
Spiral runs Vidu Q2 Text to Image through fal. Open a card for today's price, with every fee included.
Settings you can ask for
Vidu Q2 Text to Image works from your prompt. Ask opencode for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Aspect ratio | 16:9, 9:16, or 1:1 | 16:9 | The aspect ratio of the output video |
| Seed | a whole number | Random seed for generation |
Every API field of Vidu is on its tool page: open its card above.
What can you do with Vidu Q2 Text to Image in opencode?
Create draft artwork for the site or app you are building from a written visual brief. Your coding agent can use the project's copy to describe a scene and place the resulting still image in the layout.
Article illustrations
Use Vidu Q2 Text to Image to turn an article's central idea into a scene, such as a crowded repair bench for a story about fixing electronics.
Campaign concept reviews
Use Vidu Q2 Text to Image to sketch a campaign setting before commissioning final artwork. Describe the subject, props, lighting, and space reserved for copy.
Website artwork drafts
Use Vidu Q2 Text to Image to explore artwork for a landing page. Describe the intended composition and leave clear space where the page's headline will sit.
Social post artwork
Use Vidu Q2 Text to Image to create a still scene for a social post, with the subject and background described in the brief.
Fictional scene development
Use Vidu Q2 Text to Image to explore a location from a written story, such as a mountain observatory or a market built inside an abandoned station.
Newsletter artwork
Use Vidu Q2 Text to Image to illustrate an issue's theme with a new still image. Keep the visual brief separate from headlines and other publication text.
More on Vidu Q2 Text to Image and opencode
Overview
Vidu Q2 Text to Image in other agents
Questions about Vidu Q2 Text to Image in opencode
Can opencode use Vidu Q2 Text to Image?
Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Vidu Q2 Text to Image like any built-in tool.
How much does Vidu Q2 Text to Image cost in opencode?
$0.065 per image. 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 Image in opencode?
No. Spiral runs Vidu Q2 Text to Image 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 Image in opencode?
About two minutes: add the server, then sign in, then check it.
Does opencode wait while Vidu Q2 Text to Image runs?
Vidu Q2 Text to Image runs in the background. opencode starts the run, checks on it and gives you the image when it's ready.
What is Vidu Q2 Text to Image useful for?
Use it for still-image concepts, marketing drafts, and illustrations for static content. Suggested starting points include an article illustration, a campaign scene, or a visual direction to discuss with a designer.
Does Vidu Q2 Text to Image create video?
It produces a single still image. Use it to develop the appearance of a scene before planning animation.
How long can a Vidu Q2 Text to Image prompt be?
Keep the generation prompt within 1,500 characters. Put the subject, setting, composition, and lighting first, then remove repeated descriptions.
What does Vidu Q2 Text to Image return?
Each generation returns one PNG image. Request separate generations when you want several concepts to compare.
How should I refine a Vidu Q2 image concept?
Try keeping the seed and most of the description fixed while changing one detail, such as the lighting or viewpoint. Treat this as a comparison method rather than a promise that every other detail will stay identical.
Start using Vidu Q2 Text to Image 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


