Grok Imagine Image API
xAI image generation and editing with up to 5 reference images. Supports text-to-image and edit modes.
Text description or edit instruction
Output aspect ratio
Upload 1-5 reference images to trigger edit mode
Number of results to generate (edit mode only)
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
Multiple aspect ratios: 1:1, 2:3, 3:2, 9:16, 16:9
Generate 1-4 results per request in edit mode
Merge and edit reference images based on prompts
Competitive pricing at $0.04/image
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.