Learn R Programming

gemini.R (version 0.15.0)

setAPI: Set Gemini API Key

Description

Sets the Gemini API key as an environment variable for use in API calls.

Usage

setAPI(api_key)

Value

No return value, called for side effects.

Arguments

api_key

A character string containing your Gemini API key.

See Also

https://makersuite.google.com/app/apikey

Examples

Run this code
if (FALSE) {
setAPI("YOUR_API_KEY")
}

Run the code above in your browser using DataLab