google.generativeai.configure#
|  View source on GitHub | 
Captures default client configuration.
google.generativeai.configure(
    *,
    api_key: (str | None) = None,
    credentials: (ga_credentials.Credentials | dict | None) = None,
    transport: (str | None) = None,
    client_options: (client_options_lib.ClientOptions | dict | None) = None,
    client_info: (gapic_v1.client_info.ClientInfo | None) = None,
    default_metadata: Sequence[tuple[str, str]] = ()
)
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.
Note: Not all arguments are detailed below. Refer to the *ServiceClient classes in
google.ai.generativelanguage for details on the other arguments.
| Args | |
|---|---|
| A string, one of: [ | |
| The API-Key to use when creating the default clients (each service uses
a separate client). This is a shortcut for  | |
| Default (key, value) metadata pairs to send with every request.
when using  | |