API docs / Video models
grok-imagine-video-extension API
Extend videos with xAI's Grok Imagine Video model. Provide a source video and describe what happens next.
- Model id
xai/grok-imagine-video-extension- Provider
- xai
- Output
- Video
- Price
- Depends on the options; the same as on voor.ai.
Request
POST https://voor.ai/v1/generations with "model": "xai/grok-imagine-video-extension". Poll GET /v1/tasks/{id} or receive the signed webhook. See the overview for keys, idempotency, webhooks and errors.
curl https://voor.ai/v1/generations \
-H "Authorization: Bearer $VOOR_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "xai/grok-imagine-video-extension",
"input": {
"prompt": "A red fox standing in fresh snow at golden hour, soft light",
"source_video": [
"https://example.com/input.png"
]
},
"callback_url": "https://example.com/webhooks/voor"
}'
# Then poll the task (or wait for the webhook):
curl https://voor.ai/v1/tasks/TASK_ID \
-H "Authorization: Bearer $VOOR_API_KEY"Input parameters
| Name | Type | Details |
|---|---|---|
promptrequired | string | Text description of what should happen next in the video |
source_videorequired | array of URLs | MP4 source clip. Clips over 15 seconds are accepted: the model continues from the last 15 seconds and you receive the full original plus the new footage as one video. Each file: 2–300s. Up to 1 files · Accepts video/* |
duration_seconds | number | Length of the extension in seconds Default: Min 2 · Max 10 |