Skip to main content
POST

Authorizations

Authorization
string
header
required

API Key authentication. Format: Bearer YOUR_API_KEY.

Body

application/json

xAI Grok Imagine Video 1.5 Lite image-to-video request. The input image is the first frame and the output aspect ratio follows that image. 1080p is upscaled from 720p.

prompt
string
required

Motion description for the generated video

Minimum string length: 1
Example:

"The subject blinks once"

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

resolution
enum<string>
default:480p

Video resolution. 1080p is upscaled from 720p

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

"480p"

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.