ImageEditBuilder

Builder of ImageEdit instances.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

The image to edit. Must be a valid PNG file, less than 4MB, and square. If mask is not provided, image must have transparency, which will be used as the mask.

Link copied to clipboard

An additional image whose fully transparent areas (e.g. where alpha is zero) indicate where image should be edited. Must be a valid PNG file, less than 4MB, and have the same dimensions as image.

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

A text description of the desired image(s). The maximum length is 1000 characters.

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 ImageEdit instance