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

VS Code · VideoReleased 2026-09-17

How to Use H3 Max Extend Video in VS Code

H3 Max Extend Video adds a directed next action to footage you already have. Use it to finish a scene or lengthen a shot, with output up to 2K.

Prompts to try with H3 Max Extend Video in VS Code

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

Use H3 Max Extend Video on public/videos/product-reveal.mp4 to add 5 seconds: the product finishes its turn, then holds still as the camera settles. Save the result as a new asset.

H3 Max Extend VideoVS Code
Try asking
  • Use H3 Max Extend Video to continue assets/teaser.mp4 for 5 seconds: the character reaches the doorway and pauses with one hand on the handle. Keep the next action to this single beat.

  • Use H3 Max Extend Video on public/videos/coast.mp4 to add 5 seconds of waves rolling toward shore while the camera continues its existing movement. Request 2K output.

  • Use H3 Max Extend Video to make two endings for assets/cyclist.mp4, adding 5 seconds each. In one, the cyclist stops beside the gate; in the other, the cyclist rides through it. Save both for review.

  • Use H3 Max Extend Video on assets/closing-shot.mp4 to add 5 seconds of the subject walking away. Request the separate continuation and account for its 1.625-second repeated opening when adding it to the project timeline.

How to set up H3 Max Extend Video in VS Code

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

Use Spiral's MCP server

  1. Add the hosted server

    Use Add to VS Code on the console's Agents & MCP page, or run:

    code --add-mcp '{"name":"spiral","type":"http","url":"https://api.spiral.ai/mcp"}'
  2. Sign in

    VS Code asks you to sign in when it first starts the server: sign in to Spiral and click Authorize. No API key. Run MCP: List Servers from the Command Palette to check that Spiral is running.

Use the Spiral skill

  1. Send VS 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.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run H3 Max 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": "minimax/h3-max/extend-video",
        "input": {
          "video_url": "https://storage.googleapis.com/falserverless/example_inputs/flux-3-red-panda.mp4",
          "prompt": "The red panda keeps walking along the log, then looks up at a bird."
        }
      }'

Then paste one of the prompts above: VS Code finds H3 Max Extend Video on Spiral, shows the price and runs it.

H3 Max Extend Video providers and prices

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

falVideo
H3 Max Extend Video
minimax/h3-max/extend-video

Settings you can ask for

H3 Max Extend Video works from your video URL, prompt, and reference audio URLs. Ask VS Code for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Enable prompt expansionon or offon

Automatically enhance the prompt using the source video to help keep the continuation consistent. May increase processing time.

Duration0.71 to 155

Seconds of new footage to add. The continuation clip also includes 1.625 seconds from the source's ending and may be longer because of frame rounding.

Resolution480P, 768P, 1080P, or 2K768P

Output video resolution.

Aspect ratioauto, 21:9, 16:9, 4:3, 1:1, 3:4, or 9:16auto

Output aspect ratio. 'auto' follows the source video. Other values crop the video to fit the selected ratio.

Seeda whole number

Seed for the continuation. Random when omitted.

Outputextended or continuationextended

'extended' returns the source and new footage as one video. 'continuation' returns a clip that starts with a 1.625-second repeat of the source's ending, then shows the new footage.

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

What can you do with H3 Max Extend Video in VS Code?

Extend video assets in your project to finish actions or add room at the end of a shot. A coding agent can prepare continuation briefs and account for the repeated opening when assembling the result.

Finish a product reveal

Continue an existing product shot so the object finishes turning and the camera settles on the final view.

Complete a character action

Extend a scene so a character reaches the door, sets down an object, or walks out of frame.

Lengthen scenic footage

Add more footage after a landscape shot, directing the next movement of clouds, water, or the camera.

Give an ending room to breathe

Continue a closing shot with restrained motion so an editor has more footage beneath narration or end titles.

Explore alternate scene endings

Start from the same source clip and request different next actions to compare possible endings.

Continue an animated game teaser

Extend existing teaser footage with another short action, such as a character reaching a checkpoint or approaching a doorway.

Questions about H3 Max Extend Video in VS Code

Can VS Code use H3 Max Extend Video?

Yes. Add Spiral to VS Code as an MCP server, and VS Code can find and run H3 Max Extend Video like any built-in tool.

How much does H3 Max Extend Video cost in VS Code?

Up to $10.943504 per run at the default inputs for 60 seconds of input. `resolution`: 480P $10.748504, 768P (default) $10.943504, 1080P $11.463504, 2K $12.503504. $26.00 per 1M input tokens. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your VS Code plan is separate.

Do I need a fal account to use H3 Max Extend Video in VS Code?

No. Spiral runs H3 Max 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 H3 Max Extend Video in VS Code?

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

Does VS Code wait while H3 Max Extend Video runs?

H3 Max Extend Video runs in the background. VS Code starts the run, checks on it and gives you the video when it's ready.

What is H3 Max Extend Video useful for?

Use it when existing footage needs another action or a longer ending. Examples include letting a subject leave the frame, finishing a camera move, or giving a product shot more time.

Can H3 Max Extend Video start from text alone?

It needs an existing video to continue. The text directs the footage added after that video.

How should I write a continuation prompt?

Describe the next action instead of retelling the source video. For example: 'The cyclist keeps moving forward, brakes beside the gate, and puts one foot on the ground.'

Does the separate continuation clip contain any original footage?

Yes. It starts with 1.625 seconds repeated from the source ending, so account for that overlap when placing it after the original in an editor.

How high can the output resolution go?

H3 Max Extend Video supports output up to 2K. Its supported resolution range starts at 480p.

Get started

Start using H3 Max Extend Video in VS Code

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

Paste this into VS Code:

Set up VS Code

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