Grok Imagine Image API
xAI image generation and editing with up to 5 reference images. Supports text-to-image and edit modes.
Click or drag & dropPNG, JPG, WEBP, GIF · Max 100MB
Upsample Prompt
Let AI enhance your prompt for better results
Enable NSFW
Enable NSFW content generation
Output
Your generated image will appear here
Grok Imagine Image API Features
Text-to-image generation from prompts
Image editing with up to 5 reference images
Standard and Pro quality tiers
Multiple aspect ratios: 1:1, 2:3, 3:2, 9:16, 16:9
AI prompt enhancement with upsample option
Merge and edit reference images based on prompts
REST API integration with JSON responses
Use Cases for Grok Imagine Image API
1
Image generation - Create images from text descriptions
2
Image editing - Edit and transform existing images
3
Image merging - Combine multiple images into one scene
4
Style transfer - Apply new styles to reference images
5
Batch editing - Generate multiple edit variations
Frequently Asked Questions about Grok Imagine Image API
Start Using Grok Imagine Image API Today
Access Grok Imagine Image API and 25+ other AI models through a single, unified API. Get started in minutes with our developer-friendly documentation.