extend_video
Extends a video from its last frame by generating a follow-up sequence based on a user-defined prompt. Specify the action and duration for the extended segment.
Instructions
Extend an existing video with a follow-up prompt.
Continues the source video seamlessly from its last frame. `duration` sets
the length of the extension only, not the total output. For example, a
10 second input plus `duration=5` yields a 15 second final video.
Args:
prompt: What should happen in the extended segment.
video_url: Public URL of the source video (.mp4, 2–15 s).
model: Video model (default `grok-imagine-video`).
duration: Length of the extension in seconds (2–10, default 6).
show_usage: Append a token usage and cost footer to the result (default False).
Returns:
Markdown block with the extended video URL and total duration.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | grok-imagine-video | |
| prompt | Yes | ||
| duration | No | ||
| video_url | Yes | ||
| show_usage | No |