[Integrations](https://spiral.ai/integrations) › [Claude Code](https://spiral.ai/integrations/claude-code) › [Vidu Q2 Reference to Image](https://spiral.ai/integrations/claude-code/vidu-q2-reference-to-image)

# How to Use Vidu Q2 Reference to Image in Claude Code

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.

|  |  |
| --- | --- |
| Model | Vidu Q2 Reference to Image |
| Available through | fal |
| Category | Image |
| Price | $0.065 per image. |
| Returns | image |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Vidu Q2 Reference to Image in Claude Code

- 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.
- 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 Claude Code

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

### Use Spiral's MCP server

1. **Add the hosted server**: This adds Spiral to the current project. Add `--scope user` to use it in every project.

```bash
claude mcp add --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `claude`, type `/mcp`, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.

### Use the Spiral skill

1. **Send Claude 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.

```bash
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.

```bash
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: Claude Code finds Vidu Q2 Reference to Image on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/claude-code

## Vidu Q2 Reference to Image tools and prices

- [Vidu](https://spiral.ai/tools/fal/fal-ai/vidu/q2/reference-to-image) (fal): $0.065 per image.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| aspect_ratio | 16:9, 9:16, 1:1 | 16:9 | The aspect ratio of the output video |
| seed |  | — | Random seed for generation |

## What can you do with Vidu Q2 Reference to Image in Claude Code?

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.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All Claude Code guides](https://spiral.ai/integrations/claude-code)

## Vidu Q2 Reference to Image in other agents

- [Amp](https://spiral.ai/integrations/amp/vidu-q2-reference-to-image)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/vidu-q2-reference-to-image)
- [Claude](https://spiral.ai/integrations/claude-desktop/vidu-q2-reference-to-image)
- [Cline](https://spiral.ai/integrations/cline/vidu-q2-reference-to-image)
- [Codex](https://spiral.ai/integrations/codex/vidu-q2-reference-to-image)
- [Cursor](https://spiral.ai/integrations/cursor/vidu-q2-reference-to-image)
- [Devin](https://spiral.ai/integrations/devin/vidu-q2-reference-to-image)
- [dots](https://spiral.ai/integrations/dots/vidu-q2-reference-to-image)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/vidu-q2-reference-to-image)
- [Gemini](https://spiral.ai/integrations/gemini/vidu-q2-reference-to-image)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/vidu-q2-reference-to-image)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/vidu-q2-reference-to-image)
- [goose](https://spiral.ai/integrations/goose/vidu-q2-reference-to-image)
- [Grok](https://spiral.ai/integrations/grok/vidu-q2-reference-to-image)
- [Grok Build](https://spiral.ai/integrations/grok-build/vidu-q2-reference-to-image)
- [Hermes](https://spiral.ai/integrations/hermes/vidu-q2-reference-to-image)
- [Instinct](https://spiral.ai/integrations/instinct/vidu-q2-reference-to-image)
- [Manus](https://spiral.ai/integrations/manus/vidu-q2-reference-to-image)
- [Muse](https://spiral.ai/integrations/muse/vidu-q2-reference-to-image)
- [Muse Code](https://spiral.ai/integrations/muse-code/vidu-q2-reference-to-image)
- [n8n](https://spiral.ai/integrations/n8n/vidu-q2-reference-to-image)
- [Notion](https://spiral.ai/integrations/notion/vidu-q2-reference-to-image)
- [OpenClaw](https://spiral.ai/integrations/openclaw/vidu-q2-reference-to-image)
- [opencode](https://spiral.ai/integrations/opencode/vidu-q2-reference-to-image)
- [Perplexity](https://spiral.ai/integrations/perplexity/vidu-q2-reference-to-image)
- [Raycast](https://spiral.ai/integrations/raycast/vidu-q2-reference-to-image)
- [VS Code](https://spiral.ai/integrations/vscode/vidu-q2-reference-to-image)
- [Windsurf](https://spiral.ai/integrations/windsurf/vidu-q2-reference-to-image)
- [Zapier](https://spiral.ai/integrations/zapier/vidu-q2-reference-to-image)

## More Claude Code guides

- [Topaz Upscale Precision](https://spiral.ai/integrations/claude-code/topaz-upscale-precision)
- [Vidu Q2 Text to Image](https://spiral.ai/integrations/claude-code/vidu-q2-text-to-image)
- [Topaz Transparent Image Upscale](https://spiral.ai/integrations/claude-code/topaz-transparent-image-upscale)
- [Vidu Reference to Image](https://spiral.ai/integrations/claude-code/vidu-reference-to-image)
- [Topaz Sharpen Image](https://spiral.ai/integrations/claude-code/topaz-sharpen-image)
- [Wan 2.2 5B Text to Image](https://spiral.ai/integrations/claude-code/wan-2-2-5b-text-to-image)

## Questions about Vidu Q2 Reference to Image in Claude Code

**Can Claude Code use Vidu Q2 Reference to Image?**

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

**How much does Vidu Q2 Reference to Image cost in Claude 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 Claude Code plan is separate.

**Do I need a fal account to use Vidu Q2 Reference to Image in Claude Code?**

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 Claude Code?**

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

**Does Claude Code wait while Vidu Q2 Reference to Image runs?**

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

