##All APIs require Bearer Token authentication##
Get API Key:
Visit API Key Management Page to get your API Key
Add to request header:
Authorization: Bearer YOUR_API_KEYModel name
grok-imagine-image-to-video "grok-imagine-image-to-video"
Video description prompt
"The person starts dancing"
Reference image URL list
Requirements:
1 image per request10MB1["https://example.com/image.jpg"]Video duration (seconds), choose 6 or 10 seconds
6, 10 6
Generation style
Options:
fun: Fun stylenormal: Normal style (default)spicy: Spicy stylefun, normal, spicy "normal"
Video resolution, default is 480p
Options:
480p: Standard definition (default)720p: High definition480p, 720p "480p"
HTTPS callback URL after task completion
Callback Timing:
Security Restrictions:
2048 charactersCallback Mechanism:
10 seconds3 retries on failure (after 1/2/4 seconds)"https://your-domain.com/webhooks/video-task-completed"
Video task created successfully
Task creation timestamp
1757169743
Task ID
"task-unified-1757169743-7cvnl5zw"
Actual model name used
"grok-imagine-image-to-video"
Specific task type
video.generation.task Task progress percentage (0-100)
0 <= x <= 1000
Task status
pending, processing, completed, failed "pending"
Video task detailed information
Task output type
text, image, audio, video "video"
Usage and billing information