Class ImageConfig.Builder

java.lang.Object
com.google.genai.gaos.models.interactions.ImageConfig.Builder
Enclosing class:
ImageConfig

public static final class ImageConfig.Builder extends Object
  • Method Details

    • aspectRatio

      public ImageConfig.Builder aspectRatio(@Nullable ImageConfigAspectRatio aspectRatio)
      The aspect ratio of the image to generate. Supported aspect ratios: 1:1, 2:3, 3:2, 3:4, 4:3, 9:16, 16:9, 21:9.

      If not specified, the model will choose a default aspect ratio based on any reference images provided.

    • imageSize

      public ImageConfig.Builder imageSize(@Nullable ImageConfigImageSize imageSize)
      Specifies the size of generated images. Supported values are `1K`, `2K`, `4K`. If not specified, the model will use default value `1K`.
    • build

      public ImageConfig build()