curl --request POST \
--url https://api.modellix.ai/api/v1/xai/grok-imagine-video-extend \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "The camera continues forward into the tunnel",
"video": "https://example.com/input.mp4"
}
'{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-xai-v2v-002",
"model_id": "xai/grok-imagine-video-extend",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-xai-v2v-002"
}
}
}{
"code": 400,
"message": "Invalid parameters: parameter 'video' 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 Extend
xAI’s video extension model for continuing a clip from its last frame with new prompt-guided action. It appends 2 to 10 seconds and keeps the source shape, up to 720p.
POST
/
xai
/
grok-imagine-video-extend
curl --request POST \
--url https://api.modellix.ai/api/v1/xai/grok-imagine-video-extend \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "The camera continues forward into the tunnel",
"video": "https://example.com/input.mp4"
}
'{
"code": 0,
"message": "success",
"data": {
"status": "pending",
"task_id": "task-xai-v2v-002",
"model_id": "xai/grok-imagine-video-extend",
"get_result": {
"method": "GET",
"url": "https://api.modellix.ai/api/v1/tasks/task-xai-v2v-002"
}
}
}{
"code": 400,
"message": "Invalid parameters: parameter 'video' 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"
}Body
application/json
xAI Grok Imagine video extend request. duration controls the length of the appended segment, not the total video length.