Class GoogleGenAiImageOptions

java.lang.Object
org.springframework.ai.google.genai.image.GoogleGenAiImageOptions
All Implemented Interfaces:
org.springframework.ai.image.ImageOptions, org.springframework.ai.model.ModelOptions

public class GoogleGenAiImageOptions extends Object implements org.springframework.ai.image.ImageOptions
Options for the Image supported by the GenAI SDK
Since:
2.0.1
Author:
Olivier Le Quellec
  • Field Details

    • DEFAULT_MODEL_NAME

      public static final String DEFAULT_MODEL_NAME
  • Constructor Details

  • Method Details

    • builder

      public static GoogleGenAiImageOptions.Builder builder()
    • getModel

      public @Nullable String getModel()
      Specified by:
      getModel in interface org.springframework.ai.image.ImageOptions
    • getN

      public @Nullable Integer getN()
      Specified by:
      getN in interface org.springframework.ai.image.ImageOptions
    • getWidth

      public @Nullable Integer getWidth()
      Image width is not directly configurable Use getAspectRatio() or getImageSize() instead.
      Specified by:
      getWidth in interface org.springframework.ai.image.ImageOptions
      Returns:
      always null
    • getHeight

      public @Nullable Integer getHeight()
      Image height is not directly configurable Use getAspectRatio() or getImageSize() instead.
      Specified by:
      getHeight in interface org.springframework.ai.image.ImageOptions
      Returns:
      always null
    • getResponseFormat

      public @Nullable String getResponseFormat()
      Specified by:
      getResponseFormat in interface org.springframework.ai.image.ImageOptions
    • getStyle

      public @Nullable String getStyle()
      Specified by:
      getStyle in interface org.springframework.ai.image.ImageOptions
    • getAspectRatio

      public @Nullable String getAspectRatio()
    • getSeed

      public @Nullable Integer getSeed()
    • getSafetyFilterLevel

      public @Nullable GoogleGenAiImageOptions.SafetyFilterLevel getSafetyFilterLevel()
    • getPersonGeneration

      public @Nullable GoogleGenAiImageOptions.PersonGeneration getPersonGeneration()
    • getOutputMimeType

      public @Nullable String getOutputMimeType()
    • getOutputCompressionQuality

      public @Nullable Integer getOutputCompressionQuality()
    • getLabels

      public @Nullable Map<String,String> getLabels()
    • getImageSize

      public @Nullable String getImageSize()
    • getTemperature

      public @Nullable Float getTemperature()
    • getTopP

      public @Nullable Float getTopP()
    • getTopK

      public @Nullable Float getTopK()
    • getMaxOutputTokens

      public @Nullable Integer getMaxOutputTokens()
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object