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

# Gemini

> Configure Google Gemini in CowAgent: one API key enables chat, native image understanding and Nano Banana image generation, all set up from the web console.

Google Gemini supports text chat, image understanding, and image generation (Nano Banana series). A single `gemini_api_key` enables all capabilities.

> [!TIP]
>
> All capabilities below can be configured in one place via the "Model Management" page in the Web Console, with no need to manually edit the configuration file.

## Text Chat

```json theme={null}
{
  "model": "gemini-4-argon",
  "gemini_api_key": "YOUR_API_KEY"
}
```

| Parameter | Description |
| - | - |
| `model` | Recommended: `gemini-4-argon`; also supports `gemini-3.8-flash`, `gemini-3.7-flash`, `gemini-3.6-flash`, `gemini-3.5-flash`, `gemini-3.1-pro-preview`, `gemini-3.1-flash-lite-preview`, `gemini-3-flash-preview`, `gemini-3-pro-preview`, etc. See [official docs](https://ai.google.dev/gemini-api/docs/models) |
| `gemini_api_key` | Create one in [Google AI Studio](https://aistudio.google.com/app/apikey) |
| `gemini_api_base` | Optional, defaults to `https://generativelanguage.googleapis.com`. Can be changed to a third-party proxy |

> [!NOTE]
>
> `gemini-4-argon` is Gemini's most capable model. It always thinks; the thinking level can be `low` / `medium` / `high` (default `medium`) and is adjustable in the model settings of the Web console.

## Image Understanding

All Gemini models natively support vision. Once `gemini_api_key` is configured, the Agent's Vision tool automatically uses the main model to recognize images, with no extra setup required.

To manually specify a Vision model:

```json theme={null}
{
  "tools": {
    "vision": {
      "model": "gemini-3.1-flash-lite-preview"
    }
  }
}
```

## Image Generation

```json theme={null}
{
  "skills": {
    "image-generation": {
      "model": "gemini-3.1-flash-image-preview"
    }
  }
}
```

| Model ID | Alias |
| - | - |
| `gemini-3.1-flash-image-preview` | Nano Banana 2 |
| `gemini-3-pro-image-preview` | Nano Banana Pro |
| `gemini-2.5-flash-image` | Nano Banana |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.