Grok Imagine Image 2.0 Text to Image

Grok Imagine Image 2.0 by xAI - generate stunning images from text prompts with state-of-the-art AI. Supports multiple aspect ratios, styles, and high-resolution output for creative and commercial use.
API docs
xai/grok-imagine-image/2.0/text-to-image

Grok Imagine Image 2.0 by xAI - generate stunning images from text prompts with state-of-the-art AI. Supports multiple aspect ratios, styles, and high-resolution output for creative and commercial use.

Try the model

Playground

Open playground
Input
Text description of the desired image.
The aspect ratio of the generated image. Allowed values: 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16.
Resolution of the generated image. `1k` for standard resolution, `2k` for high resolution. Allowed values: 1k, 2k.
Advanced settings
The format of the generated image. Allowed values: jpeg, png.
Quality level of the generated image. Allowed values: low, medium.
Result
Example
  1. 584e0e98-2988-4b27-9ce0-d87ba6bf1b4b.jpg

    What would you like to do next?

    Open original

Saved example result. No new generation was requested.

Displayed run estimate: $0.06. Final charges follow the model’s billing rules below.

Human preference

Arena

Elo ratings from blind side-by-side votes, compared with other image and video models.

Rankings sourced from Artificial Analysis Arena

Leaderboard
Text to Image
Rank
#8 of 108
Elo
1166 ±12
Gap to #1
−93

Text-to-image arena: people pick the better of two images generated from the same prompt, without seeing the model names.

  1. #3GPT Image 2.5 Sunburst (max)OpenAI1227±10
  2. #4GPT Image 2.5 Flare (max)OpenAI1208±10
  3. #5GPT Image 2 (high)OpenAIOn SandBase1188±11
  4. #6Nano Banana 2.1Google1176±12
  5. #7MAI-Image-2.6Microsoft AI1168±12
  6. #8Grok Imagine Image 2.0SpaceXAIThis model1166±12
  7. #9Nano Banana 2 (Gemini 3.1 Flash Image)GoogleOn SandBase1142±10
  8. #10Muse ImageMeta1128±11
  9. #11GPT Image 1.5 (high)OpenAIOn SandBase1124±11
  10. #12MAI-Image-2.6-FlashMicrosoft AI1122±12

Grok Imagine Image 2.0 Text to Image

Grok Imagine Image 2.0 generates images at two quality levels and 1K or 2K.

Fields

FieldTypeDefaultNotes
promptstring, required—Up to 8,000 characters.
aspect_ratio21:9 / 16:9 / 3:2 / 4:3 / 5:4 / 1:1 / 4:5 / 3:4 / 2:3 / 9:16—Output shape.
resolution1k / 2k1kSets the per-image rate.
output_formatjpeg / pngjpegOutput file format.
qualitylow / mediummediumSets the per-image rate.

Billing

Per image: $0.04 (low) or $0.06 (medium) at 1K; $0.06 or $0.08 at 2K.

Request1k2k
low$0.04$0.06
medium$0.06$0.08

Failed runs are not charged.

Prompting

  • Quote any text that must appear.

Limits

  • One output image per request.

Also on SandBase

Other Grok Imagine Image endpoints: xai/grok-imagine-image/quality, xai/grok-imagine-image/quality/edit, xai/grok-imagine-image/edit, xai/grok-imagine-image/2.0/edit.