gemma | R Documentation |
Generate text from text with Gemma with Gemini API
gemma(prompt, model = "gemma-3-1b-it", api_key = NULL, timeout = 60)
prompt |
The prompt to generate text from |
model |
The model to use. Default is 'gemma-3-1b-it'. see https://ai.google.dev/gemma/docs/get_started#models-list |
api_key |
Your API key. If NULL, uses GEMINI_API_KEY environment variable. |
timeout |
Request timeout in seconds. Default is 60. |
Generated text
## Not run:
gemma("Roses are red...")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.