Client
constructor(apiKey: String? = null, project: String? = null, location: String? = null, credentials: GoogleCredentials? = null, enterprise: Boolean? = null, httpOptions: HttpOptions? = null, clientOptions: ClientOptions? = null)
Constructs a Client instance for either the Gemini Developer API or the Gemini Enterprise API.
Parameters
api Key
The API key to use. For the Gemini Developer API or the Gemini Enterprise API.
project
The Google Cloud project ID. For the Gemini Enterprise API only.
location
The Google Cloud location. For the Gemini Enterprise API only.
credentials
The Google credentials to use. For the Gemini Enterprise API only.
enterprise
Explicitly set whether to use the Gemini Enterprise API. Defaults to false or from environment variable GOOGLE_GENAI_USE_ENTERPRISE.
http Options
Custom HTTP options for the client.
client Options
Options for configuring the client.