grok-imagine-image-pro to grok-imagine-image-quality
Some values not published Checked 2026-11-12.
Price per 1M tokens
| Field | Old | New | Change |
|---|---|---|---|
| Input | Not published | Not published | Not published |
| Output | Not published | Not published | Not published |
| Cached input | Not published | Not published | Not published |
| Example monthly cost | Not published | Not published | Example only |
Context and max output
| Limit | Old | New | Change |
|---|---|---|---|
| Context window | Not published | Not published | Not published |
| Max output | Not published | Not published | Not published |
Capabilities that differ
No differing capability values are published for both models.
Endpoint changes
- The November 2 migration guide shows image generation as POST https://api.x.ai/v1/images/generations with an OpenAI client base_url of https://api.x.ai/v1. This sample only changes the model field. Source
Code
python before
from openai import OpenAI
client = OpenAI(base_url="https://api.x.ai/v1")
response = client.images.generate(
model="grok-imagine-image-pro",
prompt="A lighthouse",
)
python after
from openai import OpenAI
client = OpenAI(base_url="https://api.x.ai/v1")
response = client.images.generate(
model="grok-imagine-image-quality",
prompt="A lighthouse",
)
typescript before
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.x.ai/v1" });
const response = await client.images.generate({
model: "grok-imagine-image-pro",
prompt: "A lighthouse",
});
typescript after
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.x.ai/v1" });
const response = await client.images.generate({
model: "grok-imagine-image-quality",
prompt: "A lighthouse",
});
curl before
curl -X POST https://api.x.ai/v1/images/generations \
-H "Content-Type: application/json" \
-d '{"model":"grok-imagine-image-pro","prompt":"A lighthouse"}'
curl after
curl -X POST https://api.x.ai/v1/images/generations \
-H "Content-Type: application/json" \
-d '{"model":"grok-imagine-image-quality","prompt":"A lighthouse"}'
Checklist
- Read the shutdown date for grok-imagine-image-pro on the linked official page.
- Point your requests at grok-imagine-image-quality.
- Re-check price, context, and parameters on the provider pages linked here.
- Ship the change before the published shutdown date.