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

Windsurf · ImageReleased 2025-12-01

How to Use Vidu Q2 Reference to Image in Windsurf

Use Vidu Q2 Reference to Image to create new scenes around an existing character or product. It combines visual references with written direction to change the setting, style, or composition while keeping the subject recognizable.

Prompts to try with Vidu Q2 Reference to Image in Windsurf

Copy an example into Windsurf, or ask in your own words.

Use Vidu Q2 Reference to Image with assets/product-bottle.png to create a kitchen-counter image draft. Preserve the bottle shape, cap, and color; add soft morning light and leave open space on the right.

Vidu Q2 Reference to ImageWindsurf
Try asking
  • Use Vidu Q2 Reference to Image with assets/mascot.png to create a square onboarding illustration of the mascot beside a desk. Keep its face, colors, and silhouette, and save the result for review.

  • Use Vidu Q2 Reference to Image with the character and background references in assets/storyboard to draft one wide station-platform scene. Explain which image supplies character identity and which supplies composition.

  • Use Vidu Q2 Reference to Image with assets/cover-sketch.png to explore a flat illustrated treatment. Preserve the main subject placement and keep the draft free of lettering.

  • Use Vidu Q2 Reference to Image with assets/character.png to make a video reference still. Request eye-level framing, clearly visible facial features, the existing outfit, and soft front lighting; keep the model prompt under 1,500 characters.

How to set up Vidu Q2 Reference to Image in Windsurf

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

Use Spiral's MCP server

  1. Add the server

    Open the Customize page from the Agents window and click MCPs. Under This computer, open the config file, or edit it directly: ~/.config/devin/mcp_config.json on macOS and Linux, %APPDATA%\devin\mcp_config.json on Windows. Add this:

    {
      "mcpServers": {
        "spiral": {
          "url": "https://api.spiral.ai/mcp"
        }
      }
    }
  2. Sign in

    Click Authenticate on the Spiral server in Customize › MCPs, or let the agent call Spiral once: your browser opens. Sign in to Spiral, pick the organization and click Authorize. No API key.

    devin mcp login spiral
  3. Check it

    Spiral is listed under This computer in Customize › MCPs. From the terminal:

    devin mcp list

Use the Spiral skill

  1. Send Windsurf 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 Reference 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/reference-to-image",
        "input": {
          "prompt": "The little devil is looking at the apple on the beach and walking around it.",
          "reference_image_urls": [
            "<reference_image_urls>"
          ]
        }
      }'

Then paste one of the prompts above: Windsurf finds Vidu Q2 Reference to Image on Spiral, shows the price and runs it.

Vidu Q2 Reference to Image providers and prices

Spiral runs Vidu Q2 Reference to Image through fal. Open a card for today's price, with every fee included.

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

Settings you can ask for

Vidu Q2 Reference to Image works from your prompt and reference image URLs. Ask Windsurf 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 Reference to Image in Windsurf?

Create image drafts around the characters, products, and artwork already in your project. Use Vidu Q2 Reference to Image to explore scene and style changes, then review the results beside the source assets.

Product background concepts

Use an existing product image to explore a kitchen counter, studio table, or outdoor setting. Specify the product shape and details that should stay recognizable.

Character scene drafts

Place a reference character in different story settings while asking to retain the face, hairstyle, outfit, and silhouette.

Campaign image studies

Start with an approved visual and explore seasonal settings, lighting, and mood for a campaign review.

Illustration style exploration

Use existing artwork to test a different rendering style while preserving selected subject and composition details.

Thumbnail concepts

Turn a character or product reference into a thumbnail draft with deliberate subject placement and space for a title added during editing.

Video reference preparation

Create a still character reference with explicit clothing, facial details, lighting, and framing for review before video production.

Brand composition reviews

Combine subject and composition references into a concrete image draft that stakeholders can review for visual direction.

Questions about Vidu Q2 Reference to Image in Windsurf

Can Windsurf use Vidu Q2 Reference to Image?

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

How much does Vidu Q2 Reference to Image cost in Windsurf?

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

Do I need a fal account to use Vidu Q2 Reference to Image in Windsurf?

No. Spiral runs Vidu Q2 Reference 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 Reference to Image in Windsurf?

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

Does Windsurf wait while Vidu Q2 Reference to Image runs?

Vidu Q2 Reference to Image runs in the background. Windsurf starts the run, checks on it and gives you the image when it's ready.

What is Vidu Q2 Reference to Image best for?

Use it when a recognizable character, product, or visual direction already exists. It suits new scene drafts, changes in style, and composition studies guided by those references.

Can Vidu Q2 Reference to Image keep the same character or product?

Consistent subject appearance is a documented purpose. State which features must stay, then compare the result with the reference before approving it.

How many reference images can Vidu Q2 use?

Vidu documents up to seven references for Q2 image generation. Give each image a clear role, such as character identity, product details, or composition.

How should I prompt Vidu Q2 Reference to Image?

Describe the scene, style, composition, and details that must remain recognizable. Separate the requested changes from the details you want preserved.

How long can a Vidu Q2 Reference to Image prompt be?

Keep the prompt within 1,500 characters for this endpoint. Prioritize the subject, the requested change, and the details that must stay.

Get started

Start using Vidu Q2 Reference to Image in Windsurf

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

Paste this into Windsurf:

Set up Windsurf

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