ImageVariationBuilder

Builder of ImageVariation instances.

Constructors

Link copied to clipboard
constructor()

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

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
var n: Int?

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

Link copied to clipboard

The size of the generated images.

Link copied to clipboard
var user: String?

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

Functions

Link copied to clipboard

Creates the ImageVariation instance