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

Gemini · Video

How to Use Grok Imagine Extend Video in Gemini

Grok Imagine Extend Video adds a prompted continuation to an existing clip, useful for finishing an action or extending a camera move. It returns the original and continuation together, preserving the source proportions with output capped at 720p.

Prompts to try with Grok Imagine Extend Video in Gemini

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

Use Grok Imagine Extend Video to add 4 seconds to this 8-second product clip. Have the camera slowly pull back until the whole object is visible, then pause.

Grok Imagine Extend VideoGemini
Try asking
  • Use Grok Imagine Extend Video to continue this 6-second animation for 3 more seconds. The character finishes waving, lowers her hand, and smiles.

  • Use Grok Imagine Extend Video to add 5 seconds to this 10-second landscape clip. Continue the camera's movement toward the mountain while clouds pass overhead.

  • Use Grok Imagine Extend Video to make two different 4-second endings from this 7-second scene. In one, the cat leaves the windowsill; in the other, it settles down to sleep.

  • Use Grok Imagine Extend Video to add 2 seconds to this 9-second room shot. Keep the camera still while the curtain continues moving in the breeze.

How to set up Grok Imagine Extend Video in Gemini

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

Use the Gemini connector

  1. Open Connected Apps

    On your computer, go to gemini.google.com. At the bottom, click Settings › Connected Apps. If you don't see Connected Apps, click Personal Intelligence first, then Connected Apps.

  2. Add Spiral as a custom app

    Under Custom apps, click Add a custom app and paste this MCP server URL:

    https://api.spiral.ai/mcp
  3. Sign in to Spiral and approve

    Follow the on-screen instructions. Spiral opens: sign in, pick the organization and click Authorize. No API key.

Use the Spiral skill

  1. Send Gemini 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 Grok Imagine Extend Video

    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": "xai/grok-imagine-video/extend-video",
        "input": {
          "prompt": "The camera slowly zooms out to reveal the city skyline at sunset",
          "video_url": "https://v3b.fal.media/files/b/0a8b9112/V5Z_NIPE3ppMDWivNo6_q_video_019.mp4"
        }
      }'

Then paste one of the prompts above: Gemini finds Grok Imagine Extend Video on Spiral, shows the price and runs it.

Grok Imagine Extend Video providers and prices

Spiral runs Grok Imagine Extend Video through fal. Open a card for today's price, with every fee included.

falVideo
Grok Imagine Extend Video
xai/grok-imagine-video/extend-video

Settings you can ask for

Grok Imagine Extend Video works from your prompt and video URL. Ask Gemini for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Duration2 to 106

Length of the extension in seconds.

Every API field of Grok Imagine Extend Video is on its tool page: open its card above.

What can you do with Grok Imagine Extend Video in Gemini?

Give an existing clip a longer ending or a new next beat. A chat app can turn your description into a continuation request and help compare the resulting takes.

Finish a product reveal

Continue an existing product shot as the camera pulls back to show the full object. Request a short pause at the end for a closing edit.

Complete a character action

Extend an animated scene so a character can finish turning, sit down, or react to something already visible.

Add room for narration

Request a few more seconds of motion in an existing landscape shot, then place narration over the longer sequence in an editor.

Continue an establishing shot

Extend a camera move across a city, room, or landscape to give the location more screen time.

Try different story endings

Start each attempt from the same short clip and request a different next action. Compare the endings before choosing one for the edit.

Lengthen presentation footage

Continue an existing background clip with restrained motion to give a presentation's closing slide more time on screen.

Questions about Grok Imagine Extend Video in Gemini

Can Gemini use Grok Imagine Extend Video?

Yes. Add Spiral to Gemini as an MCP server, and Gemini can find and run Grok Imagine Extend Video like any built-in tool.

How much does Grok Imagine Extend Video cost in Gemini?

$0.065 per second. Billed on `duration`, default 6. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Gemini plan is separate.

Do I need a fal account to use Grok Imagine Extend Video in Gemini?

No. Spiral runs Grok Imagine Extend Video on its own fal account. You sign in to Spiral once and never paste a key.

How long does it take to set up Grok Imagine Extend Video in Gemini?

About two minutes: open Connected Apps, then add Spiral as a custom app, then sign in to Spiral and approve.

Does Gemini wait while Grok Imagine Extend Video runs?

Grok Imagine Extend Video runs in the background. Gemini starts the run, checks on it and gives you the video when it's ready.

What is Grok Imagine Extend Video useful for?

Use it to add a next beat to an existing shot: finish a gesture, continue a camera move, or give a scene a longer ending. The continuation begins at the clip's last frame.

How long can the finished video be?

A source can be 2 to 15 seconds long, and an extension adds 2 to 10 seconds. A 15-second source with a 10-second extension produces a 25-second result.

Can Grok Imagine Extend Video produce 1080p output?

Output is capped at 720p. It otherwise follows the source video's resolution and proportions.

What should I put in the continuation prompt?

Describe what happens immediately after the final frame. For example, ask a walking subject to stop and turn, or ask the camera to continue pulling back.

Does the result include my original footage?

Yes. The result contains the original clip and the generated continuation stitched together.

Get started

Start using Grok Imagine Extend Video in Gemini

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

Paste this into Gemini:

Set up Gemini

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