Gemini 2.5 Flash API Pricing
As of October 10, 2026, Gemini 2.5 Flash costs $0.30 per 1M input tokens and $2.50 per 1M output tokens on Google AI Studio, with cache reads at $0.03 per 1M tokens. Across 8 providers on LiteLLM, the input price ranges from $0.15 to $0.30. It has a 1,048,576-token context window and returns up to 65,536 tokens per response.
- Input
- $0.30 / 1M tokens
- Output
- $2.50 / 1M tokens
- Cache read
- $0.03 / 1M tokens
- Context window
- 1,048,576 tokens
- Max output
- 65,536 tokens
- Providers
- 8
- Added to LiteLLM
- June 2025
Gemini 2.5 Flash pricing by provider
8 listings across 8 providers. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.
| Provider | Model name in LiteLLM | Input | Output | Cache read | Cache write | Batch in | Batch out | Context |
|---|---|---|---|---|---|---|---|---|
| Google AI Studio | gemini/gemini-2.5-flash | $0.30 | $2.50 | $0.03 | – | $0.15 | $1.25 | 1M |
| Google Vertex AI | vertex_ai/gemini-2.5-flash | $0.30 | $2.50 | $0.03 | – | $0.15 | $1.25 | 1M |
| Databricks | databricks/databricks-gemini-2-5-flash | $0.30 | $2.50 | $0.03 | $0.30 | – | – | 1M |
| DeepInfra | deepinfra/google/gemini-2.5-flash | $0.30 | $2.50 | – | – | – | – | 1M |
| Oracle Cloud (OCI) | oci/google.gemini-2.5-flash | $0.15 | $0.60 | – | – | – | – | 1M |
| Perplexity | perplexity/google/gemini-2.5-flash | – | – | – | – | – | – | – |
| Replicate | replicate/google/gemini-2.5-flash | $0.30 | $2.50 | – | – | – | – | – |
| Vercel AI Gateway | vercel_ai_gateway/google/gemini-2.5-flash | $0.30 | $2.50 | $0.03 | – | – | – | 1M |
Other Gemini 2.5 Flash prices on Google AI Studio
| Priority input | $0.54 per 1M tokens |
| Priority output | $4.50 per 1M tokens |
| Flex input | $0.15 per 1M tokens |
| Flex output | $1.25 per 1M tokens |
| Audio input | $1.00 per 1M tokens |
| Web search | $35.00 per 1K searches |
What Gemini 2.5 Flash costs in practice
1,000 requests with 2,000 input and 500 output tokens each
| Google AI Studio | $1.85 |
| Oracle Cloud (OCI) | $0.60 |
| Google Vertex AI | $1.85 |
| DeepInfra | $1.85 |
| Google AI Studio batch | $0.925 |
100 long-document requests with 100,000 input and 2,000 output tokens each
| Google AI Studio | $3.50 |
| Oracle Cloud (OCI) | $1.62 |
| Google Vertex AI | $3.50 |
| DeepInfra | $3.50 |
Gemini 2.5 Flash features
Input: text, image, audio, video. Output: text.
- Function calling
- Parallel tool calls
- Structured output
- Image input
- PDF input
- Audio input
- Audio output
- Video input
- Reasoning
- Prompt caching
- Web search
Use Gemini 2.5 Flash with LiteLLM
Call Gemini 2.5 Flash through the LiteLLM Python SDK, or put it behind the LiteLLM proxy and send OpenAI-format requests to /v1/chat/completions. LiteLLM tracks the cost of every request at these prices.
from litellm import completion
response = completion(
model="gemini/gemini-2.5-flash",
messages=[{"role": "user", "content": "Hello!"}],
)model_list:
- model_name: gemini-2.5-flash
litellm_params:
model: gemini/gemini-2.5-flash
api_key: os.environ/GEMINI_API_KEYcurl http://0.0.0.0:4000/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk-1234" \
-d '{
"model": "gemini-2.5-flash",
"messages": [{"role": "user", "content": "Hello!"}]
}'Gemini 2.5 Flash FAQ
How much does Gemini 2.5 Flash cost?
Gemini 2.5 Flash costs $0.30 per 1M input tokens and $2.50 per 1M output tokens on Google AI Studio, with cache reads at $0.03 per 1M tokens. Batch requests cost $0.15 per 1M input tokens and $1.25 per 1M output tokens. Across 8 providers on LiteLLM, the input price ranges from $0.15 to $0.30.
What is the context window of Gemini 2.5 Flash?
Gemini 2.5 Flash has a 1,048,576-token context window and returns up to 65,536 tokens per response.
Which providers offer Gemini 2.5 Flash?
Gemini 2.5 Flash is available from 8 providers through LiteLLM: Google AI Studio, Google Vertex AI, Databricks, DeepInfra, Oracle Cloud (OCI), Perplexity, Replicate and Vercel AI Gateway. The lowest price is on Oracle Cloud (OCI).
How do I call Gemini 2.5 Flash with an OpenAI-compatible API?
Use the LiteLLM Python SDK with model="gemini/gemini-2.5-flash", 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 support?
Gemini 2.5 Flash supports function calling, parallel tool calls, structured output, image input, PDF input, audio input, video input, reasoning, prompt caching and web search. It does not support audio output.
When did LiteLLM add Gemini 2.5 Flash?
Gemini 2.5 Flash was added to LiteLLM's model price file in June 2025.
Sources
Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request. Provider pricing pages:
- ai.google.dev/gemini-api/docs/pricing
- cloud.google.com/gemini-enterprise-agent-platform/generative-ai/pricing
- www.databricks.com/product/pricing/proprietary-foundation-model-serving
- www.oracle.com/artificial-intelligence/generative-ai/generative-ai-service/pricing
LiteLLM docs: Google AI Studio, Google Vertex AI, Databricks, DeepInfra, Oracle Cloud (OCI), Perplexity.
Provider pages: Google AI Studio, Google Vertex AI, Databricks, DeepInfra, Oracle Cloud (OCI), Perplexity, Replicate, Vercel AI Gateway.
