curl --request POST \
--url https://api.modellix.ai/api/v1/xai/grok-imagine-video-1.5-i2v \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"image": "https://example.com/portrait.png",
"prompt": "Gentle breeze moves the subject's hair"
}
EOF{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-xai-i2v-002",
"model_id": "xai/grok-imagine-video-1.5-i2v",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-xai-i2v-002"
}
}
}{
"code": 400,
"message": "Invalid parameters: parameter 'image' is required"
}{
"code": 401,
"message": "Authentication failed: invalid API key"
}{
"code": 429,
"message": "Rate limit exceeded: 100 requests per minute, retry after 60 seconds"
}{
"code": 500,
"message": "Internal server error"
}Grok Imagine Video 1.5 I2V
[Core Function] Grok Imagine Video 1.5 I2V animates a single starting image into a video using the Grok Imagine 1.5 generation backbone. [Strengths] It excels at producing motion from one starting frame with the improved 1.5 model. [Best For] Highly recommended for: animating a photo or illustration when the 1.5 generation backbone is preferred. [Limitations] Do NOT use this model for text-only generation, for resolutions above 1080p, or for clips longer than 15 seconds; it requires a starting image and is limited to 480p/720p/1080p and 15s. [Routing] Use this model when the user provides one starting image and prefers the 1.5 backbone.
curl --request POST \
--url https://api.modellix.ai/api/v1/xai/grok-imagine-video-1.5-i2v \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"image": "https://example.com/portrait.png",
"prompt": "Gentle breeze moves the subject's hair"
}
EOF{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-xai-i2v-002",
"model_id": "xai/grok-imagine-video-1.5-i2v",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-xai-i2v-002"
}
}
}{
"code": 400,
"message": "Invalid parameters: parameter 'image' is required"
}{
"code": 401,
"message": "Authentication failed: invalid API key"
}{
"code": 429,
"message": "Rate limit exceeded: 100 requests per minute, retry after 60 seconds"
}{
"code": 500,
"message": "Internal server error"
}Authorizations
API Key authentication. Format: Bearer YOUR_API_KEY.
Body
xAI Grok Imagine 1.5 image-to-video request (grok-imagine-video-1.5 backbone). Animates a single starting frame; supports up to 1080p.
Motion description for the generated video
1"The subject slowly turns toward the camera and smiles"
Starting frame image URL or base64 data URI
1"https://example.com/portrait.png"
Video duration in seconds
1 <= x <= 158
Video aspect ratio
1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3 "16:9"
Video resolution (1.5 backbone supports up to 1080p)
480p, 720p, 1080p "1080p"