Class GoogleGenAiImageConnectionDetails

java.lang.Object
org.springframework.ai.google.genai.image.GoogleGenAiImageConnectionDetails

public final class GoogleGenAiImageConnectionDetails extends Object
GoogleGenAiImageConnectionDetails represents the details of a connection to the image service using the new Google Gen AI SDK. It provides methods to create and configure the GenAI Client instance.
Since:
2.0.1
Author:
Olivier Le Quellec
  • Field Details

  • Method Details

    • builder

    • getProjectId

      public @Nullable String getProjectId()
    • getLocation

      public @Nullable String getLocation()
    • getApiKey

      public @Nullable String getApiKey()
    • getGenAiClient

      public com.google.genai.Client getGenAiClient()
    • getModelEndpointName

      public String getModelEndpointName(String modelName)
      Constructs the model endpoint name in the format expected by the image models.
      Parameters:
      modelName - the model name (e.g., "gemini-2.5-flash-image")
      Returns:
      the full model endpoint name