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

Gemini CLI · Video

How to Use Vidu Q2 Pro Video Extension in Gemini CLI

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.

Prompts to try with Vidu Q2 Pro Video Extension in Gemini CLI

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

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.

Vidu Q2 Pro Video ExtensionGemini CLI
Try asking
  • 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 Gemini CLI

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

Use Spiral's MCP server

  1. Add the server

    Or add it to ~/.gemini/settings.json yourself:

    gemini mcp add --scope user --transport http spiral https://api.spiral.ai/mcp
  2. Sign in

    Start gemini and run:

    /mcp auth spiral
  3. Check it

    In Gemini CLI, run /mcp. From your shell:

    gemini mcp list

Use the Spiral skill

  1. Send Gemini CLI 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 Pro Video Extension

    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/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: Gemini CLI finds Vidu Q2 Pro Video Extension on Spiral, shows the price and runs it.

Vidu Q2 Pro Video Extension providers and prices

Spiral runs Vidu Q2 Pro Video Extension through fal. Open a card for today's price, with every fee included.

falVideo
Vidu
fal-ai/vidu/q2/video-extension/pro

Settings you can ask for

Vidu Q2 Pro Video Extension works from your video URL and prompt. Ask Gemini CLI for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Seeda whole number

Random seed for reproducibility. If None, a random seed is chosen.

Duration2 to 74

Duration of the extension in seconds

Resolution720p or 1080p720p

Output video resolution

Every API field of Vidu is on its tool page: open its card above.

What can you do with Vidu Q2 Pro Video Extension in Gemini CLI?

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.

Questions about Vidu Q2 Pro Video Extension in Gemini CLI

Can Gemini CLI use Vidu Q2 Pro Video Extension?

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

How much does Vidu Q2 Pro Video Extension cost in Gemini CLI?

`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 Gemini CLI plan is separate.

Do I need a fal account to use Vidu Q2 Pro Video Extension in Gemini CLI?

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 Gemini CLI?

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

Does Gemini CLI wait while Vidu Q2 Pro Video Extension runs?

Vidu Q2 Pro Video Extension runs in the background. Gemini CLI 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.

Get started

Start using Vidu Q2 Pro Video Extension in Gemini CLI

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

Paste this into Gemini CLI:

Set up Gemini CLI

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