# Gemini 2.5 Flash Preview API Pricing

As of October 10, 2026, Gemini 2.5 Flash Preview costs $0.30 per 1M input tokens and $2.50 per 1M output tokens on Google Vertex AI, with cache reads at $0.03 per 1M tokens. It has a 1,048,576-token context window and returns up to 65,535 tokens per response.

- Page: https://models.litellm.ai/models/gemini-2.5-flash-preview
- Lab: Google
- LiteLLM model name: `vertex_ai/gemini-2.5-flash-preview-09-2025`
- Context window: 1,048,576 tokens
- Max output: 65,535 tokens
- Added to LiteLLM: October 2025
- 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 Vertex AI (snapshot 09-2025) | `vertex_ai/gemini-2.5-flash-preview-09-2025` | $0.30 | $2.50 | $0.03 | – | – | 1M |

## Cost examples

1,000 requests with 2,000 input and 500 output tokens each:

- Google Vertex AI: $1.85

100 long-document requests with 100,000 input and 2,000 output tokens each:

- Google Vertex AI: $3.50

## Features

Supported: Function calling, Parallel tool calls, Structured output, Image input, PDF input, Reasoning, Prompt caching, Web search.
Not supported: Audio output.

## Use it with LiteLLM

```python
from litellm import completion

response = completion(
    model="vertex_ai/gemini-2.5-flash-preview-09-2025",
    messages=[{"role": "user", "content": "Hello!"}],
)
```

## FAQ

### How much does Gemini 2.5 Flash Preview cost?

Gemini 2.5 Flash Preview costs $0.30 per 1M input tokens and $2.50 per 1M output tokens on Google Vertex AI, with cache reads at $0.03 per 1M tokens.

### What is the context window of Gemini 2.5 Flash Preview?

Gemini 2.5 Flash Preview has a 1,048,576-token context window and returns up to 65,535 tokens per response.

### Which providers offer Gemini 2.5 Flash Preview?

Gemini 2.5 Flash Preview is available from Google Vertex AI through LiteLLM, using the model name vertex_ai/gemini-2.5-flash-preview-09-2025.

### How do I call Gemini 2.5 Flash Preview with an OpenAI-compatible API?

Use the LiteLLM Python SDK with model="vertex_ai/gemini-2.5-flash-preview-09-2025", or add the model to the LiteLLM proxy's config.yaml and send requests to /v1/chat/completions from any OpenAI client. LiteLLM tracks the cost of every request at the prices on this page.

### What features does Gemini 2.5 Flash Preview support?

Gemini 2.5 Flash Preview supports function calling, parallel tool calls, structured output, image input, PDF input, reasoning, prompt caching and web search. It does not support audio output.

### When did LiteLLM add Gemini 2.5 Flash Preview?

Gemini 2.5 Flash Preview was added to LiteLLM's model price file in October 2025.

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