google.generativeai.configure

Captures default client configuration.

If no API key has been provided (either directly, or on client_options) and the GOOGLE_API_KEY environment variable is set, it will be used as the API key.

transport A string, one of: [rest, grpc, grpc_asyncio].
api_key The API-Key to use when creating the default clients (each service uses a separate client). This is a shortcut for client_options={"api_key": api_key}. If omitted, and the GOOGLE_API_KEY environment variable is set, it will be used.
default_metadata Default (key, value) metadata pairs to send with every request. when using transport="rest" these are sent as HTTP headers.