extend_video
Extend an existing video by providing a follow-up prompt and a public video URL. Specify the duration of the extension up to 10 seconds.
Instructions
Extend an existing video with a follow-up prompt.
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).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | grok-imagine-video | |
| prompt | Yes | ||
| duration | No | ||
| video_url | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | Human-formatted output (includes footers, citations, cost summary). | |
| model | Yes | Actual executing model ID (e.g. 'grok-4.5'). | |
| plane | No | API | |
| route | Yes | High-level route (fast/agentic/research/etc.). | |
| images | No | Grok Imagine image URLs. | |
| tokens | No | Total tokens consumed. | |
| profile | No | Internal routing profile. | |
| summary | No | Legacy/duplicate formatted summary of the media generation. | |
| cost_usd | No | Exact USD cost from xAI billing metadata. | |
| response | Yes | Raw model output or primary content. | |
| citations | No | Native xAI/X citations with URL + snippet. | |
| video_url | No | ||
| latency_sec | No | ||
| duration_sec | No | ||
| finish_reason | No | unknown | |
| imagine_params | No | Original prompt + seed for reproducibility. | |
| reasoning_effort | No | Grok 4.5+ native reasoning level. |