Grok Video
Grok Video Generation
Generate high-quality videos using Grok Video model
POST
- Grok Video generation model
- Select
grok-video-3model via the model parameter - Supports text-to-video and image-to-video
- Async task management, query results via task ID
Authorizations
All API requests require Bearer Token authenticationGet API Key: Visit the API Key Management Page to obtain your API KeyAdd to request headers:
Body
Video generation model nameSupported models:
grok-video-3- Grok video generation model
"grok-video-3"Text description for video generation
Video duration in secondsSupported values:
"6", "10", "15"Video resolutionSupported values:
480p, 720pVideo aspect ratioSupported formats:
16:9(landscape)9:16(portrait)3:2(landscape)2:3(portrait)1:1(square)
Array of reference image URLs for image-to-video generation⚠️ Only URL format is supported (base64 is no longer supported)
- Publicly accessible image URLs (http:// or https://)
- Minimum 1 image, maximum 3 images
- Use the Upload Image API to upload local images and get URLs
Response
Unique task identifier for querying task status
Object type, always
generation.taskModel name used
Task status
queued- Waiting to be processedin_progress- Processingcompleted- Successfully completedfailed- Failed
Task creation timestamp (Unix timestamp)
Task progress, usually
0 after submissionTask metadata