Google Gemini Setup
To use Google Gemini models with Janito, follow these steps:
1. Get Your API Key
- Go to the Google Cloud Console
- Create a new project or select an existing one
- Enable the Generative Language API
- Navigate to "APIs & Services" → "Credentials"
- Create an API key
2. Set the API Key
Set your Google API key using the CLI:
janito set-api-key --provider google --key YOUR_API_KEY_HERE
Or set it as an environment variable:
export GOOGLE_API_KEY="YOUR_API_KEY_HERE"
3. Available Models
Janito supports the following Google Gemini models:
gemini-2.5-flash
- Fastest model for simple tasksgemini-2.5-pro
- Most capable model for complex tasksgemini-2.5-flash-lite-preview-06-17
- Lightweight version for low-latency applications
4. Usage Examples
List available models
janito list-models --provider google
Use a specific model
janito chat --provider google --model gemini-2.5-pro
Set as default provider
janito set-config provider=google
Notes
- Google Gemini is accessed through an OpenAI-compatible API endpoint
- The default model is
gemini-2.5-flash
- All models support streaming responses and tool usage
- Context window sizes vary by model (see Supported Models for details)
For more information, visit the Google AI documentation.