Skip to content

Grok Imagine Image Pro

Grok Imagine Image Pro is xAI's premium image generation model. It produces higher-fidelity images with enhanced detail, lighting, and composition compared to the standard Grok Imagine model, designed for professional creative workflows.

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

Frequently Asked Questions

  • What improvements does Grok Imagine Image Pro offer over the standard model?

    Grok Imagine Image Pro produces images with finer detail, better composition, more accurate lighting, and higher overall fidelity. It handles complex scenes and artistic direction more reliably.

  • When should I use Grok Imagine Image Pro versus the standard Grok Imagine Image?

    Use Pro for final, client-facing, or published output where quality matters. Use the standard model for drafts, prototypes, and high-volume generation where speed and cost are priorities.

  • Can I use both standard and Pro models in the same application?

    Yes. Route draft generation to the standard model and final output to Pro. Both are available through Vercel AI Gateway with different model identifiers.

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

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

  • What styles does Grok Imagine Image Pro support?

    Grok Imagine Image Pro supports a range of styles from photorealistic to artistic and illustrative. Specify your desired style in the text prompt for best results.

  • Does Grok Imagine Image Pro support image editing?

    The Grok Imagine API is primarily text-to-image generation. Check the current API documentation for any supported editing capabilities.

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

    Zero Data Retention is not currently available for this model. ZDR on AI Gateway applies to direct gateway requests; BYOK flows aren't covered. See https://vercel.com/docs/ai-gateway/capabilities/zdr for details.