> ## Documentation Index
> Fetch the complete documentation index at: https://docs.argil.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Grok Imagine Video 1.5

> Generate a video with xAI Grok Imagine Video 1.5 from text, from a start (and end) image, or guided by up to 7 reference images. 480p/720p, up to 15 s (10 s with references).

Model id `grok-imagine-video-1.5` · xAI · video · 3 modes: `text-to-video`, `image-to-video`, `reference-to-video`.

> [!NOTE]
>
> This page reflects the current catalog. Inputs, allowed values, limits and prices can change as the model evolves; the field names and their meaning do not. For the exact schema at any time, your agent calls [`get_model`](https://docs.argil.ai/v2/mcp/tools) with the mode.

## Text To Video

Mode `text-to-video`. Text to video.

### Input

| Field | Type | Required | Allowed | Default | Description |
| - | - | - | - | - | - |
| `prompt` | string | Yes | | | What the video should show: subject, action, camera and style. |
| `duration` | integer | Yes | 1 to 15 | | Video duration in seconds, 1-15. |
| `aspect_ratio` | string | | `1:1`, `16:9`, `9:16`, `4:3`, `3:4`, `3:2`, `2:3` | | Aspect ratio. |
| `resolution` | string | | `480p`, `720p` | | Video resolution: 480p (default) or 720p. |

### Pricing

3.87 credits/s (480p), 6.77 credits/s (720p), + 0.48 credits per input image (frame or reference).

Fixed price: charged as estimated.

For the exact price of a request, use [`estimate_generation`](https://docs.argil.ai/v2/mcp/tools).

### Example

The arguments of [`generate_media`](https://docs.argil.ai/v2/mcp/tools#generate_media):

```json theme={null}
{
  "model": "grok-imagine-video-1.5",
  "mode": "text-to-video",
  "input": {
    "prompt": "A ginger cat walks into a sunlit kitchen, handheld camera",
    "duration": 1,
    "aspect_ratio": "1:1",
    "resolution": "480p"
  }
}
```

## Image To Video

Mode `image-to-video`. Animate a start image, optionally to an end image.

### Input

| Field | Type | Required | Allowed | Default | Description |
| - | - | - | - | - | - |
| `prompt` | string | Yes | | | What the video should show: subject, action, camera and style. |
| `duration` | integer | Yes | 1 to 15 | | Video duration in seconds, 1-15. |
| `aspect_ratio` | string | | `1:1`, `16:9`, `9:16`, `4:3`, `3:4`, `3:2`, `2:3` | | Aspect ratio. |
| `resolution` | string | | `480p`, `720p` | | Video resolution: 480p (default) or 720p. |
| `first_frame` | [File](https://docs.argil.ai/v2/mcp/how-it-works.md#your-files) | | | | The image to animate, as the first frame. |
| `last_frame` | [File](https://docs.argil.ai/v2/mcp/how-it-works.md#your-files) | | | | Optional image to end on: the video goes from one to the other. |

### Pricing

3.87 credits/s (480p), 6.77 credits/s (720p), + 0.48 credits per input image (frame or reference).

Fixed price: charged as estimated.

For the exact price of a request, use [`estimate_generation`](https://docs.argil.ai/v2/mcp/tools).

### Example

The arguments of [`generate_media`](https://docs.argil.ai/v2/mcp/tools#generate_media):

```json theme={null}
{
  "model": "grok-imagine-video-1.5",
  "mode": "image-to-video",
  "input": {
    "prompt": "A ginger cat walks into a sunlit kitchen, handheld camera",
    "duration": 1,
    "aspect_ratio": "1:1",
    "resolution": "480p"
  }
}
```

## Reference To Video

Mode `reference-to-video`. A video guided by up to 7 reference images.

### Input

| Field | Type | Required | Allowed | Default | Description |
| - | - | - | - | - | - |
| `prompt` | string | Yes | | | What the video should show, naming the references \<IMAGE\_1>, \<IMAGE\_2>, etc. |
| `duration` | integer | Yes | 1 to 10 | | Video duration in seconds, 1-10. |
| `aspect_ratio` | string | | `1:1`, `16:9`, `9:16`, `4:3`, `3:4`, `3:2`, `2:3` | | Aspect ratio. |
| `resolution` | string | | `480p`, `720p` | | Video resolution: 480p (default) or 720p. |
| `references` | [File](https://docs.argil.ai/v2/mcp/how-it-works.md#your-files) list | Yes | 1 to 7 items | | References the output must follow. The kind of each one (image, video, audio) is read from the file; per-kind limits are in the mode’s `capabilities.references`. |

**References:** up to 7: 7 images. Assets, URLs and elements are accepted.

### Pricing

3.87 credits/s (480p), 6.77 credits/s (720p), + 0.48 credits per input image (frame or reference).

Fixed price: charged as estimated.

For the exact price of a request, use [`estimate_generation`](https://docs.argil.ai/v2/mcp/tools).

### Example

The arguments of [`generate_media`](https://docs.argil.ai/v2/mcp/tools#generate_media):

```json theme={null}
{
  "model": "grok-imagine-video-1.5",
  "mode": "reference-to-video",
  "input": {
    "prompt": "A ginger cat walks into a sunlit kitchen, handheld camera, keeping the look of the reference",
    "duration": 1,
    "aspect_ratio": "1:1",
    "resolution": "480p",
    "references": [
      "asset_91a3c7e5b2d84f6a8e0c1b9d7f3a5e24"
    ]
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.