Grok Imagine Image 2.0

x-ai/grok-imagine-image-2.0

Sign up to try it

Overview

Images

xAI's improved Grok Imagine model, with automatic quality settings and new aspect ratios such as 21:9 widescreen.

Made by xAI

Input

Text

Output

Images
Context
64.000
Input, maximum
64.000
  • Reasoning Not supported
  • Automatic fallback routes Not supported

Routes and pricing

Providers are tried in the order listed below. We try these providers in order. If one fails, we move on to the next, and you pay the rate of the one that answers.

xAI

primary
Images
Rp740,00per image$40000

Per-part units

Max images per request
10

Today's reference rate: Rp18.500/USD

Prices exclude the 5,5% service fee

Data and privacy

xAI xAI API security FAQ

Used to train models
No
Retention
30 days for abuse audits, then deleted.
Processing location
Not stated in the policy.
At indoRouter
We don't store your prompts or responses. Files you upload, batches, and responses you send with store: true are kept encrypted for up to 30 days.

Code samples

Use this model ID with any OpenAI SDK. The base URL is the same for every model.

curl https://api.indorouter.ai/v1/images/generations \
  -H "authorization: Bearer $INDOROUTER_API_KEY" \
  -H "content-type: application/json" \
  -d '{"model": "x-ai/grok-imagine-image-2.0", "prompt": "kucing di atas becak"}'