Video Extend
Use `POST /v1/video/extend` to extend segments of an existing Grok task via the unified video format.
https://zx1.deepwl.net/v1/video/extendcurl -X POST https://zx1.deepwl.net/v1/video/extend \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '
{
"model": "grok-video-3",
"prompt": "play with another white cat",
"task_id": "grok:2d8ef725-c4a9-46e0-b133-eca6c297e830",
"start_time": 4,
"aspect_ratio": "3:2",
"size": "1080P",
"upscale": true
}'{
"id": "grok:48a67431-0708-46d1-9ab9-83cb84700153",
"status": "processing",
"status_update_time": 1762685256
}The Grok unified video extend endpoint is POST /v1/video/extend. Unlike OpenAI-format Video Extend, the original task ID is passed in the Body via task_id.
- Required:
model,prompt,task_id. - You can specify which second of the original video to start extending from with
start_time.
Request Headers
Authorizationstring必填Authentication header. Uses a Bearer token, e.g. Bearer YOUR_API_KEY.
Content-Typestring必填Request content type, must be application/json.
Request Body
modelstring必填Model name, for example grok-video-3.
promptstring必填Prompt for the extended segment.
task_idstring必填Original video task ID.
imagesarray<string>List of reference image URLs to add visual constraints as needed.
sizestringResolution specification, pass 720P or 1080P.
aspect_ratiostringVideo aspect ratio, for example 3:2.
start_timeintegerWhich second of the original video to start extending from.
upscalebooleanWhether to apply high-definition enhancement to the output.
Request Examples
Response Examples
Response Fields
idstringNew extend task ID.
statusstringTask status, common values include processing, completed, and failed.
status_update_timeintegerMost recent status update time (Unix timestamp).