CheaperGen
xAIimagePopular

Grok Imagine Image 2.0 API

xAI's top-ranked image model — photoreal, bold, fast

Try Grok Imagine Image 2.0

Runs on your balance at the price shown on the button. Results are saved to your account.

Open full-screen Studio
0

Output image shape.

1K ≈ 1 MP, 2K ≈ 4 MP.

Low is faster and cheaper; medium has more detail. (Edits always run at medium.)

Estimated cost…

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
A top text-to-image model
1K / 2K
Two size tiers
13 ratios
Including 9:19.5 phone
3 inputs
Image 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.

TierOfficial priceCheaperGen
1K · low
$0.04/img$0.0329/img
With a monthly plan: Pro $0.0318Max $0.0307
1K · medium
$0.06/img$0.0429/img
With a monthly plan: Pro $0.0408Max $0.0387
2K · low
$0.06/img$0.0552/img
2K · medium
$0.08/img$0.0736/img

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.

Full API reference
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

Per image by resolution and quality; edits run at medium quality and each input image adds a cent before our discount. Failed generations are not charged.

Yes. Requests run on xAI's grok-imagine-image-2.0.

Yes, subject to xAI's terms and our Terms of Service.

Grok Imagine Image 2.0 costs $0.0329–$0.0736 per image, 8–29% below the official price. 1,000 1K · low images cost $32.86. You pay per image, with no subscription needed, and failed generations are refunded. Real projects priced end to end: Grok Imagine Image 2.0 API cost.

1K · low: $0.0329/image (official $0.04); 1K · medium: $0.0429/image (official $0.06); 2K · low: $0.0552/image (official $0.06); 2K · medium: $0.0736/image (official $0.08). The price per image page breaks it down further; every tier is on Grok Imagine Image 2.0 API pricing.

Use 1K · low ($0.0329 an image), then render finals at the size you need. Every tier here is already 8–29% below the official price. More: Cheapest Grok Imagine Image 2.0.

Sign up at CheaperGen, add credits and create a key in Dashboard → API keys, then send it as a bearer token. The same key works for Grok Imagine Image 2.0 and every other model in the catalog; you don't need a xAI account. Step by step: Grok Imagine Image 2.0 API key.

The Grok Imagine Image 2.0 API documentation covers its 2 endpoints (xai/grok-imagine-image/text-to-image, xai/grok-imagine-image/edit): every parameter with its allowed values and default, request and response examples in cURL, Python and Node.js, polling, webhooks and errors. An OpenAPI file is available too.

Besides Grok Imagine Image 2.0, the Grok Imagine API covers Grok Imagine Video 1.5 Lite (from $0.0146/s) and Grok Imagine Video 1.5 (from $0.0675/s). All run on the same API key; the Grok Imagine API page compares them side by side, and Grok Imagine Latest shows which is newest.

There is no free tier, but no subscription is needed either: credits are prepaid and only successful generations are charged. Failed generations are refunded automatically, and the quote endpoint (POST /v1/quote/{endpoint}) prices any request for free. No code needed: how to use Grok Imagine Image 2.0 in the Studio.

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