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

n8n · Video

How to Use Grok Imagine Extend Video in n8n

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 n8n

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

Every Monday, use Grok Imagine Extend Video on each newly selected product clip that is 2 to 15 seconds long. Add 4 seconds with a slow camera pullback and collect the results for review.

Grok Imagine Extend Videon8n
Try asking
  • Each morning, use Grok Imagine Extend Video on the selected 8-second landscape clip. Add 4 seconds of continued scenery movement for today's narration edit.

  • Every Friday, use Grok Imagine Extend Video to create two separate 3-second continuations from the selected 6-second character scene. Request a small wave in one and a nod in the other.

  • Each week, use Grok Imagine Extend Video on the selected city clip if it is 2 to 15 seconds long. Add 5 seconds continuing the camera's existing direction, then collect the result for review.

  • Before each weekly presentation review, use Grok Imagine Extend Video to add 3 seconds to the selected 9-second background clip. Request a stationary camera and gentle movement in the scene.

How to set up Grok Imagine Extend Video in n8n

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

Use the Spiral skill

  1. Send n8n 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 Spiral's MCP server

  1. Create a key

    Create a key under API keys in the console.

  2. Add an MCP Client node

    In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:

    https://api.spiral.ai/mcp
  3. Pick a tool

    The node lists Spiral's tools. In an MCP Client node pick one, such as run, and give it its arguments:

    {
      "provider": "fal",
      "model": "fal-ai/flux/schnell",
      "input": { "prompt": "a lighthouse at dawn" },
      "wait": true
    }
  4. Run Grok Imagine Extend Video in a workflow step

    Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds Grok Imagine Extend Video, prices it and runs it each time the step fires.

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: n8n 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 n8n 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 n8n?

Prepare additional endings for recurring video work from selected source clips. A scheduled agent can request continuations and collect them for review before publication.

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 n8n

Can n8n use Grok Imagine Extend Video?

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

How much does Grok Imagine Extend Video cost in n8n?

$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 n8n plan is separate.

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

You need no fal account. n8n uses one Spiral API key for every tool, and Spiral runs Grok Imagine Extend Video on its own fal account.

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

About two minutes: create a key, then add an MCP Client node, then pick a tool.

Does n8n wait while Grok Imagine Extend Video runs?

Grok Imagine Extend Video runs in the background. n8n 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 n8n

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

Paste this into n8n:

Set up n8n

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