Grok Imagine Video
Authorizations
API Key for API endpoints
Body
- Text/Image
- Extend Video
- Edit Video
Workflow type: text/image-to-video, extend-video, or edit-video.
"text-image"Prompt text for generation, continuation, or editing.
Optional image URL used in text-image mode.
Source video URL for extend-video and edit-video modes.
Output duration in seconds.
1 <= x <= 15Output resolution. text-image supports 480p/720p; edit-video also supports auto.
720p, 480p Aspect ratio for text-image generation.
16:9, 9:16, 1:1, 3:4, 4:3, 2:3, 3:2 1 <= x <= 4Response
Generation submission accepted
Generation id.
Queue status
IN_QUEUE, IN_PROGRESS, COMPLETED, FAILED, CANCELED Normalized input payload for the generation task.
- Text/Image
- Extend Video
- Edit Video
Credit usage breakdown for the request
Machine-readable generation error code. Present when status is FAILED.
Sanitized human-readable failure message. Present when status is FAILED.