ImageConfig
public struct ImageConfig : Sendable, Equatableextension ImageConfig: EncodableConfiguration options for generating images with Gemini models.
See the documentation to learn about parameters available for use with Gemini image models.
-
The aspect ratio of generated images.
Declaration
Swift
public let aspectRatio: AspectRatio? -
The size of the generated images.
Declaration
Swift
public let imageSize: ImageSize? -
Initializes configuration options for generating images with Gemini.
Declaration
Swift
public init(aspectRatio: AspectRatio? = nil, imageSize: ImageSize? = nil)Parameters
aspectRatioThe aspect ratio of generated images.
imageSizeThe size of the generated images.
-
An aspect ratio for generated images.
Declaration
Swift
struct AspectRatio : Sendable, Equatable -
The size of images to generate.
Declaration
Swift
struct ImageSize : Sendable, Equatable