Skip to main content
POST
/
v3
/
async
/
grok-imagine-video-t2v
Grok Imagine Video Text-to-Video
curl --request POST \
  --url https://api.highwayapi.ai/v3/async/grok-imagine-video-t2v \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "prompt": "<string>",
  "duration": 123,
  "resolution": "<string>",
  "aspect_ratio": "<string>"
}
'
{
  "task_id": "<string>"
}
This is an asynchronous API and only returns the asynchronous task’s task_id.
This is an asynchronous API and only returns 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

prompt
string
required
The text description of the video to generate. Rich, detailed prompts are supported for generating high-quality videos, covering various styles such as cinematic scenes, natural landscapes, and character animations.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.Available values: 720p, 480p
aspect_ratio
string
default:"16:9"
The aspect ratio of the generated video. 16:9 is suitable for widescreen, 9:16 is suitable for mobile portrait screens, and 1:1 is suitable for social media.Available values: 16:9, 1:1, 9:16

Response Information

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