Grok Imagine Edit-Video
- Grok Imagine video editing model
- Input video is scaled to 854×480 and truncated to 8 seconds
- Supports
auto/480p/720poutput - Asynchronous processing mode, use the returned task ID to query task status
- Generated video links are valid for 24 hours, please save them promptly
Authorizations
All APIs require Bearer Token authentication
Add to request header:
Authorization: Bearer YOUR_API_KEY
Body
grok-imagine-edit-video: Edit video based on text description
"grok-imagine-edit-video"
Text prompt describing the desired video edits
Notes:
- Supports both Chinese and English
- Maximum
4096characters - Input video is scaled to max 854×480 pixels and truncated to 8 seconds
4096"Change the sky to a dramatic sunset with orange and purple clouds"
Publicly accessible URL of the input video
Notes:
- Must be a publicly accessible video URL
- Video will be scaled to max 854×480 pixels and truncated to 8 seconds
"https://example.com/input-video.mp4"
Output video resolution
Options:
auto— Automatically match input resolution480p720p
Notes:
- Defaults to
autoif not provided
"auto"
Response
Task created successfully
Task creation timestamp
1757165031
Task ID
"task-unified-1757165031-uyujaw3d"
Actual model name used
Specific task type
video.generation.task Task progress percentage (0-100)
0 <= x <= 1000
Task status
pending, processing, completed, failed "pending"
Asynchronous task information
Task output type
video "video"