Skip to main content
Google Gemini models offer some of the largest context windows available - up to 2M tokens for Gemini 1.5 Pro. All Gemini models support native function calling and vision.

Supported Models

Setup

1

Get an API key

Go to aistudio.google.com and create an API key (free tier available).
2

Set the environment variable

3

Verify

Environment Variables

string
required
Your Google AI API key. Either GOOGLE_API_KEY or GOOGLE_GENERATIVE_AI_API_KEY is accepted.
string
Alternative variable name for the Google API key. Takes precedence over GOOGLE_API_KEY if both are set.

Configuration Example

Model Aliases

Usage Examples

Notes

  • Gemini 1.5 Pro has a 2M token context window - the largest of any profClaw provider.
  • Gemini 1.5 Flash is very cheap at $0.075/1M input tokens, good for high-volume tasks.
  • Free tier is available via Google AI Studio with rate limits.
  • For Google Workspace / enterprise use, see the Vertex AI option via a custom base_url.