Grok Imagine 1.5
Grok Imagine 1.5 Image Generation
- Async processing mode, returns task ID for subsequent queries
- High-quality AI image generation, supports multilingual prompts
- Generated image links are valid for 24 hours, please save them promptly
POST
Model name compatibility note: This endpoint also accepts the alias
grok-imagine-1.5-ext, which is equivalent to grok-imagine-1.5-apimart. The two are interchangeable and produce identical results.Authorizations
All APIs require Bearer Token authenticationGet API Key:Visit the API Key Management Page to get your API KeyAdd it to the request header:
Body
Image generation model nameSupported models:
grok-imagine-1.5-apimart- Grok Image Generation (compatible aliasgrok-imagine-1.5-ext)
"grok-imagine-1.5-apimart"For backward compatibility, the alias
grok-imagine-1.5-ext (for grok-imagine-1.5-apimart) remains usable.Text description for image generation, supports multiple languages
Image generation sizeSupported formats:
1:1- Square (default)16:9- Landscape widescreen9:16- Portrait tall3:2- Landscape2:3- Portrait
Number of images to generateRange: 1-10 (minimum 1, maximum 10)⚠️ Note: Must be a plain number (e.g.
1), do not add quotes, otherwise an error will occurResponse
Response status code
Response data array