Skip to main content
POST
/
v3
/
async
/
grok-imagine-video-t2v
Grok Imagine text to video
curl --request POST \
  --url https://api.myrouter.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 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

prompt
string
required
Text description of the video to generate. Supports rich, detailed prompts for high-quality video generation across multiple styles, including cinematic scenes, natural landscapes, character animations, and more.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
aspect_ratio
string
default:"16:9"
Aspect ratio of the generated video. 16:9 for widescreen, 9:16 for mobile portrait, 1:1 for social media.Possible values: 16:9, 1:1, 9:16

Response

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