FirebaseAILogic Framework Reference

ImageConfig

public struct ImageConfig : Sendable, Equatable
extension ImageConfig: Encodable

Configuration 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

    aspectRatio

    The aspect ratio of generated images.

    imageSize

    The 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