[SpaceXAI](/ai-gateway/models/labs/xai)

# Grok Imagine Image

Grok Imagine Image is SpaceXAI's image generation model. It creates images from text descriptions through the Grok Imagine API, delivering fast generation for creative and production workflows. Your use is subject to SpaceXAI's [Terms](https://x.ai/legal/terms-of-service) & [Privacy](https://x.ai/legal/privacy-policy) Policies.

Image Gen

[Use with AI Gateway](https://vercel.com/d?to=%2F%5Bteam%5D%2F%7E%2Fai%3Futm_source%3Dgateway-model-page%26utm_campaign%3Dai-gateway-models&title=Get+Started+with+Vercel+AI+Gateway) [View docs](https://vercel.com/docs/ai-gateway)

AI SDKChat Completions

```
1import { experimental_generateImage as generateImage } from 'ai';
2

3const result = await generateImage({
4  model: 'xai/grok-imagine-image',
5  prompt: 'A red balloon on a wooden table.'
6});
```

[Read docs](https://vercel.com/docs/ai-gateway/sdks-and-apis/ai-sdk)

[Overview](/ai-gateway/models/grok-imagine-image) [About](/ai-gateway/models/grok-imagine-image/about) [Providers](/ai-gateway/models/grok-imagine-image/providers) [Similar](/ai-gateway/models/grok-imagine-image/similar) [FAQ](/ai-gateway/models/grok-imagine-image/faq)

## [Copy link to heading](#playground)Playground

Try out Grok Imagine Image by SpaceXAI. 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](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fxai.png&w=48&q=75)Grok Imagine Image

Prompt

Describe what you want the model to generate.

Reference images(optional)

Add up to 3 images

Aspect ratio

1:116:99:164:33:43:22:32:11:220:99:20

Images to generate

12345678910

![xai logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fxai.png&w=96&q=75)

Your generated image will appear here

## [Copy link to heading](#providers)Providers

Route requests across multiple providers. Copy a provider slug to set your preference. Visit the [docs](/docs/ai-gateway/provider-options) for more info. Using a provider means you agree to their terms, listed under Legal.

| Provider |
| --- |

| Input | Output | Cache | Web Search | Capabilities | ZDR | No Training | Release Date |  |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |

| ![xai logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fxai.png&w=48&q=75) [SpaceXAI](/ai-gateway/models/providers/xai) Legal:[Terms](https://x.ai/legal/terms-of-service)•[Privacy](https://x.ai/legal/privacy-policy) |  | $0.02/img |  | — |  |  |  | 01/28/2026 |  |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |

## [Copy link to heading](#more-models-by-spacexai)More models by SpaceXAI

All

Text

Code

| Model |
| --- |

| Context | Latency | Throughput | Input | Output | Cache | Web Search | Capabilities | Providers | ZDR | No Training | Release Date |  |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |

| ![xai logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fxai.png&w=48&q=75) [xai/grok-4.6](/ai-gateway/models/grok-4.6) | 500K | 1.4s | 65tps | $2/M+1 more | $6/M+1 more | Read: $0.5/M+1 more Write: — | $5/K \+ input costs | +1 | ![xai logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fxai.png&w=48&q=75) |  |  | 08/12/2026 |  |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| ![xai logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fxai.png&w=48&q=75) [xai/grok-4.5](/ai-gateway/models/grok-4.5) | 500K | 1.5s | 64tps | $2/M+1 more | $6/M+1 more | Read: $0.3/M+1 more Write: — | $5/K \+ input costs | +3 | ![xai logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fxai.png&w=48&q=75) |  |  | 07/08/2026 |  |
| ![xai logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fxai.png&w=48&q=75) [xai/grok-4.3](/ai-gateway/models/grok-4.3) | 1M | 1.1s | 80tps | $1.25/M+1 more | $2.50/M+1 more | Read: $0.2/M+1 more Write: — | $5/K \+ input costs | +3 | ![vertex logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fvertex%2520ai.png&w=48&q=75) ![xai logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fxai.png&w=48&q=75) |  |  | 04/30/2026 |  |
| ![xai logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fxai.png&w=48&q=75) [xai/grok-4.20-reasoning](/ai-gateway/models/grok-4.20-reasoning) | 2M | 0.5s | 161tps | $1.25/M+1 more | $2.50/M+1 more | Read: $0.2/M+1 more Write: — | $5/K \+ input costs | +3 | ![vertex logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fvertex%2520ai.png&w=48&q=75) ![xai logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fxai.png&w=48&q=75) |  |  | 03/10/2026 |  |
| ![xai logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fxai.png&w=48&q=75) [xai/grok-4.1-fast-non-reasoning](/ai-gateway/models/grok-4.1-fast-non-reasoning) | 1M | 0.5s | 175tps | $0.20/M | $0.50/M | Read:$0.05/M Write:— | — | +1 | ![vertex logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fvertex%2520ai.png&w=48&q=75) |  |  | 11/19/2025 |  |
| ![xai logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fxai.png&w=48&q=75) [xai/grok-4.1-fast-reasoning](/ai-gateway/models/grok-4.1-fast-reasoning) | 1M | 1.0s | 185tps | $0.20/M | $0.50/M | Read:$0.05/M Write:— | — | +2 | ![vertex logo](/vc-ap-vercel-marketing/_next/image?url=https%3A%2F%2F7nyt0uhk7sse4zvn.public.blob.vercel-storage.com%2Fdocs-assets%2Fstatic%2Fdocs%2Fai-gateway%2Flogos%2Fvertex%2520ai.png&w=48&q=75) |  |  | 11/19/2025 |  |

## [Copy link to heading](#about-grok-imagine-image)About Grok Imagine Image

Grok Imagine Image is SpaceXAI'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.

## [Copy link to heading](#what-to-consider-when-choosing-a-provider)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: Zero Data Retention is offered on a per-provider and model basis. See the [documentation](https://vercel.com/docs/ai-gateway/security-and-compliance/zdr) for details.
- Authentication: AI Gateway authenticates requests using an [API key](https://vercel.com/docs/ai-gateway/authentication-and-byok#api-key-authentication) or [OIDC token](https://vercel.com/docs/ai-gateway/authentication-and-byok#oidc-token-authentication). You do not need to manage provider credentials directly.

## [Copy link to heading](#when-to-use-grok-imagine-image)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

## [Copy link to heading](#conclusion)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.