v1

latestOpenAPI 3.1.0Apache 2.02026-07-264001921002.3 KB
Images

Create Variation

Creates variations of an image. Request must be sent as multipart/form-data with model and image (or image[]). Does not support streaming.

post/v1/images/variations

Response

Successful response. Returns JSON with generated image variation(s).

idstring

Unique identifier for the generation request

createdinteger

Unix timestamp when the image was created

modelstring

Model used for generation

backgroundstring

Background type for the image

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

Output image format

qualitystring

Quality of the generated image

size'256x256' | '512x512' | '1024x1024' | '1792x1024' | '1024x1792' | '1536x1024' | '1024x1536' | 'auto'

Size of the generated image