Skip to main content
POST

Authorizations

Authorization
string
header
required

API Key authentication. Format: Bearer YOUR_API_KEY.

Body

application/json

xAI Grok Imagine 1.5 image-to-video request (grok-imagine-video-1.5 backbone). Animates a single starting frame; supports up to 1080p.

prompt
string
required

Motion description for the generated video

Minimum string length: 1
Example:

"The subject slowly turns toward the camera and smiles"

image
string
required

Starting frame image URL or base64 data URI

Minimum string length: 1
Example:

"https://example.com/portrait.png"

duration
integer
default:8

Video duration in seconds

Required range: 1 <= x <= 15
Example:

8

aspect_ratio
enum<string>

Video aspect ratio

Available options:
1:1,
16:9,
9:16,
4:3,
3:4,
3:2,
2:3
Example:

"16:9"

resolution
enum<string>
default:480p

Video resolution (1.5 backbone supports up to 1080p)

Available options:
480p,
720p,
1080p
Example:

"1080p"

Response

Task submitted successfully

code
integer
required

Response code, 0 indicates success

Example:

0

message
string
required

Response message

Example:

"success"

data
object
required

Detailed data about the submitted asynchronous task.