Skip to content
Dashboard

Grok Imagine Image 2.0 Preview

Your use is subject to xAI's Terms & Privacy Policies.

image
import { experimental_generateImage as generateImage } from 'ai';
const result = await generateImage({
model: 'xai/grok-imagine-image-2.0-preview',
prompt: 'A red balloon on a wooden table.'
});
Read docs

Playground

Try out Grok Imagine Image 2.0 Preview by xAI. Usage is billed to your team at API rates. Free users (those who haven't made a payment) get $5 of credits every 30 days.

xai logo
Prompt
Describe what you want the model to generate.
Images to generate
xai logo

Your generated image will appear here

Providers

Route requests across multiple providers. Copy a provider slug to set your preference. Visit the docs for more info. Using a provider means you agree to their terms, listed under Legal.

Provider
Input
Output
Cache
Web Search
Capabilities
ZDR
No Training
Release Date
$0.05/img
08/08/2026

More models by xAI

Model
Context
Latency
Throughput
Input
Output
Cache
Web Search
Capabilities
Providers
ZDR
No Training
Release Date
500K
1.4s
59tps
$2/M+1 more
$6/M+1 more
Read:
$0.3/M+1 more
Write:
$5/K
+ input costs
+3
xai logo
07/08/2026
256K
1.0s
123tps
$1/M+1 more
$2/M+1 more
Read:
$0.2/M+1 more
Write:
$5/K
+ input costs
+2
xai logo
05/20/2026
1M
1.0s
129tps
$1.25/M+1 more
$2.50/M+1 more
Read:
$0.2/M+1 more
Write:
$5/K
+ input costs
+3
vertex logo
xai logo
04/30/2026
2M
2.8s
175tps
$1.25/M+1 more
$2.50/M+1 more
Read:
$0.2/M+1 more
Write:
$5/K
+ input costs
+3
xai logo
03/10/2026
1M
0.4s
198tps
$0.20/M
$0.50/M
Read:$0.05/M
Write:
+1
vertex logo
11/19/2025
1M
2.7s
193tps
$0.20/M
$0.50/M
Read:$0.05/M
Write:
+2
vertex logo
11/19/2025