Optional
apiThe API Key, required for Gemini API clients.
Optional
apiOptional. The API version to use.
Optional
googleOptional. Authentication options defined by the by google-auth-library for Vertex AI clients.
GoogleAuthOptions interface in google-auth-library-nodejs.
Only supported on Node runtimes, ignored on browser runtimes.
Optional
httpOptional. A set of customizable configuration for HTTP requests.
Optional
locationOptional. The Google Cloud project region for Vertex AI clients.
Optional
projectOptional. The Google Cloud project ID for Vertex AI clients.
Optional
vertexaiOptional. Determines whether to use the Vertex AI or the Gemini API.
When true, the Vertex AI API will used. When false, the Gemini API will be used.
If unset, default SDK behavior is to use the Gemini API service.
Google Gen AI SDK's configuration options.
See GoogleGenAI for usage samples.