LiteLLMModels

Gemini 2.5 Flash Image API Pricing

As of October 10, 2026, Gemini 2.5 Flash Image costs $0.039 per image on Google AI Studio, plus $0.30 per 1M input tokens. It has a 65,536-token context window and returns up to 32,768 tokens per response.

By GoogleModel ID gemini/gemini-2.5-flash-imagePrices updated Checked
Scheduled for deprecation: Google AI Studio lists March 15, 2027 as the deprecation date for gemini/gemini-2.5-flash-image.
Per image
$0.039
Input
$0.30 / 1M tokens
Output
$2.50 / 1M tokens
Cache read
$0.03 / 1M tokens
Context window
65,536 tokens
Max output
32,768 tokens
Providers
2
Added to LiteLLM
October 2025

Gemini 2.5 Flash Image pricing by provider

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

ProviderModel name in LiteLLMPer imageInputOutputImage outputCache readBatch inBatch outContext
Google AI Studiogemini/gemini-2.5-flash-image$0.039$0.30$2.50$30.00$0.03$0.15–64K
Google Vertex AIvertex_ai/gemini-2.5-flash-image$0.039$0.30$2.50$30.00–$0.15$1.2532K

Other Gemini 2.5 Flash Image prices on Google AI Studio

Priority input$0.54 per 1M tokens
Flex input$0.15 per 1M tokens
Audio input$1.00 per 1M tokens
Web search$35.00 per 1K searches

What Gemini 2.5 Flash Image costs in practice

Generating 1,000 images

Google AI Studio$39.00
Google Vertex AI$39.00

Gemini 2.5 Flash Image features

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

Use Gemini 2.5 Flash Image with LiteLLM

Call Gemini 2.5 Flash Image through the LiteLLM Python SDK, or put it behind the LiteLLM proxy and send OpenAI-format requests to /v1/images/generations. LiteLLM tracks the cost of every request at these prices.

Python SDK
from litellm import image_generation

response = image_generation(
    model="gemini/gemini-2.5-flash-image",
    prompt="A cute baby sea otter",
)
Proxy config.yaml
model_list:
  - model_name: gemini-2.5-flash-image
    litellm_params:
      model: gemini/gemini-2.5-flash-image
      api_key: os.environ/GEMINI_API_KEY
Call the proxy
curl http://0.0.0.0:4000/v1/images/generations \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-1234" \
  -d '{
    "model": "gemini-2.5-flash-image",
    "prompt": "A cute baby sea otter",
    "n": 1,
    "size": "1024x1024"
  }'

Gemini 2.5 Flash Image FAQ

How much does Gemini 2.5 Flash Image cost?

Gemini 2.5 Flash Image costs $0.039 per image on Google AI Studio, plus $0.30 per 1M input tokens.

What is the context window of Gemini 2.5 Flash Image?

Gemini 2.5 Flash Image has a 65,536-token context window and returns up to 32,768 tokens per response.

Which providers offer Gemini 2.5 Flash Image?

Gemini 2.5 Flash Image is available from 2 providers through LiteLLM: Google AI Studio and Google Vertex AI.

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

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

What features does Gemini 2.5 Flash Image support?

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

When did LiteLLM add Gemini 2.5 Flash Image?

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

Is Gemini 2.5 Flash Image being deprecated?

Google AI Studio lists a deprecation date of March 15, 2027 for gemini/gemini-2.5-flash-image.

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:

LiteLLM docs: Google AI Studio, Google Vertex AI.

Provider pages: Google AI Studio, Google Vertex AI.