Generate image using AI
Generate Image with AI
Generate images using AI models from text prompts
POST
Generate image using AI
Create AI-generated images from text descriptions with customizable aspect ratios. The generated image is returned immediately as an Image object.
- Supported aspect ratios:
1:1,9:16,16:9,4:3,3:4 - Default aspect ratio is
1:1if not specified - Generation is asynchronous; use
callback_urlfor webhook notification when ready - Image IDs have an
i-prefix (e.g.,i-a1b2c3d4)
Generative Media Guide
Learn about all AI generation capabilities
Related Endpoint
Generate Video
Authorizations
API key for authentication (sk-xxx format)
Path Parameters
Example:
"default"
Body
application/json