Skip to content

Gemini

Terminal window
export LLM_PROVIDER=gemini
export GEMINI_API_KEY=AI...
VariableDefaultDescription
GEMINI_API_KEYYour Google AI API key
LLM_MODELgemini-1.5-flashOverride the default model

Any Gemini model ID works. Common options:

  • gemini-1.5-flash (default) — fast and cost-effective
  • gemini-1.5-pro — higher quality
  • gemini-2.0-flash — latest generation
  1. Go to aistudio.google.com
  2. Sign in with your Google account
  3. Click Get API key
  4. Create a key for your project