Grok Imagine Image 2.0

The new Grok Imagine image generation release: improved instruction following, in-frame text, and visual consistency for complex scenes. The current public API surface generates from text in five aspect ratios.

Cost

1.5 tokens

ImageProvider: xAI
Run generation
IDEMPOTENCY_KEY="${IDEMPOTENCY_KEY:-$(uuidgen)}"
curl -X POST https://api.givon.ai/api/v1/generations \
  -H "Authorization: Bearer $GIVON_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  -H "Content-Type: application/json" \
  -d '{"type":"image","model":"grok-imagine-image-2.0","input":{"prompt":"studio portrait of a red corgi, soft light","aspectRatio":"1:1"}}'

Input fields

* required
prompt*prompt

Image description.

Type
string
Default
Allowed
string
aspectRatioaspectRatio
Type
string
Default
1:1
Allowed
1:1, 2:3, 3:2, 16:9, 9:16

Cost

1.5 tokens

Capabilities

Modestext_to_image

Run Grok Imagine Image 2.0

Get an API key and the same request shape will work across every model in the catalog.

Where to use this model

Grok Imagine Image 2.0 API - image generation · Givon AI