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.
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.
| Provider | Model name in LiteLLM | Per image | Input | Output | Image output | Cache read | Batch in | Batch out | Context |
|---|---|---|---|---|---|---|---|---|---|
| Google AI Studio | gemini/gemini-2.5-flash-image | $0.039 | $0.30 | $2.50 | $30.00 | $0.03 | $0.15 | – | 64K |
| Google Vertex AI | vertex_ai/gemini-2.5-flash-image | $0.039 | $0.30 | $2.50 | $30.00 | – | $0.15 | $1.25 | 32K |
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.
- Function calling
- Parallel tool calls
- Structured output
- Image input
- PDF input
- Audio input
- Audio output
- Reasoning
- Prompt caching
- Web search
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.
from litellm import image_generation
response = image_generation(
model="gemini/gemini-2.5-flash-image",
prompt="A cute baby sea otter",
)model_list:
- model_name: gemini-2.5-flash-image
litellm_params:
model: gemini/gemini-2.5-flash-image
api_key: os.environ/GEMINI_API_KEYcurl 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:
- ai.google.dev/gemini-api/docs/pricing
- cloud.google.com/gemini-enterprise-agent-platform/generative-ai/pricing
LiteLLM docs: Google AI Studio, Google Vertex AI.
Provider pages: Google AI Studio, Google Vertex AI.
