Grok Imagine Edit Video
xAI
Grok Imagine Edit Video
POST
Grok Imagine Edit Video
Edit source videos with xAI’s Grok Imagine Video model
Authorizations
API Key for API endpoints
Body
Text description of the desired edit
URL of the input video to edit. The video will be resized to a maximum area of 854x480 pixels and truncated to 8 seconds.
Resolution of the output video
Available options:
auto, 480p, 720p Number of results to generate (1-4)
Required range:
1 <= x <= 4Response
Generation submission accepted
Generation id.
Queue status
Available options:
IN_QUEUE, IN_PROGRESS, COMPLETED, FAILED, CANCELED Normalized input payload for the generation task.
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.