Sets the Gemini API key as an environment variable for use in API calls.
Arguments
- api_key
A character string containing your Gemini API key.
Value
No return value, called for side effects.
Note
Please be aware you have to agree to the terms of service of the API provider.
Any app that uses the API key is subject to the terms of service.
Also, please be aware that the API key is a sensitive information.
See also
https://makersuite.google.com/app/apikey
Examples
if (FALSE) { # \dontrun{
setAPI("YOUR_API_KEY")
} # }