v32

latestOpenAPI 3.1.0MITraw.githubusercontent.com2026-07-312881,4162.7 MB
Images

Create image variation

Creates a variation of a given image. This endpoint only supports dall-e-2.

post/images/variations

Response

OK

createdinteger required

The Unix timestamp (in seconds) of when the image was created.

background'transparent' | 'opaque'

The background parameter used for the image generation. Either transparent or opaque.

output_format'png' | 'webp' | 'jpeg'

The output format of the image generation. Either png, webp, or jpeg.

size'1024x1024' | '1024x1536' | '1536x1024'

The size of the image generated. Either 1024x1024, 1024x1536, or 1536x1024.

quality'low' | 'medium' | 'high'

The quality of the image generated. Either low, medium, or high.