Skip to main content
POST
Grok Imagine image to video
This is an async API that only returns the task_id of the async task.
This is an async API that only returns the task_id of the async task. Use the task_id to call the Get Async Task Result API to retrieve the generated result.

Request Headers

Content-Type
string
required
Enum: application/json
Authorization
string
required
Bearer authentication format: Bearer {{API Key}}.

Request Body

image
string
required
Input image URL for video generation. Supports publicly accessible image URLs or base64-encoded data URIs (e.g., data:image/jpeg;base64,…).
prompt
string
required
Text prompt describing the motion or transformation to apply to the input image. Supports detailed prompts describing scene dynamics, character actions, and camera movements.Length limit: 1 - 4096
duration
integer
default:6
Video duration in seconds (6-10). Longer videos cost more and are billed per second.Range: [6, 10]
resolution
string
default:"720p"
Output video resolution. 720p provides higher quality; 480p generates faster.Possible values: 720p, 480p

Response

task_id
string
required
Use the task_id to call the Get Async Task Result API to retrieve the generated output.