ImageConfigImageOutputOptions

@Serializable
data class ImageConfigImageOutputOptions(val compressionQuality: Int? = null, val mimeType: String? = null)

The image output format for generated images. This data type is not supported in Gemini API.

Constructors

Link copied to clipboard
constructor(compressionQuality: Int? = null, mimeType: String? = null)

Properties

Link copied to clipboard
val compressionQuality: Int? = null

Optional. The compression quality of the output image.

Link copied to clipboard
val mimeType: String? = null

Optional. The image format that the output should be saved as.