Skip to content
Dashboard

Grok Imagine Image

Grok Imagine Image is xAI's image generation model. It creates images from text descriptions through the Grok Imagine API, delivering fast generation for creative and production workflows.

Image Gen
index.ts
import { experimental_generateImage as generateImage } from 'ai';
const result = await generateImage({
model: 'xai/grok-imagine-image',
prompt: 'A red balloon on a wooden table.'
});

Playground

Try out Grok Imagine Image by xAI. Usage is billed to your team at API rates. Free users (those who haven't made a payment) get $5 of credits every 30 days.

xai logo
Prompt
Describe what you want the model to generate.
Reference images(optional)
Add up to 3 images
Size
Aspect ratio
Images to generate
xai logo

Your generated image will appear here

Providers

Route requests across multiple providers. Copy a provider slug to set your preference. Visit the docs for more info. Using a provider means you agree to their terms, listed under Legal.

Provider
Context
Latency
Throughput
Input
Output
Cache
Web Search
Per Query
Capabilities
ZDR
No Training
Release Date
xAI
Legal:Terms
Privacy
01/28/2026

More models by xAI

Model
Context
Latency
Throughput
Input
Output
Cache
Web Search
Per Query
Capabilities
Providers
ZDR
No Training
Release Date
500K
1.4s
125tps
$2.00/M
$6.00/M
Read:
$0.5/M
Write:
$5/K
+ input costs
+4
xai logo
07/08/2026
256K
0.4s
179tps
$1.00/M
$2.00/M
Read:
$0.2/M
Write:
$5/K
+ input costs
+3
xai logo
05/20/2026
1M
0.6s
135tps
$1.25/M
$2.50/M
Read:
$0.2/M
Write:
$5/K
+ input costs
+4
vertex logo
xai logo
04/30/2026
2M
0.3s
133tps
$1.25/M
$2.50/M
Read:
$0.2/M
Write:
$5/K
+ input costs
+3
vertex logo
xai logo
03/10/2026
1M
0.3s
143tps
$0.20/M$0.50/M
Read:$0.05/M
Write:
+2
vertex logo
11/19/2025
1M
1.3s
151tps
$0.20/M$0.50/M
Read:$0.05/M
Write:
+3
vertex logo
11/19/2025

About Grok Imagine Image

Grok Imagine Image is xAI's standard image generation model, released January 28, 2026 as part of the Grok Imagine API. It generates images from text prompts, supporting a range of styles from photorealistic to illustrative. The model is designed for fast generation with a focus on instruction following and prompt adherence.

The Grok Imagine API accepts text descriptions and produces images at configurable resolutions. Grok Imagine Image handles diverse generation tasks including product mockups, marketing visuals, concept art, social media graphics, and UI design elements. It processes detailed prompts that specify composition, lighting, style, and subject matter.

For higher-fidelity output with more detail and refinement, the Grok Imagine Image Pro variant costs more per image.

What To Consider When Choosing a Provider

  • Configuration: Detailed prompts with explicit style, composition, and subject descriptions produce better results. Vague prompts may yield inconsistent output.
  • Configuration: Evaluate whether Grok Imagine Image's output quality meets your requirements before upgrading to the Pro variant. For many use cases, standard quality is sufficient.
  • Zero Data Retention: AI Gateway does not currently support Zero Data Retention for this model. See the documentation for models that support ZDR.
  • Authentication: AI Gateway authenticates requests using an API key or OIDC token. You do not need to manage provider credentials directly.

When to Use Grok Imagine Image

Best for

  • Rapid prototyping and concept visualization: Teams need quick visual iterations on ideas
  • Marketing and social media content: That requires custom images at scale without stock photo licensing
  • Product mockups and design exploration: For e-commerce, presentations, and pitch decks
  • Content creation pipelines: That generate illustrations, thumbnails, and visual assets programmatically
  • UI and UX design elements: Placeholder images, icons, and background patterns

Consider alternatives when

  • Maximum image quality and detail: Grok Imagine Image Pro provides higher-fidelity output
  • Video generation: Grok Imagine Video handles motion and temporal content
  • Photorealistic product photography: Specialized product-shot models may produce more consistent commercial results

Conclusion

Grok Imagine Image provides accessible image generation through the Grok Imagine API. It balances generation speed with output quality for the broad range of visual content needs that creative and production teams encounter. For teams that need fast visual asset creation integrated into their existing AI workflows, it offers a straightforward path through Vercel AI Gateway.