Models
Grok Imagine 2.0
Model id: xai/grok-imagine-image-2.0
- Image generation
- Multimodal
xAI’s current Imagine image model for generation and edits on the OpenAI-compatible images API.
Best for
Ideal when you want the newest Grok Imagine image quality.
- Provider
- xAI
- Context window
- Not published
- Release date
- 2026-08-07
Pricing
1k · auto
$0.0617 / image
2k · auto
$0.0617 / image
Amounts in Canadian dollars, converted at the Bank of Canada indicative rate (2026-09-21).
Performance
Reading
Last 7 days
Not enough data to display the chart.
Activity
Tokens
—
—
—
—
—
Top 5 tools · last 7 days
Not enough data to display tool activity.
Availability
Availability (%)
Last 7 days
- Operational probes
- 99.95% over 7 days
- Samples
- 9,205
Quick start
Generate an image with a tonia_ key and the exact model id below.
curl
curl https://pass.tonia.ca:8443/v1/images/generations \
-H "Authorization: Bearer $TONIA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "xai/grok-imagine-image-2.0",
"prompt": "Draw a red fox",
"n": 1
}'Python (tonia SDK)
import os
from tonia import Tonia
client = Tonia(api_key=os.environ["TONIA_API_KEY"])
response = client.images.generate(
model="xai/grok-imagine-image-2.0",
prompt="Draw a red fox",
n=1,
)TypeScript (tonia SDK)
import { Tonia } from "@tonia-router/sdk";
const client = new Tonia({
apiKey: process.env.TONIA_API_KEY,
});
const response = await client.images.generate({
model: "xai/grok-imagine-image-2.0",
prompt: "Draw a red fox",
n: 1,
});To edit an image, use /v1/images/edits.