[Integrations](https://spiral.ai/integrations) › [Codex](https://spiral.ai/integrations/codex) › [Vidu Q2 Pro Video Extension](https://spiral.ai/integrations/codex/vidu-q2-pro-video-extension)

# How to Use Vidu Q2 Pro Video Extension in Codex

Vidu Q2 Pro Video Extension adds footage to an existing clip when a shot ends too soon. Compared with Vidu Q2 Turbo Video Extension, it emphasizes motion coherence and detail preservation.

|  |  |
| --- | --- |
| Model | Vidu Q2 Pro Video Extension |
| Available through | fal |
| Category | Video |
| Price | `resolution`: 1080p $0.0975, 1080p $0.0975, 720p (default) $0.0975, 1080p $0.0975, 1080p $0.364, 1080p $0.364 per video. Billed on `duration`, default 4. |
| Returns | video |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Vidu Q2 Pro Video Extension in Codex

- Use Vidu Q2 Pro Video Extension on assets/videos/coast.mp4 to add four seconds at 1080p. Continue the waves rolling toward shore with the camera fixed, and save the result beside the original.
- Use Vidu Q2 Pro Video Extension to add two seconds at 720p to the closing shot in our trailer assets. Continue the current camera move and save a separate preview.
- Use Vidu Q2 Pro Video Extension on assets/videos/walk.mp4 to add three seconds at 1080p. The person keeps walking in the same direction while the camera tracks alongside.
- Use Vidu Q2 Pro Video Extension on assets/videos/rain.mp4 to add seven seconds at 720p. Continue the rain and fixed framing, then place the result in our ambient-video assets.
- Use Vidu Q2 Pro Video Extension on the project's closing shot to create two four-second continuations at 720p with the same seed: one continuing the camera move and one gradually settling into a hold.

## How to set up Vidu Q2 Pro Video Extension in Codex

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

### Use Spiral's MCP server

1. **Add the hosted server**

```bash
codex mcp add spiral --url https://api.spiral.ai/mcp
```

2. **Sign in**: Codex opens the browser: sign in to Spiral and click Authorize. No API key. `codex mcp list` then shows Spiral.

```bash
codex mcp login spiral
```

### Use the Spiral skill

1. **Send Codex 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 Pro Video Extension**: 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/video-extension/pro",
    "input": {
      "video_url": "https://storage.googleapis.com/falserverless/model_tests/video_models/output-3.mp4"
    }
  }'
```

Then paste one of the prompts above: Codex finds Vidu Q2 Pro Video Extension on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/codex

## Vidu Q2 Pro Video Extension tools and prices

- [Vidu](https://spiral.ai/tools/fal/fal-ai/vidu/q2/video-extension/pro) (fal): `resolution`: 1080p $0.364 per run plus $0.0975 per unit of `duration`, 720p (default) $0.0975 per unit of `duration`. Billed on `duration`, default 4.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| prompt |  | — | text prompt to guide the video extension |
| seed |  | — | Random seed for reproducibility. If None, a random seed is chosen. |
| duration | 2, 3, 4, 5, 6, 7 | 4 | Duration of the extension in seconds |
| resolution | 720p, 1080p | 720p | Output video resolution |

## What can you do with Vidu Q2 Pro Video Extension in Codex?

Extend video assets in your project to give an edit more room. A coding agent can prepare continuation requests and organize the results beside the originals for review.

### Give a social clip a longer ending

Continue the final action for two seconds before making the cut.

### Extend a trailer's closing shot

Add a short continuation so the closing image has time to register.

### Lengthen ambient footage

Continue an existing shot of moving clouds, water, or foliage for an ambient sequence.

### Prepare footage for a loop

Extend repeating motion, then edit and inspect the point where playback returns to the beginning.

### Carry an action past an early cut

Request a continuation of a walk, turn, or camera move that the original clip ends before completing.

### Compare possible endings

Generate separate continuations of the same clip to compare how different final actions affect the edit.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All Codex guides](https://spiral.ai/integrations/codex)

## Vidu Q2 Pro Video Extension in other agents

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

## More Codex guides

- [Vidu Q2 Pro Reference to Video](https://spiral.ai/integrations/codex/vidu-q2-pro-reference-to-video)
- [Vidu Q2 Text to Video](https://spiral.ai/integrations/codex/vidu-q2-text-to-video)
- [Vidu Q2 Pro Image to Video](https://spiral.ai/integrations/codex/vidu-q2-pro-image-to-video)
- [Vidu Q2 Turbo Image to Video](https://spiral.ai/integrations/codex/vidu-q2-turbo-image-to-video)
- [Vidu Q1 Text to Video](https://spiral.ai/integrations/codex/vidu-q1-text-to-video)
- [Vidu Q3 Mix](https://spiral.ai/integrations/codex/vidu-q3-mix)

## Questions about Vidu Q2 Pro Video Extension in Codex

**Can Codex use Vidu Q2 Pro Video Extension?**

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run Vidu Q2 Pro Video Extension like any built-in tool.

**How much does Vidu Q2 Pro Video Extension cost in Codex?**

`resolution`: 1080p $0.0975, 1080p $0.0975, 720p (default) $0.0975, 1080p $0.0975, 1080p $0.364, 1080p $0.364 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 Codex plan is separate.

**Do I need a fal account to use Vidu Q2 Pro Video Extension in Codex?**

No. Spiral runs Vidu Q2 Pro Video Extension 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 Pro Video Extension in Codex?**

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

**Does Codex wait while Vidu Q2 Pro Video Extension runs?**

Vidu Q2 Pro Video Extension runs in the background. Codex starts the run, checks on it and gives you the video when it's ready.

**How much footage can Vidu Q2 Pro Video Extension add?**

It adds two to seven seconds per generation. That duration describes the added footage, rather than the total length of the source clip.

**What resolution does Vidu Q2 Pro Video Extension produce?**

It supports 720p and 1080p output. Choose the resolution your finished edit needs.

**What should a continuation prompt describe?**

Describe what happens immediately after the last frame. For example: the cyclist keeps moving right while the camera follows at the same speed.

**Can Vidu Q2 Pro Video Extension rescue a flawed shot?**

Vidu recommends starting with clear, stable footage that already looks close to your goal. Use it to lengthen a usable shot; review the added footage for changes in the subject and motion.

