# Grok Imagine Video 1.5

> xAI's Grok Imagine Video 1.5 on the Kinovi API — text-to-video, image-to-video (first/last frame), and reference-to-video (up to 7 images), 1–15 s with audio.

Source: https://kinovi.ai/docs/models/grok-imagine-video-1.5

- Model ID: `grok-imagine-video-1.5/text-to-video`
- Type: Video
- Provider: xAI
- From: $0.0501 / s
- Model page: https://kinovi.ai/models/grok-imagine-video-1-5-text-to-video
- Playground: https://kinovi.ai/app/gallery?model=grok-imagine-video-1.5%2Ftext-to-video

## Models in this series

Grok Imagine Video 1.5 ships as three public faces with synchronized audio and 1–15 second clip durations.

| Model ID | Mode | Inputs | Max resolution | Model page |
|:--|:--|:--|:--|:--|
| `grok-imagine-video-1.5/text-to-video` | Text to video | Prompt only | `1080p` | [Text to Video](https://kinovi.ai/models/grok-imagine-video-1-5-text-to-video) |
| `grok-imagine-video-1.5/image-to-video` | Image to video | 1 image (first frame, up to `1080p`) or 2 images (first + last frame, up to `720p`) + optional prompt | `1080p` (1 img) / `720p` (2 imgs) | [Image to Video](https://kinovi.ai/models/grok-imagine-video-1-5-image-to-video) |
| `grok-imagine-video-1.5/reference-to-video` | Reference to video | 1–7 reference images (`imageUrls`) + required prompt | `720p` | [Reference to Video](https://kinovi.ai/models/grok-imagine-video-1-5-reference-to-video) |

## Quickstart

Two calls: submit a task with `createTask`, then poll `recordInfo` with the returned `taskId` until `status` is `success` or `fail`.

Every request carries `Authorization: Bearer <yourApiKey>`. Create and manage keys at [kinovi.ai/api-keys](https://kinovi.ai/api-keys); see the [API reference](https://kinovi.ai/docs/api) for rate limits and error codes.

### Submit a task

`POST https://kinovi.ai/api/v1/jobs/createTask`

```json
{
  "model": "grok-imagine-video-1.5/text-to-video",
  "inputs": {
    "prompt": "A vintage convertible cruising down a coastal highway at sunset, golden ocean spray catching the light, warm analog film grain.",
    "aspectRatio": "16:9",
    "duration": 8,
    "resolution": "720p",
    "generateAudio": true
  }
}
```

Response `200 OK` — the task is queued and credits are reserved. Use `taskId` to poll for the result.

```json
{
  "taskId": "task_01j9examplegrok150001"
}
```

#### Error responses

| HTTP | Body | When |
|:--|:--|:--|
| `400` | `{ "message": "Invalid inputs for model", "errors": [ … ] }` | Wrong image count for the chosen face, `resolution: "1080p"` with `reference-to-video` or 2-frame `image-to-video`, `duration` outside `1`–`15`, or `prompt` over 4,000 chars. Nothing is charged. |
| `401` | `{ "message": "Invalid API Key" }` | Missing or wrong `Authorization` header. |
| `402` | `{ "message": "Insufficient credits", "required": 152, "available": 0 }` | Not enough credits for this duration × resolution. |
| `429` | `{ "message": "Concurrency limit reached (…)", "limit": 5, "current": 5 }` | Too many tasks in progress; wait for one to finish. |

### Query the result

`GET https://kinovi.ai/api/v1/jobs/recordInfo?taskId=task_…`

Poll every few seconds until `status` is `success` or `fail`.

| `status` | Meaning |
|:--|:--|
| `waiting` | Queued, not started yet |
| `generating` | Running |
| `success` | Done — read `output[].url` |
| `fail` | Failed — see `error.code` / `error.message`; credits are refunded |

## Parameters

Send these inside the `createTask` body. Everything optional falls back to the default shown.

Reference media fields take any publicly reachable URL — host the files yourself, or upload them to Kinovi first with `POST /api/v1/uploads` and pass the returned `url` (see [Uploading Assets](https://kinovi.ai/docs/uploads)).

| Field | Type | Default | Applies to | Description |
|:--|:--|:--|:--|:--|
| `model` | `string` | **required** | All | `grok-imagine-video-1.5/text-to-video` · `grok-imagine-video-1.5/image-to-video` · `grok-imagine-video-1.5/reference-to-video`. |
| `inputs.prompt` | `string` | – | T2V (**required**), I2V (optional), Ref (**required**) | Scene and motion prompt, max **4,000** characters. |
| `inputs.imageUrls` | `string[]` | – | I2V (**required**), Ref (**required**) | I2V: **1** image (first frame) or **2** images (first + last frame). Ref: **1–7** reference images. `imageUrl` / `uploadedUrls` accepted as mutually exclusive aliases. Your own hosted URLs or [Kinovi uploads](https://kinovi.ai/docs/uploads). |
| `inputs.aspectRatio` | `string` | `16:9` | All | `16:9` · `9:16` · `1:1` · `4:3` · `3:4` · `3:2` · `2:3` · `21:9` · `5:2`. |
| `inputs.duration` | `integer` | `8` | All | Clip length in whole seconds, `1` to `15`. |
| `inputs.resolution` | `string` | `480p` | All | `480p` · `720p` · `1080p`. `reference-to-video` and 2-image (first + last frame) `image-to-video` cap at `720p`. |
| `inputs.generateAudio` | `boolean` | `true` | All | Generate synchronized audio. Does not change price. |
| `callBackUrl` | `string` | – | All | Optional webhook called when the task finishes. |

### Full request (`grok-imagine-video-1.5/reference-to-video`)

```json
{
  "model": "grok-imagine-video-1.5/reference-to-video",
  "inputs": {
    "prompt": "The character from the first image steps into the misty neon street from the second image and looks back over their shoulder.",
    "imageUrls": [
      "https://static.kinovi.ai/generated-images/task_ff01ii3zvib7ndbx8negnh6q-0.png",
      "https://static.kinovi.ai/generated-images/task_u91bn4h34rr0zy2m5o9z31si-0.png"
    ],
    "aspectRatio": "16:9",
    "duration": 8,
    "resolution": "720p",
    "generateAudio": true
  },
  "callBackUrl": "https://example.com/hooks/kinovi"
}
```

## Pricing

All three faces share the same per-second rates by `resolution`. `generateAudio` does not add extra charges. Live prices: [Text to Video](https://kinovi.ai/models/grok-imagine-video-1-5-text-to-video) · [Image to Video](https://kinovi.ai/models/grok-imagine-video-1-5-image-to-video) · [Reference to Video](https://kinovi.ai/models/grok-imagine-video-1-5-reference-to-video).

| | 480p | 720p | 1080p |
|:--|--:|--:|--:|
| **per second** | $0.0501 / s | $0.0878 / s | $0.1567 / s |

`duration` × the rate is charged at submit; failed tasks are refunded in full. Note that `1080p` is only available on `text-to-video` and single-frame `image-to-video`.

## Response

### Result fields

**JSON**

```json
{
  "taskId": "task_01j9examplegrok150001",
  "model": "grok-imagine-video-1.5/text-to-video",
  "status": "success",
  "creditsUsed": 152.38,
  "output": [
    {
      "url": "https://static.kinovi.ai/videos/grok15_example.mp4",
      "width": 1280,
      "height": 720,
      "mediaType": "video/mp4"
    }
  ],
  "error": null,
  "createTime": 1790090613532,
  "completeTime": 1790090758900
}
```

**Table**

| Field | Type | Description |
|:--|:--|:--|
| `taskId` | `string` | The task id returned by `createTask`. |
| `model` | `string` | The Grok Imagine Video 1.5 face id submitted. |
| `status` | `string` | `waiting` · `generating` · `success` · `fail`. Stop polling on `success` or `fail`. |
| `creditsUsed` | `number` | Credits actually charged. Refunded automatically when `status` is `fail`. |
| `output` | `object[]` | Generated video; empty until `success`. Stored by Kinovi for 7 days after generation. |
| `output[0].url` | `string` | Download URL of the `.mp4` clip. |
| `output[0].width` | `integer` | Pixel width. |
| `output[0].height` | `integer` | Pixel height. |
| `output[0].mediaType` | `string` | `video/mp4`. |
| `error` | `object \| null` | `{ code, message }` when the task failed, otherwise `null`. |
| `createTime` | `number` | Unix epoch milliseconds when the task was accepted. |
| `completeTime` | `number \| null` | Unix epoch milliseconds when the task reached a terminal status. |

## Examples

### Text to video (`grok-imagine-video-1.5/text-to-video`)

**cURL**

```bash
curl -sS -X POST "https://kinovi.ai/api/v1/jobs/createTask" \
  -H "Authorization: Bearer $KINOVI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-imagine-video-1.5/text-to-video",
    "inputs": {
      "prompt": "A fox leaping playfully through fresh snow in a pine forest at golden hour, crisp handheld tracking shot.",
      "aspectRatio": "16:9",
      "duration": 6,
      "resolution": "720p",
      "generateAudio": true
    }
  }'
```

**Node.js**

```ts
const API_BASE = "https://kinovi.ai/api/v1";
const headers = {
  Authorization: `Bearer ${process.env.KINOVI_API_KEY}`,
  "Content-Type": "application/json",
};

const { taskId } = await fetch(`${API_BASE}/jobs/createTask`, {
  method: "POST",
  headers,
  body: JSON.stringify({
    model: "grok-imagine-video-1.5/text-to-video",
    inputs: {
      prompt: "A fox leaping playfully through fresh snow in a pine forest at golden hour, crisp handheld tracking shot.",
      aspectRatio: "16:9",
      duration: 6,
      resolution: "720p",
      generateAudio: true,
    },
  }),
}).then((r) => r.json());

while (true) {
  const info = await fetch(`${API_BASE}/jobs/recordInfo?taskId=${encodeURIComponent(taskId)}`, { headers }).then((r) =>
    r.json(),
  );
  if (info.status === "success") {
    console.log(info.output[0].url);
    break;
  }
  if (info.status === "fail") throw new Error(JSON.stringify(info.error));
  await new Promise((r) => setTimeout(r, 3000));
}
```

**Python**

```python
import json, os, time, urllib.request

API_BASE = "https://kinovi.ai/api/v1"
HEADERS = {
    "Authorization": f"Bearer {os.environ['KINOVI_API_KEY']}",
    "Content-Type": "application/json",
}

payload = {
    "model": "grok-imagine-video-1.5/text-to-video",
    "inputs": {
        "prompt": "A fox leaping playfully through fresh snow in a pine forest at golden hour, crisp handheld tracking shot.",
        "aspectRatio": "16:9",
        "duration": 6,
        "resolution": "720p",
        "generateAudio": True,
    },
}

req = urllib.request.Request(f"{API_BASE}/jobs/createTask", data=json.dumps(payload).encode(), headers=HEADERS)
task_id = json.load(urllib.request.urlopen(req))["taskId"]

while True:
    info = json.load(urllib.request.urlopen(urllib.request.Request(f"{API_BASE}/jobs/recordInfo?taskId={task_id}", headers=HEADERS)))
    if info["status"] == "success":
        print(info["output"][0]["url"])
        break
    if info["status"] == "fail":
        raise RuntimeError(info["error"])
    time.sleep(3)
```

### First + last frame (`grok-imagine-video-1.5/image-to-video`)

**cURL**

```bash
curl -sS -X POST "https://kinovi.ai/api/v1/jobs/createTask" \
  -H "Authorization: Bearer $KINOVI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-imagine-video-1.5/image-to-video",
    "inputs": {
      "prompt": "Smooth camera push-in transitioning cleanly from the opening frame to the closing frame.",
      "imageUrls": [
        "https://static.kinovi.ai/generated-images/task_u91bn4h34rr0zy2m5o9z31si-0.png",
        "https://static.kinovi.ai/generated-images/task_u91bn4h34rr0zy2m5o9z31si-1.png"
      ],
      "duration": 5,
      "resolution": "720p"
    }
  }'
```

**Node.js**

```ts
const res = await fetch("https://kinovi.ai/api/v1/jobs/createTask", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.KINOVI_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    model: "grok-imagine-video-1.5/image-to-video",
    inputs: {
      prompt: "Smooth camera push-in transitioning cleanly from the opening frame to the closing frame.",
      imageUrls: [
        "https://static.kinovi.ai/generated-images/task_u91bn4h34rr0zy2m5o9z31si-0.png",
        "https://static.kinovi.ai/generated-images/task_u91bn4h34rr0zy2m5o9z31si-1.png",
      ],
      duration: 5,
      resolution: "720p",
    },
  }),
});
console.log(await res.json());
```

**Python**

```python
import json, os, urllib.request

payload = {
    "model": "grok-imagine-video-1.5/image-to-video",
    "inputs": {
        "prompt": "Smooth camera push-in transitioning cleanly from the opening frame to the closing frame.",
        "imageUrls": [
            "https://static.kinovi.ai/generated-images/task_u91bn4h34rr0zy2m5o9z31si-0.png",
            "https://static.kinovi.ai/generated-images/task_u91bn4h34rr0zy2m5o9z31si-1.png",
        ],
        "duration": 5,
        "resolution": "720p",
    },
}
req = urllib.request.Request(
    "https://kinovi.ai/api/v1/jobs/createTask",
    data=json.dumps(payload).encode(),
    headers={"Authorization": f"Bearer {os.environ['KINOVI_API_KEY']}", "Content-Type": "application/json"},
)
print(json.load(urllib.request.urlopen(req)))
```

## FAQ

### Why did `1080p` return `400` on my image-to-video or reference-to-video call?

Grok Imagine Video 1.5 caps `reference-to-video` and 2-image (first + last frame) `image-to-video` at `720p`. `1080p` is available for `text-to-video` and single-frame `image-to-video`.

### How is Grok Imagine Video 1.5 different from Grok Imagine Video 1.5 Lite?

Full 1.5 supports first + last frame transitions, 1–7 image `reference-to-video`, and native `1080p` on single-frame I2V and T2V. [Grok Imagine Video 1.5 Lite](https://kinovi.ai/docs/models/grok-imagine-video-1.5-lite) starts at `$0.0125 / s` for fast text-to-video and single-frame image-to-video.

## Related models

- [Grok Imagine Video 1.5 Lite](https://kinovi.ai/docs/models/grok-imagine-video-1.5-lite): Budget xAI video generation starting at $0.0125 / s for text-to-video and single-frame image-to-video.
- [Kling 4.0](https://kinovi.ai/docs/models/kling-4.0): Kuaishou's Kling 4.0 with multi-keyframe and reference-to-video up to 30 s.
- [Seedance 2.5 Flash](https://kinovi.ai/docs/models/seedance2-5-flash): Fast 4–30 s video generation from ByteDance starting at $0.0409 / s.
