Grok Imagine Video 1.5 is now available. xAI's latest video model: text-to-video and first-frame image-to-video with sound, 1–15 sec, up to native 1080p.Learn more
Grok

Grok Imagine Image 2.0

Save 70%Official

xai/grok-imagine-image-2.0

xAI Grok Imagine Image 2.0 — xAI's recommended image model for generation and editing, billed per image.

Input modalities
text · image
Output modalities
image
Capabilities
Image generation · Image editing
RouteMux name
xai/grok-imagine-image-2.0
Live model playground

Try Grok Imagine Image 2.0 here

Tune the request, see the current price ceiling, and inspect the real response without leaving this model page.

asyncimage
1Configure input
0 / 20,000
Source images for editing

Sign in first to upload images to this vision model.

Maximum estimated cost—
2Live result

Your result will appear here

Enter an input on the left. The same RouteMux Playground execution and billing path powers this embedded test.

image

Grok Imagine Image 2.0 API pricing

OutputOfficial $0.04 /call
$0.012/callSave 70%
  • low · 1K$0.012 /callOfficial $0.04
  • low · 1.5K$0.015 /callOfficial $0.05
  • low · 2K$0.018 /callOfficial $0.06
  • medium · 1K$0.018 /callOfficial $0.06
  • medium · 1.5K$0.021 /callOfficial $0.07
  • medium · 2K$0.024 /callOfficial $0.08
  • Source image for edits (each, once per request)$0.003Official $0.01

Limited time10% extra Credits on your first top-up — up to 200 bonus Credits

Applies to your first top-up within 72 hours of signing up. Minimum $20, once per account.

Sign up and claimNo subscription. Pay for what you use.

Key capabilities

Image generationImage editing

Interface and protocols

OpenAI Images

Use any of these IDs to call this model via the API.

RouteMux namexai/grok-imagine-image-2.0

Replace the ROUTEMUX_KEY placeholder with your API key. Create one →

from openai import OpenAI

client = OpenAI(
    base_url="https://api.routemux.com/v1",
    api_key="<ROUTEMUX_KEY>",
)

response = client.images.generate(
    model="xai/grok-imagine-image-2.0",
    prompt="A red panda coding under the moonlight",
    n=1,
)
print(response.data[0].url)
base_url: https://api.routemux.com/v1

Performance (last 30 days)

Grok Imagine Image 2.0 FAQ

›What is Grok Imagine Image 2.0?

xAI Grok Imagine Image 2.0 — xAI's recommended image model for generation and editing, billed per image.

›How much does the Grok Imagine Image 2.0 API cost?

Through RouteMux, Grok Imagine Image 2.0 is priced at $0.012, below the official list price.

›How do I call Grok Imagine Image 2.0 via API?

Grok Imagine Image 2.0 is OpenAI-compatible: point your base URL at RouteMux and set the model field to xai/grok-imagine-image-2.0 — no code changes needed.

›Which input and output modalities does Grok Imagine Image 2.0 support?

Grok Imagine Image 2.0 accepts text, image as input and produces image as output.