setAPI: Set Gemini API Key

View source: R/setAPI.R

setAPIR Documentation

Set Gemini API Key

Description

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

Usage

setAPI(api_key)

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

## Not run: 
setAPI("YOUR_API_KEY")

## End(Not run)

gemini.R documentation built on June 20, 2025, 5:07 p.m.

Related to setAPI in gemini.R...