Grok Imagine Video 1.5 (Preview) API
A Grok Imagine Video 1.5 preview model for short clips, shot design, and motion graphics.
- Model:
grok-imagine-video-1.5-preview - Provider: xAI
- Type: video
POST /v1/videos/generations
grok-imagine-video-1.5-preview: Submit a video task, required fields, nested response schema and a fictional example.
Basic request
Required parameters: model, prompt, image
Available parameters: model, prompt, duration, resolution, image, wait
Request parameters
| Parameter | Type | Required | Description |
|---|
model | string | Yes | Exact model identifier shown on this page. Options: grok-imagine-video-1.5-preview |
prompt | string | Yes | Video prompt or motion description. |
duration | number | No | Output duration in seconds; model limits apply. |
resolution | string | No | Supported output resolution. |
image | object | Yes | First frame for image-conditioned video; the 1.5 preview example uses this workflow. |
wait | boolean | No | False returns a task immediately; use the task-query endpoint. |
## Usage and response conventions
- Follow required fields and the nested schema. Optional settings without a documented numeric default use the current model default.
- Context, output budgets and media constraints differ by model. Unverified limits are not universal guarantees.
- An absent value differs from a reported zero. Read status, content and usage as actually returned.
- Replace example.invalid addresses with readable media you are authorized to use.
- Save generated files promptly; result links need not remain available indefinitely.
### Query the submitted task
Use its returned id with GET /v1/videos/generations/{id}. Do not resubmit generation to check progress. pending, submitted and processing are nonterminal; succeeded, failed, timeout and canceled are terminal. Read the result URL actually present in content, output or video.
## Reference
Terminology: [Grok Video](https://docs.x.ai/developers/model-capabilities/video/generation). Use this page's platform base URL and exact model identifier for requests. Reviewed: 2026-11-07.
## Complete nested field reference
Array elements use []. Required flags apply only when the enclosing object or content-block variant is used. Response fields can be absent or null as described; false does not imply a fabricated zero.
### Request headers
| Field path | Type | Required in its object | Meaning |
|---|---|---|---|
| `Content-Type` | string | Yes | JSON request-body content type. |
### Request body
| Field path | Type | Required in its object | Meaning |
|---|---|---|---|
| `model` | string | Yes | Exact model identifier shown on this page. Values: grok-imagine-video-1.5-preview |
| `prompt` | string | Yes | Video prompt or motion description. |
| `duration` | number | No | Output duration in seconds; model limits apply. Minimum: 1 |
| `resolution` | string | No | Supported output resolution. |
| `image` | object | Yes | First frame for image-conditioned video; the 1.5 preview example uses this workflow. |
| `image.url` | string | Yes | Reference-image URL. |
| `wait` | boolean | No | False returns a task immediately; use the task-query endpoint. Default: false |
### Response 200
| Field path | Type | Required in its object | Meaning |
|---|---|---|---|
| `id` | string | No | Opaque task identifier returned by submission; preserve it unchanged. |
| `model` | string | No | Exact model identifier shown on this page. |
| `status` | string | No | Task status; stop polling only at a terminal state. Values: pending, submitted, processing, succeeded, failed, timeout, canceled, unknown |
| `created_at` | integer | No | Creation time in Unix seconds. |
| `content` | object | No | Result object returned by some video models. |
| `content.video_url` | string | No | Video URL after success. |
| `content.last_frame_url` | string | No | Last-frame URL when provided. |
| `output` | object | No | Output object returned by some video models. |
| `output.video_url` | string | No | Video URL after success. |
| `output.task_status` | string | No | Task-status value when provided. |
| `video` | object | No | Video result returned by some video models. |
| `video.url` | string | No | Reference-image URL. |
| `error` | object | No | Error details on failure, cancellation or timeout; may be null on success. |
| `error.code` | string | No | Error code. |
| `error.message` | string | No | Readable error message. |
### Response 202
| Field path | Type | Required in its object | Meaning |
|---|---|---|---|
| `id` | string | No | Opaque task identifier returned by submission; preserve it unchanged. |
| `model` | string | No | Exact model identifier shown on this page. |
| `status` | string | No | Task status; stop polling only at a terminal state. Values: pending, submitted, processing, succeeded, failed, timeout, canceled, unknown |
| `created_at` | integer | No | Creation time in Unix seconds. |
| `content` | object | No | Result object returned by some video models. |
| `content.video_url` | string | No | Video URL after success. |
| `content.last_frame_url` | string | No | Last-frame URL when provided. |
| `output` | object | No | Output object returned by some video models. |
| `output.video_url` | string | No | Video URL after success. |
| `output.task_status` | string | No | Task-status value when provided. |
| `video` | object | No | Video result returned by some video models. |
| `video.url` | string | No | Reference-image URL. |
| `error` | object | No | Error details on failure, cancellation or timeout; may be null on success. |
| `error.code` | string | No | Error code. |
| `error.message` | string | No | Readable error message. |
### Error response structure
| Field path | Type | Required in its object | Meaning |
|---|---|---|---|
| `error` | object | No | Error details on failure, cancellation or timeout; may be null on success. |
| `error.message` | string | No | Readable error message. |
| `error.type` | string | No | Type discriminator; use the values documented for the enclosing object. |
| `error.code` | string | No | Error code. |
Request example
curl --request POST https://api.router.ai/v1/videos/generations \
--header "Authorization: Bearer $API_KEY" \
--header "Content-Type: application/json" \
--data-raw '{
"model": "grok-imagine-video-1.5-preview",
"prompt": "A fictional blue paper boat on a plain white background.",
"duration": 5,
"resolution": "720p",
"image": {
"url": "https://example.invalid/reference.png"
},
"wait": false
}'
Endpoint reference: Aliyun Wan video generation
GET /v1/videos/generations/{id}
Query a previously submitted task without generating another video.
## Usage and response conventions
- Follow required fields and the nested schema. Optional settings without a documented numeric default use the current model default.
- Context, output budgets and media constraints differ by model. Unverified limits are not universal guarantees.
- An absent value differs from a reported zero. Read status, content and usage as actually returned.
- Replace example.invalid addresses with readable media you are authorized to use.
- Save generated files promptly; result links need not remain available indefinitely.
### Query the submitted task
Use its returned id with GET /v1/videos/generations/{id}. Do not resubmit generation to check progress. pending, submitted and processing are nonterminal; succeeded, failed, timeout and canceled are terminal. Read the result URL actually present in content, output or video.
## Reference
Terminology: [Grok Video](https://docs.x.ai/developers/model-capabilities/video/generation). Use this page's platform base URL and exact model identifier for requests. Reviewed: 2026-11-07.
## Complete nested field reference
Array elements use []. Required flags apply only when the enclosing object or content-block variant is used. Response fields can be absent or null as described; false does not imply a fabricated zero.
### Path parameters
| Field path | Type | Required in its object | Meaning |
|---|---|---|---|
| `id` | string | Yes | Opaque task identifier returned to the same account. |
### Response 200
| Field path | Type | Required in its object | Meaning |
|---|---|---|---|
| `id` | string | No | Opaque task identifier returned to the same account. |
| `model` | string | No | Exact model identifier shown on this page. |
| `status` | string | No | Task status; stop polling only at a terminal state. Values: pending, submitted, processing, succeeded, failed, timeout, canceled, unknown |
| `created_at` | integer | No | Creation time in Unix seconds. |
| `content` | object | No | Result object returned by some video models. |
| `content.video_url` | string | No | Video URL after success. |
| `content.last_frame_url` | string | No | Last-frame URL when provided. |
| `output` | object | No | Output object returned by some video models. |
| `output.video_url` | string | No | Video URL after success. |
| `output.task_status` | string | No | Task-status value when provided. |
| `video` | object | No | Video result returned by some video models. |
| `video.url` | string | No | Reference-image URL. |
| `error` | object | No | Error details on failure, cancellation or timeout; may be null on success. |
| `error.code` | string | No | Error code. |
| `error.message` | string | No | Readable error message. |
### Error response structure
| Field path | Type | Required in its object | Meaning |
|---|---|---|---|
| `error` | object | No | Error details on failure, cancellation or timeout; may be null on success. |
| `error.message` | string | No | Readable error message. |
| `error.type` | string | No | Type discriminator; use the values documented for the enclosing object. |
| `error.code` | string | No | Error code. |
Request example
curl --request GET "https://api.router.ai/v1/videos/generations/$TASK_ID" \
--header "Authorization: Bearer $API_KEY"
Endpoint reference: Get a video task