Grok Imagine Video edit
Video
Grok Imagine Video edit
POST
Grok Imagine Video edit
This is an async API that only returns the
task_id of the async task.
Request Headers
Enum:
application/jsonBearer authentication format: Bearer {{API Key}}.
Request Body
Input video URL to edit. The video will be scaled to a maximum of 854x480 pixels and truncated to 8 seconds. Maximum input duration is 8.7 seconds; output retains the original video duration. Must be a publicly accessible URL.
Text description of the desired edit. Describe the style transformation or content changes to apply to the input video, such as “convert the video to anime style” or “make it look like a watercolor painting”.Length limit: 1 - 4096
Output video resolution. 480p generates faster; 720p provides higher quality. Output resolution matches the input resolution, up to the selected value.Possible values:
480p, 720pResponse
Use the task_id to call the Get Async Task Result API to retrieve the generated output.