# Gemini Embedding 2 API Pricing

As of October 10, 2026, Gemini Embedding 2 costs $0.20 per 1M input tokens on Google AI Studio. It has an 8,192-token context window.

- Page: https://models.litellm.ai/models/gemini-embedding-2
- Lab: Google
- LiteLLM model name: `gemini/gemini-embedding-2`
- Context window: 8,192 tokens
- Added to LiteLLM: April 2026
- Prices updated: October 10, 2026

## Pricing by provider

Token prices in USD per 1M tokens.

| Provider | Model name | Input | Output | Cache read | Per image | Per second | Context |
|---|---|---|---|---|---|---|---|
| Google AI Studio | `gemini/gemini-embedding-2` | $0.20 | $0 | – | – | – | 8K |
| Google Vertex AI | `vertex_ai/gemini-embedding-2` | $0.20 | $0 | – | – | – | 8K |

## Cost examples

Embedding 10,000 documents of 500 tokens each:

- Google AI Studio: $1.00
- Google Vertex AI: $1.00

## Features

Supported: Image input, Audio input.

## Use it with LiteLLM

```python
from litellm import embedding

response = embedding(
    model="gemini/gemini-embedding-2",
    input=["hello world"],
)
```

## FAQ

### How much does Gemini Embedding 2 cost?

Gemini Embedding 2 costs $0.20 per 1M input tokens on Google AI Studio.

### What is the context window of Gemini Embedding 2?

Gemini Embedding 2 has an 8,192-token context window.

### Which providers offer Gemini Embedding 2?

Gemini Embedding 2 is available from 2 providers through LiteLLM: Google AI Studio and Google Vertex AI.

### How do I call Gemini Embedding 2 with an OpenAI-compatible API?

Use the LiteLLM Python SDK with model="gemini/gemini-embedding-2", or add the model to the LiteLLM proxy's config.yaml and send requests to /v1/embeddings from any OpenAI client. LiteLLM tracks the cost of every request at the prices on this page.

### What features does Gemini Embedding 2 support?

Gemini Embedding 2 supports image input and audio input.

### When did LiteLLM add Gemini Embedding 2?

Gemini Embedding 2 was added to LiteLLM's model price file in April 2026.

Source: LiteLLM model price file, https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json
