Skip to main content
POST
/
v3
/
async
/
grok-imagine-video-i2v
Grok Imagine Video Image-to-Video
curl --request POST \
  --url https://api.highwayapi.ai/v3/async/grok-imagine-video-i2v \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "image": "<string>",
  "prompt": "<string>",
  "duration": 123,
  "resolution": "<string>"
}
'
{
  "task_id": "<string>"
}
This is an asynchronous API and only returns the task_id of the asynchronous task.
This is an asynchronous API and will only return the task_id of the asynchronous task. You should use this task_id to request the Get Task Result API to retrieve the generated result.

Request Headers

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

Request Body

image
string
required
The input image URL used for video generation. Publicly accessible image URLs or base64-encoded data URIs are supported (for example, data:image/jpeg;base64,…).
prompt
string
required
A text prompt describing the motion or changes to apply to the input image. Detailed prompts describing scene dynamics, character actions, camera movement, and more are supported.Length limit: 1 - 4096
duration
integer
default:6
Video duration, in seconds (6-10). Longer videos cost more and are billed by the second.Value range: [6, 10]
resolution
string
default:"720p"
Output video resolution. 720p provides higher quality, while 480p generates faster.Allowed values: 720p, 480p

Response

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