Class GoogleGenAiImageConnectionDetails
java.lang.Object
org.springframework.ai.google.genai.image.GoogleGenAiImageConnectionDetails
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
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
-
Field Details
-
DEFAULT_LOCATION
- See Also:
-
-
Method Details
-
builder
-
getProjectId
-
getLocation
-
getApiKey
-
getGenAiClient
public com.google.genai.Client getGenAiClient() -
getModelEndpointName
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
-