> ## Documentation Index
> Fetch the complete documentation index at: https://env.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Gemini (Google)

> Using Gemini models in env

# Gemini

Google's Gemini models offer impressive context windows and strong multimodal capabilities.

## Available Models

| Model            | Context   | Best For                        |
| ---------------- | --------- | ------------------------------- |
| Gemini 1.5 Pro   | 1M tokens | Long documents, large codebases |
| Gemini 1.5 Flash | 1M tokens | Fast responses, cost-effective  |

## Setup

1. Get an API key from [aistudio.google.com](https://aistudio.google.com/app/apikey)
2. Open env Settings (⌘ + ,)
3. Add your key under **Google**
4. Select a Gemini model to start chatting

## Features

### Million Token Context

Gemini 1.5 models support up to 1 million tokens of context — enough for entire books, large codebases, or hours of video.

### Multimodal

Gemini natively understands images, audio, and video. Attach files directly to your messages.

### Grounding

Gemini can ground responses in Google Search for up-to-date information.

## Tips

<Tip>
  Use Gemini when you need to analyze very long documents or entire codebases at once.
</Tip>

* **1.5 Pro** is better for complex tasks requiring reasoning
* **1.5 Flash** is faster and cheaper for straightforward tasks
* Gemini excels when you need to reference large amounts of context

## Keyboard Shortcut

Press **⌘ + 3** to quickly switch to Gemini.
