xAI / xai/grok-imagine-image
Grok Imagine Image - access through LLMTR
Provides an accessible xAI layer for text-to-image generation and conversational editing. Well suited to fast creative iteration and general product-visual workflows.
Technical specifications
| Canonical ID | xai/grok-imagine-image |
|---|---|
| Provider | xAI |
| Context window | Not available |
| Operations | IMAGES_GENERATIONS |
| Modalities | image, text |
Pricing
An 8% platform margin applies to credit top-ups; model usage prices are not separately marked up.
| Operation | Metric | Unit | Price |
|---|---|---|---|
| IMAGES_GENERATIONS | OUTPUT_IMAGE | PER_IMAGE | $0.020000 |
Example usage
With existing OpenAI SDK flows, change only the base URL and model identifier.
curl https://llmtr.com/v1/chat/completions -H "Authorization: Bearer llmtr-your_key" -H "Content-Type: application/json" -d '{"model":"xai/grok-imagine-image","messages":[{"role":"user","content":"Hello"}]}'
Guides about this model
- Qwen-Image 2.1 vs Grok Imagine vs Nano Banana 2.1 - On LLMTR all five models generate and edit images with the same API key. In a single-reference edit Qwen-Image 2.1 Turbo costs $0.016 per generated image and the reference you send is not billed. On Grok Imagine the image you send is counted too, and 4K output is only on Nano Banana 2.1.
- xAI API Images: aspect_ratio, Grok Imagine and b64_json - Use POST /v1/images/generations with xai/grok-imagine-image-quality, pass aspect_ratio and resolution, choose b64_json, decode data[0].b64_json, and save the image. Quality costs $0.05 per image; the standard model costs $0.02.
- Grok Image Editing: What Is the Image ID Format? - Grok image editing has no separate image ID. On LLMTR, POST /v1/images/edits accepts URL inputs or base64 data:image/ values, with image for one image and images for 1-5 references. Model prices are $0.02 and $0.05 per image.
- Grok Imagine Image Quality: when the 2.5x price over the standard tier is justified - The standard Imagine article covered why the standard tier is sufficient for most product work. This article looks at it from the other side and covers which tasks justify the Quality tier's 2.5x price.
- Grok Imagine Image: why the standard tier is enough for most product work - The Quality tier article covered when the 2.5x price is justified. This article looks at it from the other side and covers why the standard tier should be the default choice for most tasks.
Related models
- Grok 4.7 xai/grok-4.7
- Grok 4.6 xai/grok-4.6
- Grok 4.5 xai/grok-4.5
- Grok 4.3 xai/grok-4.3
- Grok Imagine Video 1.5 Lite xai/grok-imagine-video-1.5-lite
- Grok Imagine Video 1.5 xai/grok-imagine-video-1.5
- Grok 4.20 Multi-Agent xai/grok-4.20-multi-agent
- Grok 4.20 Reasoning 0309 xai/grok-4.20-0309-reasoning