xAI: Grok Imagine Image Quality

Not supportedQuick start

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.

MirAPI doesn’t offer this model. The prices shown are the official list prices.

Modalities
inTextinImageoutImage
Price / 1M
— / —
Context
66K
Released
May 18, 2026

Capabilities

VisionStructured output

Parameters

Request parameters this model accepts through the API.

logprobsmax_tokensresponse_formatseedtemperaturetop_logprobstop_p

Quick start

POST /v1/images/generations/
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.mirapi.ai/v1",   # changed
    api_key=os.environ["MIRAPI_API_KEY"],   # changed
)

img = client.images.generate(
    model="",
    prompt="A red bicycle leaning on a white wall",
    n=1,
    size="1024x1024",
)
# img.data[0].b64_json — or .url, depending on the model
Wire Grok Imagine Image Quality into your product

1M free tokens to start, no card required. It’s OpenAI-compatible, so you only change the base URL.

Start free