Grok Imagine Text-to-Video
Grok Imagine
Grok Imagine Text-to-Video
- Grok Imagine text-to-video generation model
- Supports
480p/720poutput, 1-15 seconds duration - Asynchronous processing mode, use the returned task ID to query status
- Generated video links are valid for 24 hours, please save them promptly
POST
Grok Imagine Text-to-Video
Authorizations
All APIs require Bearer Token authentication
Add to request header:
Authorization: Bearer YOUR_API_KEY
Body
application/json
grok-imagine-text-to-video: Text-to-video generation
Example:
"grok-imagine-text-to-video"
Text prompt describing the desired video content
Notes:
- Supports both Chinese and English
Example:
"A cinematic drone shot flying over a futuristic city at sunrise"
Output video duration (seconds)
Notes:
- Range:
1-15 - Default:
6if not provided
Example:
6
Output video aspect ratio
Options:
16:9,4:3,3:2,1:1,2:3,3:4,9:16
Notes:
- Default:
16:9if not provided
Example:
"16:9"
Output video resolution
Options:
480p720p
Notes:
- Default:
720pif not provided
Example:
"480p"
Response
Task created successfully
Task creation timestamp
Example:
1757165031
Task ID
Example:
"task-unified-1757165031-uyujaw3d"
Actual model name used
Specific task type
Available options:
video.generation.task Task progress percentage (0-100)
Required range:
0 <= x <= 100Example:
0
Task status
Available options:
pending, processing, completed, failed Example:
"pending"
Asynchronous task info
Task output type
Available options:
video Example:
"video"