CheaperGen

xAI · 2 models

Grok Imagine API

xAI's Grok Imagine video and image models through one API: Grok Imagine Video 1.5 and Grok Imagine Image 2.0. Video from $0.0675/s, image from $0.0329/image, up to 52% below official. Text and Reference to video, up to 1080p, clips up to 15 s, with audio; Text-to-image and editing, up to 2K.

Models
2
video · image
video from
$0.0675/s
Grok Imagine Video 1.5
image from
$0.0329/image
Grok Imagine Image 2.0
Below official
up to 52%
Grok Imagine Video 1.5

video models

Grok Imagine video model on CheaperGen

Starting price per second at each model's lowest tier, next to xAI's official price.

Grok Imagine API: video models, specs and prices. Select a column header to sort.
T2V · Ref2V
1080p
1–15 s
Included
$0.0675/s
720p
$0.14/s
up to 52%

image models

Grok Imagine image model on CheaperGen

Starting price per image at each model's lowest tier, next to xAI's official price.

Grok Imagine API: image models, specs and prices. Select a column header to sort.
T2I · Edit
2K
Up to 3
$0.0329/image
1K · low
$0.04/image
up to 29%

How to choose

Which Grok Imagine model should you use?

Newest
Grok Imagine Video 1.5, released May 2026.
Highest resolution
Grok Imagine Image 2.0 — up to 2K.
Longest clips
Grok Imagine Video 1.5 — up to 15 s per generation.
Most references
Grok Imagine Video 1.5 — 7 images.
Audio included
Grok Imagine Video 1.5 generates synchronized sound at no extra cost.
Most edit inputs
Grok Imagine Image 2.0 — up to 3 input images per edit.

Try it

Try the Grok Imagine models

Switch models with the tabs. Runs on your balance at the price on the button; failed runs are refunded.

Capabilities

Grok Imagine video capabilities

Grok Imagine video capabilities
FeatureGrok Imagine Video 1.5
Text to videoYes
Reference to videoYes
Resolutions480p, 720p, 1080p
Clip length1–15 s
AudioIncluded
Reference imagesUp to 7
Aspect ratios7
ReleasedMay 2026

Capabilities

Grok Imagine image capabilities

Grok Imagine image capabilities
FeatureGrok Imagine Image 2.0
Text to imageYes
Image editingYes
Sizes1K, 2K
Edit inputsUp to 3
Quality levelslow, medium
Aspect ratios13

Quick start

Call the Grok Imagine API

One request shape for every Grok Imagine model: POST /v1/run/{endpoint} with your key, then poll the generation or pass a webhook_url. Switching models means changing the endpoint.

Grok Imagine endpoints
ModelEndpoint
Grok Imagine Video 1.5 · Text to Videoxai/grok-imagine-video/text-to-video
Grok Imagine Video 1.5 · Reference to Videoxai/grok-imagine-video/reference-to-video
Grok Imagine Image 2.0 · Text to Imagexai/grok-imagine-image/text-to-image
Grok Imagine Image 2.0 · Image Editxai/grok-imagine-image/edit

Grok Imagine Video 1.5 · Text to Video

const API = "https://cheapergen.com/api/v1";
const headers = {
  Authorization: `Bearer ${process.env.CHEAPERGEN_API_KEY}`,
  "Content-Type": "application/json",
};

// 1. Submit the job
let job = await fetch(`${API}/run/xai/grok-imagine-video/text-to-video`, {
  method: "POST",
  headers,
  body: JSON.stringify({
    "prompt": "A corgi DJ in sunglasses spins records at a beach party at sunset, crowd cheering, upbeat house music",
    "aspect_ratio": "16:9",
    "resolution": "720p",
    "duration": 8
  }),
}).then((r) => r.json());

// 2. Poll until it finishes (or pass webhook_url and skip polling)
while (job.status === "queued" || job.status === "running") {
  await new Promise((r) => setTimeout(r, 3000));
  job = await fetch(`${API}/generations/${job.id}`, { headers }).then((r) => r.json());
}

console.log(job.status === "succeeded" ? job.output.video.url : job.error);

Go deeper

Pricing, cost and docs for each Grok Imagine model

FAQ

Grok Imagine API questions

Grok Imagine is xAI's family of AI video and image models. Through CheaperGen you call all 2 of them — Grok Imagine Video 1.5 and Grok Imagine Image 2.0 — with one API key: POST /v1/run/{endpoint}, then poll the generation or receive a webhook. What each version does: Grok Imagine AI; the newest: Grok Imagine Latest.

Grok Imagine Video 1.5 starts at $0.0675/s, so a 5-second clip costs $0.34 — up to 52% below xAI's official price. Grok Imagine Image 2.0 starts at $0.0329/image — up to 29% below xAI's official price. Pay as you go from prepaid credits; failed generations are refunded.

Newest: Grok Imagine Video 1.5, released May 2026. Highest resolution: Grok Imagine Image 2.0 — up to 2K. Longest clips: Grok Imagine Video 1.5 — up to 15 s per generation. Most references: Grok Imagine Video 1.5 — 7 images. Audio included: Grok Imagine Video 1.5 generates synchronized sound at no extra cost. Most edit inputs: Grok Imagine Image 2.0 — up to 3 input images per edit.

Create a CheaperGen account, add credits and create a key in Dashboard → API keys. The same key runs every Grok Imagine model and the other 43 models in the catalog; you don't need a xAI account. Step by step: Grok Imagine Video 1.5 API key.

Yes. Grok Imagine Video 1.5 and Grok Imagine Image 2.0 are developed by xAI; CheaperGen provides API access — the same models and output, at a lower price — and doesn't own them.

Grok Imagine Video 1.5 generates synchronized audio at no extra cost. The highest resolution is 1080p (Grok Imagine Video 1.5).

Grok Imagine Video 1.5 and Grok Imagine Image 2.0 are developed by xAI; CheaperGen provides API access and does not own them. Trademarks belong to their respective owners.