Package-level declarations

Types

Link copied to clipboard
class ImageCreation(val prompt: String, val n: Int? = null, val size: ImageSize? = null, val user: String? = null, val model: ModelId? = null, val quality: Quality? = null, val style: Style? = null)

Image generation request.

Link copied to clipboard

Builder of ImageCreation instances.

Link copied to clipboard
class ImageEdit(val image: FileSource, val mask: FileSource, val prompt: String, val n: Int? = null, val size: ImageSize? = null, val user: String? = null, val model: ModelId? = null)

Image edit request.

Link copied to clipboard

Builder of ImageEdit instances.

Link copied to clipboard
@Serializable
data class ImageJSON(val b64JSON: String, val revisedPrompt: String? = null)

Generated image JSON (base 64).

Link copied to clipboard
@Serializable
value class ImageSize(val size: String)

The size of the generated images.

Link copied to clipboard
@Serializable
data class ImageURL(val url: String, val revisedPrompt: String? = null)

Generated image URL.

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

Image variant request.

Link copied to clipboard

Builder of ImageVariation instances.

Link copied to clipboard
@Serializable
value class Quality(val value: String)

The quality of the image that will be generated

Link copied to clipboard
@Serializable
value class Style(val value: String)

The style of the generated images.

Functions

Link copied to clipboard

Image generation request.

Link copied to clipboard

Image edit request.

Link copied to clipboard

Image variant request.