LiteLLMLiteLLM/ MODELS

Gemini 2.5 Flash API Pricing

By Google · 9 providersgemini/gemini-2.5-flashCompare
Input / output
$0.30 / $2.50 per 1M tokens
Cache read
$0.03 / 1M
Context
1M tokens
Max output
64K tokens

As of November 24, 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 9 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.

Prices updated Checked
Scheduled for deprecation: Google AI Studio lists December 1, 2026 as the deprecation date for gemini/gemini-2.5-flash.

Gemini 2.5 Flash pricing by provider

9 listings across 9 providers. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.

Gemini 2.5 Flash prices by provider in US dollars, token prices per 1M tokens, as of November 24, 2026. Source: LiteLLM model price file.
ProviderModel name in LiteLLMPer imageInputOutputCache readCache writeBatch inBatch outContext
Google AI Studiogemini/gemini-2.5-flash–$0.30$2.50$0.03–$0.15$1.251M
Google Vertex AIvertex_ai/gemini-2.5-flash–$0.30$2.50$0.03–$0.15$1.251M
Runwayrunwayml/gemini_2.5_flash$0.05–––––––
Databricksdatabricks/databricks-gemini-2-5-flash–$0.30$2.50$0.03$0.30––1M
DeepInfradeepinfra/google/gemini-2.5-flash–$0.30$2.50––––1M
Oracle Cloud (OCI)oci/google.gemini-2.5-flash–$0.15$0.60––––1M
Perplexityperplexity/google/gemini-2.5-flash––––––––
Replicatereplicate/google/gemini-2.5-flash–$0.30$2.50–––––
Vercel AI Gatewayvercel_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 cost calculator

At Google AI Studio's price ($0.30 input, $2.50 output per 1M tokens), 10,000 requests a day with 1,000 input and 500 output tokens each cost $15.50 a day, about $465 a month. Change the numbers for your workload, or compare it with other models.

Per request
$0.00155
Per day
$15.50
Per month (30 days)
$465

Gemini 2.5 Flash features

Input: text, image, audio, video. Output: text.

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.

Python SDK
from litellm import completion

response = completion(
    model="gemini/gemini-2.5-flash",
    messages=[{"role": "user", "content": "Hello!"}],
)
Proxy config.yaml
model_list:
  - model_name: gemini-2.5-flash
    litellm_params:
      model: gemini/gemini-2.5-flash
      api_key: os.environ/GEMINI_API_KEY
Call the proxy
curl http://0.0.0.0:4000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LITELLM_API_KEY" \
  -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 9 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 9 providers through LiteLLM: Google AI Studio, Google Vertex AI, Runway, 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.

Is Gemini 2.5 Flash being deprecated?

Google AI Studio lists a deprecation date of December 1, 2026 for gemini/gemini-2.5-flash.

Sources

Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request. Maintainers update it from each provider's published pricing, and this page is usually rebuilt within 20 minutes of every change. Provider pricing pages:

LiteLLM docs: Google AI Studio, Google Vertex AI, Runway, Databricks, DeepInfra, Oracle Cloud (OCI).

Provider pages: Google AI Studio, Google Vertex AI, Runway, Databricks, DeepInfra, Oracle Cloud (OCI), Perplexity, Replicate, Vercel AI Gateway.