Grok Imagine Image Quality is xAI's image generation and editing model, released 2026-05, focused on photorealistic output at 1K or 2K. It emphasizes realistic detail, consistent rendering of named entities, and clean multilingual text in images. The model preserves identity and structure from reference images for product placement and character continuity.
This model is not routed on MirAPI yet — prices shown are the official list prices. Create an account to get notified when it goes live.
Modalities
inTextinImageoutImage
Price / 1M
— / —
Context
66K
Knowledge cutoff
—
Capabilities
VisionStructured output
Quick Start
import os from openai import OpenAI client = OpenAI( base_url="https://api.mirapi.ai/v1", # changed api_key=os.environ["MIRAPI_API_KEY"], # changed ) resp = client.chat.completions.create( model="x-ai/grok-imagine-image-quality", messages=[{"role": "user", "content": "Hello"}], )
import OpenAI from "openai"; const client = new OpenAI({ baseURL: "https://api.mirapi.ai/v1", // changed apiKey: process.env.MIRAPI_API_KEY, // changed }); const res = await client.chat.completions.create({ model: "x-ai/grok-imagine-image-quality", messages: [{ role: "user", content: "Hello" }], });
curl https://api.mirapi.ai/v1/chat/completions \ -H "Authorization: Bearer $MIRAPI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "x-ai/grok-imagine-image-quality", "messages": [{"role": "user", "content": "Hello"}] }'
Links
Wire Grok Imagine Image Quality into your product
Start free1M free tokens to start · no card · OpenAI-compatible, one base_url change