docs/platform/gemini.md
This guide covers integrating Google Gemini models with AutoGPT using OpenRouter.
http://localhost:3000.AutoGPT routes all Gemini models through OpenRouter. You need an OpenRouter API key:
Follow the official guide: AutoGPT Getting Started Guide
Ensure AutoGPT is running and accessible at: http://localhost:3000
Open your browser and navigate to: http://localhost:3000/build
Or click "Build" in the navigation bar.
AI Text Generator.Click the AI Text Generator block to configure it.
In the LLM Model dropdown, select one of the available Gemini models:
| Model | Description | Best For |
|---|---|---|
google/gemini-3-pro-preview | Latest Gemini model | Complex reasoning, coding, multimodal tasks |
google/gemini-2.5-pro-preview-03-25 | High capability model | Complex reasoning, coding, multimodal tasks |
google/gemini-2.5-flash | Fast, efficient performance | Quick responses, high-volume tasks |
google/gemini-2.5-flash-lite-preview-06-17 | Lightweight preview | Simple tasks, low latency requirements |
google/gemini-2.0-flash-001 | Balanced speed and quality | General-purpose applications |
google/gemini-2.0-flash-lite-001 | Lightweight, cost-effective | Simple tasks, low latency requirements |
Select the models prefixed with
google/in the dropdown.
Inside the AI Text Generator block:
Get your API key from: https://openrouter.ai/keys
Save your API key as a credential in AutoGPT for easy reuse across multiple blocks.
Click the "Save" button at the top-right of the builder interface:
gemini_research_agent)From the workspace:
Gemini models support multiple input types:
Enhance your workflow with additional blocks:
Gemini models are priced through OpenRouter. Check current rates at: OpenRouter Google Models
Pricing varies by model tier and usage volume.
google/ prefix in the dropdowngoogle/gemini-2.0-flash-lite for cost-effective high-volume tasksYou are now set up to use Google Gemini models in AutoGPT.