xAI: Grok Imagine Image 2.0

Coming soonQuick Start

Grok Imagine Image 2.0 is xAI's image generation and editing model, released 2026-08. It creates images from text prompts and edits images from references, with low and medium quality modes.

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-2.0",
    messages=[{"role": "user", "content": "Hello"}],
)
Wire Grok Imagine Image 2.0 into your product

1M free tokens to start · no card · OpenAI-compatible, one base_url change

Start free