Skip to main content
Endpoint: POST https://fal.run/fal-ai/veo3.1/extend-video Endpoint ID: fal-ai/veo3.1/extend-video

Try it in the Playground

Run this model interactively with your own prompts.

Quick Start

import fal_client

def on_queue_update(update):
    if isinstance(update, fal_client.InProgress):
        for log in update.logs:
           print(log["message"])

result = fal_client.subscribe(
    "fal-ai/veo3.1/extend-video",
    arguments={
        "prompt": "Continue the scene naturally, maintaining the same style and motion.",
        "video_url": "https://v3b.fal.media/files/b/0a8670fe/pY8UGl4_C452wOm9XUBYO_9ae04df8771c4f3f979fa5cabeca6ada.mp4"
    },
    with_logs=True,
    on_queue_update=on_queue_update,
)
print(result)

Capabilities

  • Text prompt input
  • Aspect ratio control
  • Duration control
  • Negative prompts
  • Reproducible generation (seed)
  • Video input

API Reference

Input Schema

prompt
string
required
The text prompt describing how the video should be extended
aspect_ratio
AspectRatioEnum
default:"auto"
The aspect ratio of the generated video. Default value: "auto"Possible values: auto, 16:9, 9:16
duration
string
default:"7s"
The duration of the generated video. Default value: "7s"
negative_prompt
string
A negative prompt to guide the video generation.
resolution
string
default:"720p"
The resolution of the generated video. Default value: "720p"
generate_audio
boolean
default:"true"
Whether to generate audio for the video. Default value: true
seed
integer
The seed for the random number generator.
auto_fix
boolean
default:"false"
Whether to automatically attempt to fix prompts that fail content policy or other validation checks by rewriting them.
safety_tolerance
SafetyToleranceEnum
default:"4"
The safety tolerance level for content moderation. 1 is the most strict (blocks most content), 6 is the least strict. Default value: "4"Possible values: 1, 2, 3, 4, 5, 6
video_url
string
required
URL of the video to extend. The video should be 720p or 1080p resolution in 16:9 or 9:16 aspect ratio.

Output Schema

video
File
required
The extended video.

Input Example

{
  "prompt": "Continue the scene naturally, maintaining the same style and motion.",
  "aspect_ratio": "auto",
  "duration": "7s",
  "resolution": "720p",
  "generate_audio": true,
  "auto_fix": false,
  "safety_tolerance": "4",
  "video_url": "https://v3b.fal.media/files/b/0a8670fe/pY8UGl4_C452wOm9XUBYO_9ae04df8771c4f3f979fa5cabeca6ada.mp4"
}

Output Example

{
  "video": {
    "url": "https://v3b.fal.media/files/b/0a86711b/B_Z96VS4X9Dfd4M5ArB4H_c666e63f729f4a8fa1145c6727cef97d.mp4"
  }
}

Limitations

  • aspect_ratio restricted to: auto, 16:9, 9:16
  • safety_tolerance restricted to: 1, 2, 3, 4, 5, 6