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

# Google Gemini

> Configure Google Gemini models in integration-api.

The Gemini caller uses the Google Generative AI Go SDK with streaming support.

**Provider directory:** `api/integration-api/internal/caller/gemini/`

***

## Vault Credential

| Key | Description |
| - | - |
| `key` | Google AI Studio API key from [aistudio.google.com](https://aistudio.google.com/app/apikey) |

***

## Setup

**1. Get a Gemini API key**

Sign in at [aistudio.google.com](https://aistudio.google.com/app/apikey) → **Get API key**.

**2. Add to Rapida vault**

In the Rapida dashboard → **Credentials → Create Credential**, select provider **Gemini**, enter `key` = your API key.

**3. Configure the assistant LLM**

In the assistant settings → **LLM Provider**, select **Gemini** and set model parameters:

```json theme={null}
{
  "model.name": "gemini-2.0-flash",
  "model.temperature": 0.7,
  "model.max_tokens": 512
}
```

***

## Supported Models

| Model | Context | Notes |
| - | - | - |
| `gemini-2.0-flash` | 1M | Fastest, recommended for voice |
| `gemini-1.5-pro` | 2M | Largest context window |
| `gemini-1.5-flash` | 1M | Fast, low cost |
| `gemini-pro` | 32k | Legacy |

***

## Model Parameters

| Key | Supported | Notes |
| - | - | - |
| `model.name` | ✅ | Required |
| `model.temperature` | ✅ | 0.0–2.0 |
| `model.max_tokens` | ✅ | |
| `model.top_p` | ✅ | |
| `model.top_k` | ✅ | Gemini-specific |
| `model.stop` | ✅ | |
| `model.frequency_penalty` | ✅ | |
| `model.presence_penalty` | ✅ | |
| `model.seed` | ✅ | |
| `model.response_format` | ✅ | MIME type: `application/json`, `text/plain` |

***

> [card] [OpenAI](https://doc.rapida.ai/opensource/services/integration-api/llm/openai.md)
>
> GPT-4o models

> [card] [LLM Overview](https://doc.rapida.ai/opensource/services/integration-api/llm/overview.md)
>
> All providers and ChatCompletionOptions


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