ImageVariation

class ImageVariation(val image: FileSource, val n: Int? = null, val size: ImageSize? = null, val user: String? = null, val model: ModelId? = null)

Image variant request.

Constructors

Link copied to clipboard
constructor(image: FileSource, n: Int? = null, size: ImageSize? = null, user: String? = null, model: ModelId? = null)

Properties

Link copied to clipboard

The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square.

Link copied to clipboard
val model: ModelId? = null

The model used to generate image. Must be one of dall-e-2 or dall-e-3. If not provided, dall-e-2 is used.

Link copied to clipboard
val n: Int? = null

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

Link copied to clipboard
val size: ImageSize? = null

The size of the generated images.

Link copied to clipboard
val user: String? = null

A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.