Skip to content
Dashboard

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.

Price
$0.02, Per image
import { experimental_generateImage as generateImage } from 'ai';
const result = await generateImage({
model: 'spacexai/grok-imagine-image',
prompt: 'A red balloon on a wooden table.'
});
Read docs

Copy link to headingPlayground

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.

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

Your generated image will appear here

Copy link to headingProviders

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
Input
Output
Cache
Web Search
Capabilities
ZDR
No Training
Free Tier
Release Date
$0.02/img
01/28/2026

Copy link to headingMore models by SpaceXAI

Model
Context
Latency
Throughput
Input
Output
Cache
Web Search
Capabilities
Providers
ZDR
No Training
Free Tier
Release Date
500K
$2/M+1 more
$6/M+1 more
Read$0.50/M
$5/K
+1
xai logo
08/12/2026
500K
$2/M+1 more
$6/M+1 more
Read$0.30/M
$5/K
+3
xai logo
07/08/2026
1M
$1.25/M+1 more
$2.50/M+1 more
Read$0.20/M
$5/K
+3
vertex logo
xai logo
04/30/2026
2M
$1.25/M+1 more
$2.50/M+1 more
Read$0.20/M
$5/K
+2
vertex logo
xai logo
03/10/2026
1M
$0.20/M
$0.50/M
Read$0.05/M
+1
vertex logo
11/19/2025
1M
$0.20/M
$0.50/M
Read$0.05/M
+2
vertex logo
11/19/2025

Copy link to headingAbout 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 headingWhat 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 for details.
  • Authentication: AI Gateway authenticates requests using an API key or OIDC token. You do not need to manage provider credentials directly.

Copy link to headingWhen 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

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.

Copy link to headingFrequently Asked Questions

  • What types of images can Grok Imagine Image generate?

    Grok Imagine Image generates images from text descriptions across a range of styles including photorealistic, illustrative, artistic, and graphic design. It handles diverse subjects and compositions based on prompt instructions.

  • How does Grok Imagine Image differ from Grok Imagine Image Pro?

    Grok Imagine Image is the standard generation model optimized for speed and versatility. The Pro variant provides higher-fidelity output with more detail and refinement at higher cost.

  • Can I control the style and composition of generated images?

    Yes. Include specific style, composition, lighting, and subject details in your text prompt. The model follows detailed instructions to shape the output.

  • How do I call Grok Imagine Image through Vercel AI Gateway?

    Use your Vercel AI Gateway API key with spacexai/grok-imagine-image as the model identifier. Integrate through the AI SDK's generateImage function or other API formats. AI Gateway handles provider routing automatically.

  • Can Grok Imagine Image edit existing images?

    The Grok Imagine API is primarily a text-to-image generation interface. For editing existing images, check the current API documentation for supported editing capabilities.

  • What output resolutions are available?

    Check the Vercel AI Gateway documentation for current supported resolutions and aspect ratios for Grok Imagine Image.

  • Does Vercel AI Gateway support Zero Data Retention for Grok Imagine Image?

    Zero Data Retention is not currently available for this model. Zero Data Retention is offered on a per-provider basis. See https://vercel.com/docs/ai-gateway/capabilities/zdr for details.

Your use is subject to SpaceXAI's Terms & Privacy Policies.