Skip to main content
POST
Generate media

Authorizations

Authorization
string
header
required

OAuth2 access token obtained via the authorization flow. Include in the Authorization header as: Bearer {access_token}

Body

application/json
prompt
string
required

Text prompt describing the image to generate

Required string length: 1 - 10000
type
enum<string>
default:image

Media type to generate (default: image)

Available options:
image
aspectRatio
enum<string>
default:1:1

Aspect ratio of the generated image (default: 1:1)

Available options:
1:1,
2:3,
3:2,
3:4,
4:3,
4:5,
5:4,
9:16,
16:9,
21:9
imageUrls
string[]

Up to 3 reference image URLs (https://… or data: URIs) the model can see while generating. Useful for preserving product appearance across variants.

Maximum array length: 3
Maximum string length: 8388608
Pattern: ^(https?:\/\/|data:)

Response

200 - application/json

Default Response

success
boolean
data
object