curl --request POST \
--url https://api.modellix.ai/api/v1/xai/grok-imagine-video-i2v \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"image": "https://example.com/portrait.png",
"prompt": "The subject slowly turns toward the camera and smiles"
}
'{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-xai-i2v-001",
"model_id": "xai/grok-imagine-video-i2v",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-xai-i2v-001"
}
}
}{
"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 I2V
[Core Function] Grok Imagine Video I2V animates a single starting image into a video. [Strengths] It excels at producing smooth motion from one starting frame, guided by a text prompt for the desired movement. [Best For] Highly recommended for: bringing a photo or illustration to life, dynamic product showcases, and quick cinematic motion from a still. [Limitations] Do NOT use this model for text-only generation, for resolutions above 720p, or for clips longer than 15 seconds; it requires a starting image and is limited to 480p/720p and 15s. [Routing] Use this model when the user provides exactly one starting image. For reference-driven character video, use Reference-to-Video; for text-only video, use Text-to-Video.
curl --request POST \
--url https://api.modellix.ai/api/v1/xai/grok-imagine-video-i2v \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"image": "https://example.com/portrait.png",
"prompt": "The subject slowly turns toward the camera and smiles"
}
'{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-xai-i2v-001",
"model_id": "xai/grok-imagine-video-i2v",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-xai-i2v-001"
}
}
}{
"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 image-to-video request (standard grok-imagine-video backbone). Animates a single starting frame. Resolution limited to 480p/720p.
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
480p, 720p "720p"