---
title: "Grok Imagine API — All variants, pricing, code samples | RunAPI"
url: "https://runapi.ai/models/grok-imagine.md"
canonical: "https://runapi.ai/models/grok-imagine.md"
locale: "en"
model: "Grok Imagine"
provider: "xAI"
modality: "image"
variant_count: 4
price_from_cents: 2
---

# Grok Imagine

Image and video generation from text — text-to-image, image-to-video, and editing with audio.

**Provider:** xAI
**Modality:** Image
**Catalog:** 4 variants

Grok Imagine is xAI&#39;s image and video generation suite covering text-to-image, edit-image, text-to-video, and image-to-video. It integrates with xAI&#39;s Grok intelligence to interpret complex, nuanced prompts.

## Variants

| Version | Variant | Pricing | Billing | URL |
|---|---|---|---|---|
| grok-imagine-edit-image | `edit-image` | $0.040 | call | https://runapi.ai/models/grok-imagine/edit-image.md |
| grok-imagine-image-to-video | `image-to-video` | $0.020 | second | https://runapi.ai/models/grok-imagine/image-to-video.md |
| grok-imagine-text-to-image | `text-to-image` | $0.040 | call | https://runapi.ai/models/grok-imagine/text-to-image.md |
| grok-imagine-text-to-video | `text-to-video` | $0.020 | second | https://runapi.ai/models/grok-imagine/text-to-video.md |

## Utility endpoints

| Endpoint | Pricing | Billing |
|---|---|---|
| `extend_video` | $0.300 | call |
| `upscale_image` | $0.100 | call |

## Install

```sh
npm install @runapi.ai/grok-imagine
# or
gem install runapi-grok_imagine
```

## Quickstart

```sh
curl -X POST https://runapi.ai/api/v1/grok_imagine/edit_image \
  -H "Authorization: Bearer $RUNAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "model": "grok-imagine-edit-image", "prompt": "..." }'
```

## Context

Grok Imagine is xAI&#39;s creative AI suite built on Grok, covering image and video generation. Through RunAPI, all Grok Imagine endpoints share a single API key.

## FAQ

### Which variant should I start with?

Pick the cheapest variant that meets your quality bar. Most teams start on the fast variant and graduate to pro for production.

### Is there a free tier?

New accounts get free first calls on every model. After that, pay per call.

### Do you stream results?

Where streaming is available, RunAPI streams end-to-end.

### How are failures billed?

Failed generations are not charged.

### Are outputs cached?

Generated outputs are stored and retrievable by task ID. Inputs are not cached.

### Can I use commercially?

Yes — commercial use is included for every variant unless a model license explicitly restricts it, which is called out on the variant page.

### What about rate limits?

Per-key rate limits scale with usage tier. See pricing page for current limits.

### Where can I report issues?

Open an issue on the public GitHub repo or email support.

