Skip to main content
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:1 if not specified
  • Generation is asynchronous; use callback_url for 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

x-access-token
string
header
required

API key for authentication (sk-xxx format)

Path Parameters

collection_id
string
required
Example:

"default"

Body

application/json
prompt
string
required
Example:

"A beautiful sunset over mountains"

aspect_ratio
string
Example:

"16:9"

callback_url
string
Example:

"https://webhook.example.com/callback"

Response

200 - application/json

Image generation started

success
boolean
Example:

true

status
enum<string>
Available options:
processing,
done,
failed
Example:

"processing"

data
object