Skip to main content
POST
Create Image Variation

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data

Source image(s) and variation options.

model
string
required

The model to use for image generation.

image
required

The image(s) to create variations of. Must be a supported image file or an array of images.

n
integer | null

The number of images to generate. Must be between 1 and 10.

response_format
string | null

The format in which generated images are returned. Must be one of url or b64_json.

size
string | null

The size of the generated images.

user
string | null

A unique identifier representing your end-user.

Response

Image variations.

created
number
required

Unix timestamp when the image was generated.

data
object[]
required

Generated images.