Video Extensions
Unified Video
Video Extensions
Use POST /v1/videos/extensions to perform segment extension for Grok tasks under the unified video pipeline.
POST
Video Extensions
Video Extensions
In the Grok unified video pipeline, segment extension is still submitted throughPOST /v1/videos/extensions (the same path as OpenAI-format Video Extensions), with the original task ID passed in video.url in the body.
- The route entry is
POST /v1/videos/extensions. model,prompt,video, andstart_timeare required.- Set
video.urlto the original task ID, for examplegrok:f673ba58-b053-4d8d-8938-c0b429de4d7f. - After a successful submission, use Query Task to poll for results.
Method and Path
Request Example
Response Example
Authentication
Body
Model name, for example
grok-video-3.Prompt for the extension segment.
Reference to the original video, which must include the
url field.Original video task ID, the same as the
id returned by unified Create Video.Segment start time (seconds).
Target extension duration (seconds). Defaults to
10, supports 6, 10, and 15.Response
New extensions task ID.
Task status, common values include
processing, completed, and failed.Most recent status update time (Unix timestamp).
Difference Between Extend and Extensions Under Unified Video
| Item | Video Extend | Video Extensions |
|---|---|---|
| Path | POST /v1/video/extend | POST /v1/videos/extensions |
| Original task ID | Body task_id | Body video.url |
| Query | Query Task | Query Task |