Grok Imagine Image 2.0 API
xAI's top-ranked image model — photoreal, bold, fast
per image · 1K · low
With Max: from $0.031/img →Operational99.98% uptime (30 days)Try Grok Imagine Image 2.0
Runs on your balance at the price shown on the button. Results are saved to your account.
Output image shape.
1K ≈ 1 MP, 2K ≈ 4 MP.
Low is faster and cheaper; medium has more detail. (Edits always run at medium.)
Create a free account with Google or email — pay only for what you generate.
Your image will appear here
Write a prompt, pick your settings and hit Run. You only pay for successful generations.
Made with Grok Imagine Image 2.0
What is Grok Imagine Image 2.0?
Grok Imagine Image 2.0 from xAI generates and edits striking photoreal and stylized images at 1K or 2K, with up to 3 input images for editing.
Leaderboard quality
Grok Imagine Image 2.0 ranks among the top text-to-image models, with vivid color, realistic people and strong prompt following.
Edit with references
Give it up to three images and describe the change — new scene, outfit, style or composition.
Grok Imagine Image 2.0 pricing
Pay per image as you go, with no subscription required. Failed generations are refunded automatically.
| Tier | Official price | CheaperGen | You save |
|---|---|---|---|
1K · low | $0.0329/img With a monthly plan: Pro $0.0318Max $0.0307 | −18% | |
1K · medium | $0.0429/img With a monthly plan: Pro $0.0408Max $0.0387 | −29% | |
2K · low | $0.0552/img | −8% | |
2K · medium | $0.0736/img | −8% |
Monthly plans lower prices on most models (shown under each price); you can still pay as you go. Pro $499/month · Max $4,999/month.
- Official price: xAI API list price for grok-imagine-image-2.0 (1K $0.04 low / $0.06 medium, 2K $0.06 / $0.08; $0.01 per input image). Prices verified October 18, 2026.
- Edits are billed at medium quality plus $0.01 per input image (before our discount).
Specifications
- Resolutions
- 1K · 2K
- Quality
- low · medium
- Aspect ratios
- 1:1 · 3:4 · 4:3 · 9:16 · 16:9 · 2:3 · 3:2 · 1:2 · 2:1 · 9:19.5 · 19.5:9 · 9:20 · 20:9
- Edit inputs
- Up to 3 images
Use Grok Imagine Image 2.0 via API
One request to start a job, one to fetch the result. Same shape for every model.
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-image/text-to-image`, {
method: "POST",
headers,
body: JSON.stringify({
"prompt": "Fashion editorial: a model in a sculptural orange coat on a salt flat at noon, harsh shadows, medium format",
"aspect_ratio": "1:1",
"resolution": "1K",
"quality": "medium"
}),
}).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.images[0].url : job.error);Grok Imagine Image 2.0 FAQ
More from xAI
Popular xAI models, on the same API key.

Grok ImagineVideo 1.5
Text · Reference → Video
xAI's video model — native audio, up to 1080p and 15 s
Grok ImagineVideo 1.5 Lite
Text · Image → Video
The lowest-cost Grok video — native audio from cents a second
Similar image models
Popular text-to-image models from other developers.

Seedream5.0 Pro
Text → Image · Image Edit
Production-grade image generation and precise editing

FLUX 3Image Klein
Text → Image · Image Edit
The open-weights FLUX 3 — 16-step images in seconds, from a fraction of a cent

GPT Image2.5
Text → Image · Image Edit
OpenAI's top image model — precise edits, perfect text, up to 4K

Seedream5.0 Lite
Text → Image · Image Edit
High-quality Seedream images at a lower price
Grok Imagine Image 2.0 is developed by xAI. CheaperGen provides API access and does not own the model. Trademarks belong to their respective owners. · Markdown · OpenAPI
