Grok Imagine Image 2.0: toman pricing and API

Image generation · x-ai/grok-imagine-image-2.0

Price
about17,049toman per image

You see the exact estimate before each run and an amount is held; afterwards only the real cost is charged, and a failed run is free.

API example

python
from openai import OpenAI

client = OpenAI(base_url="https://api.uttapen.ir/v1", api_key="sk-up-...")

img = client.images.generate(model="x-ai/grok-imagine-image-2.0", prompt="a ceramic coffee cup on a wooden table, soft morning light")
print(img.data[0].url)
Maker's own description

Grok Imagine Image 2.0 is an image generation and editing model from xAI. It is suited for creating images from text prompts and editing images from references, with low and...