Spiral gives your agent every tool with one account. Browse the tools →

VS Code · ImageReleased 2025-12-01

How to Use Vidu Q2 Text to Image in VS Code

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 VS Code

Copy an example into VS Code, 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.

Vidu Q2 Text to ImageVS Code
Try asking
  • 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 VS Code

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the hosted server

    Use Add to VS Code on the console's Agents & MCP page, or run:

    code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}'
  2. Sign in

    VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.

Use the Spiral skill

  1. Send VS Code this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. 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

  1. Create an API key

    In the console, under API keys.

  2. 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: VS Code 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.

falImage
Vidu
fal-ai/vidu/q2/text-to-image

Settings you can ask for

Vidu Q2 Text to Image works from your prompt. Ask VS Code for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Aspect ratio16:9, 9:16, or 1:116:9

The aspect ratio of the output video

Seeda 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 VS Code?

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.

Questions about Vidu Q2 Text to Image in VS Code

Can VS Code use Vidu Q2 Text to Image?

Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run Vidu Q2 Text to Image like any built-in tool.

How much does Vidu Q2 Text to Image cost in VS Code?

$0.065 per image. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your VS Code plan is separate.

Do I need a fal account to use Vidu Q2 Text to Image in VS Code?

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 VS Code?

About two minutes: add the hosted server, then sign in.

Does VS Code wait while Vidu Q2 Text to Image runs?

Vidu Q2 Text to Image runs in the background. VS Code 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.

Get started

Start using Vidu Q2 Text to Image in VS Code

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into VS Code:

Set up VS Code

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options