Skip to contents

Generate text from text with Gemini

Usage

gemini(prompt)

Arguments

prompt

The prompt to generate text from

Value

Generated text

See also

https://ai.google.dev/docs/gemini_api_overview#text_input

Examples

library(gemini.R)
setAPI("YOUR_API_KEY")
gemini("Explain dplyr's mutate function")
#> NULL