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.
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.
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
| Feature | Grok Imagine Video 1.5 |
|---|---|
| Text to video | Yes |
| Reference to video | Yes |
| Resolutions | 480p, 720p, 1080p |
| Clip length | 1–15 s |
| Audio | Included |
| Reference images | Up to 7 |
| Aspect ratios | 7 |
| Released | May 2026 |
Capabilities
Grok Imagine image capabilities
| Feature | Grok Imagine Image 2.0 |
|---|---|
| Text to image | Yes |
| Image editing | Yes |
| Sizes | 1K, 2K |
| Edit inputs | Up to 3 |
| Quality levels | low, medium |
| Aspect ratios | 13 |
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.
| Model | Endpoint |
|---|---|
| Grok Imagine Video 1.5 · Text to Video | xai/grok-imagine-video/text-to-video |
| Grok Imagine Video 1.5 · Reference to Video | xai/grok-imagine-video/reference-to-video |
| Grok Imagine Image 2.0 · Text to Image | xai/grok-imagine-image/text-to-image |
| Grok Imagine Image 2.0 · Image Edit | xai/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
Grok Imagine Video 1.5
up to 52% below Official
Grok Imagine Image 2.0
up to 29% below Official
FAQ
Grok Imagine API questions
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.