---
title: "Grok Imagine API: images, video and pricing"
description: Grok Imagine by xAI in the Clipia API — image and video slugs, Grok Imagine Video 1.5 and Grok Video, credit prices, a curl and SDK example, the API key and how to try it.
icon: Clapperboard
---

Grok Imagine is xAI's family of image and video models: quick creative images, photo edits and short clips with sound the model writes itself. In the Clipia API every Grok Imagine mode has its own slug and is called with the same `POST /v1/models/{slug}` request and one Clipia API key.

| Model | API slug | What it does |
| --- | --- | --- |
| Grok Imagine | `grok-imagine/text-to-image` | An image from a description |
| Grok Imagine (Image-to-Image) | `grok-imagine/image-to-image` | Edits one photo by description |
| Grok Imagine Video 1.5 | `grok-imagine-video-1-5` | Video from text or a photo: 5–15 seconds, up to 1080p, with sound |
| Grok Video | `grok-imagine/text-to-video`, `grok-imagine/image-to-video` | The earlier video model: 6 or 10 seconds, 480p or 720p, with sound |

Slugs with a slash are passed in the path as is: `POST /v1/models/grok-imagine/text-to-image`. The SDKs encode the slash themselves; see [Slugs with a slash](/en/docs/api-reference/models#mcp-only).

<Callout type="info" title="Check availability in your environment">
Use a slug only when `GET /v1/models` returns it for your API key. A model that is switched off disappears from the list, and submitting a generation returns `404` with the code `not_found`.
</Callout>

To generate without code, open the [Grok Imagine Video 1.5 page](/en/video-models/grok-imagine-video-1-5) or the [Grok Imagine image page](/en/image-models/grok-imagine).

## Get an API key [#api-key]

One Clipia key works for every model in the catalog, Grok Imagine included; you don't need an xAI account.

1. Sign in and open the [Developer Console](/en/developer), **API keys** tab.
2. Create a live key (`clipia_live_…`) for real generations or a test key (`clipia_test_…`) for the [sandbox](/en/docs/getting-started/sandbox): instant test results with no charge.
3. Keep the key in the `CLIPIA_KEY` environment variable on your server — it is the password to your credit balance.

Generation with a live key works while the account has an active subscription; see [Managing keys](/en/docs/api-reference/keys) and [Authentication](/en/docs/getting-started/authentication).

## Pricing [#pricing]

| Request | Price |
| --- | --- |
| Grok Imagine, one image | 2 credits |
| Grok Imagine, editing a photo | 2 credits |
| Grok Imagine Video 1.5, 5 s, 480p | 5 credits |
| Grok Imagine Video 1.5, 5 s, 720p | 9 credits |
| Grok Imagine Video 1.5, 5 s, 1080p | 20 credits |
| Grok Imagine Video 1.5, 10 s, 720p | 18 credits |
| Grok Imagine Video 1.5, 15 s, 720p | 27 credits |
| Grok Video, 6 s | 10 credits |
| Grok Video, 10 s | 15 credits |

Sound is included in the price of both video models. Grok Video costs the same at 480p and 720p.

<Callout type="info" title="Pricing">
Prices come from the service pricing and are current as of November 2026. Credits are reserved when a job starts and a failed generation returns them. Get the exact price for your input with [cost estimation](/en/docs/api-reference/estimate).
</Callout>

## Generate a video [#example]

<Tabs items={['cURL', 'TypeScript', 'Python']}>
<Tab value="cURL">

```bash
curl -X POST https://api.clipia.ai/v1/models/grok-imagine-video-1-5 \
  -H "Authorization: Bearer $CLIPIA_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input": {
      "prompt": "A red fox runs through fresh snow at sunrise, slow motion, the camera tracks alongside",
      "duration": "5",
      "resolution": "720p",
      "aspect_ratio": "16:9"
    }
  }'
```

</Tab>
<Tab value="TypeScript">

```ts
import { createClient } from 'clipia-ai';

const clipia = createClient({ apiKey: process.env.CLIPIA_KEY! });

const out = await clipia.subscribe('grok-imagine-video-1-5', {
  input: {
    prompt: 'A red fox runs through fresh snow at sunrise, slow motion, the camera tracks alongside',
    duration: '5',
    resolution: '720p',
    aspect_ratio: '16:9',
  },
});

console.log(out.output?.video?.url, out.cost);
```

</Tab>
<Tab value="Python">

```python
import os
from clipia import Clipia

clipia = Clipia(api_key=os.environ["CLIPIA_KEY"])

out = clipia.subscribe(
    "grok-imagine-video-1-5",
    input={
        "prompt": "A red fox runs through fresh snow at sunrise, slow motion, the camera tracks alongside",
        "duration": "5",
        "resolution": "720p",
        "aspect_ratio": "16:9",
    },
)

print(out.output, out.cost)
```

</Tab>
</Tabs>

A video takes from one to a few minutes. The submit returns a `request_id` and the reserved cost; the SDK `subscribe` waits for the result itself. Without the SDK, poll [`GET /v1/requests/{id}/status`](/en/docs/api-reference/status) or pass a `webhook_url`, then read `output.video.url` in the [result](/en/docs/api-reference/result). For an image, send the same request to `grok-imagine/text-to-image` with `prompt` and `aspect_ratio`; to edit a photo, call `grok-imagine/image-to-image` with the photo in `image_url`.

## Parameters [#parameters]

Catalog snapshot as of November 27, 2026. `GET /v1/models/{slug}` returns the exact `input_schema`; it takes precedence over this summary.

| Parameter | Models | Values |
| --- | --- | --- |
| `prompt` | all | up to 5,000 characters; Grok Imagine Video 1.5 — up to 4,000 |
| `aspect_ratio` | images | `1:1` (default), `2:3`, `3:2`, `9:16`, `16:9` |
| `image_url` | `grok-imagine/image-to-image`, `grok-imagine/image-to-video` | required: the source photo or the first frame as an HTTPS URL |
| `duration` | Grok Imagine Video 1.5 | `5` (default), `8`, `10`, `15` seconds |
| `resolution` | Grok Imagine Video 1.5 | `480p` (default), `720p`, `1080p` |
| `aspect_ratio` | Grok Imagine Video 1.5 | `auto` (default), `16:9`, `9:16`, `1:1`, `2:3`, `3:2` |
| `duration`, `resolution` | Grok Video | `6` (default) or `10` seconds; `720p` (default) or `480p` |
| `aspect_ratio` | Grok Video | `9:16` (default), `16:9`, `1:1`, `2:3`, `3:2` |
| `mode` | Grok Video | generation style, `normal` by default; other values are in `input_schema` |

## Grok Imagine API questions [#faq]

<Accordions>
<Accordion title="Is Grok Imagine free?">
Not through the API: a generation with a live key spends credits and needs an active Clipia subscription. You can try it without paying in two ways. A `clipia_test_…` sandbox key returns a test result with no charge — it checks your integration, not the model. On the website, the 5 welcome credits you get at sign-up cover one Grok Imagine image or a 5-second 480p clip on Grok Imagine Video 1.5.
</Accordion>
<Accordion title="How much does the Grok Imagine API cost?">
An image costs 2 credits, a 5-second 480p clip on Grok Imagine Video 1.5 costs 5 credits. The other combinations are in the [table above](#pricing); `POST /v1/models/{slug}/estimate` returns the exact price for your input.
</Accordion>
<Accordion title="What is the difference between Grok Imagine Video 1.5 and Grok Video?">
They are two models. Grok Imagine Video 1.5 (`grok-imagine-video-1-5`) is newer: 5–15 seconds and up to 1080p from text or a photo. Grok Video (`grok-imagine/text-to-video` and `grok-imagine/image-to-video`) makes 6 or 10 second clips at 480p or 720p and has a generation style setting.
</Accordion>
<Accordion title="Do I need an xAI API key?">
No. Requests go through Clipia with a Clipia key, and credits are charged to your Clipia balance.
</Accordion>
<Accordion title="Is Grok Imagine available over MCP?">
Yes. In Claude, ChatGPT or Cursor connected to the [Clipia MCP server](/en/docs/mcp), pass the slug in the `model` parameter of `generate_image` or `generate_video`.
</Accordion>
</Accordions>

Other model pages: [Seedream API](/en/docs/api-reference/models/seedream), [Nano Banana API](/en/docs/api-reference/models/nano-banana), [Seedance 2.0 API](/en/docs/api-reference/models/seedance-2-0), [Kling AI API](/en/docs/api-reference/models/kling). The full list of slugs is in the [model catalog](/en/docs/api-reference/models).
