Gemini 2.5 Flash Image API Pricing
gemini/gemini-2.5-flash-image- Price
- $0.039 per image
- Cache read
- $0.03 / 1M
- Context
- 64K tokens
- Max output
- 32K tokens
As of November 24, 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.Gemini 2.5 Flash Image pricing by provider
3 listings across 3 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 | $1.25 | 64K |
| Google Vertex AI | vertex_ai/gemini-2.5-flash-image | $0.039 | $0.30 | $2.50 | $30.00 | – | $0.15 | $1.25 | 32K |
| Replicate | replicate/google/gemini-2.5-flash-image | $0.039 | – | – | – | – | – | – | – |
Other Gemini 2.5 Flash Image 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 Image costs in practice
Generating 1,000 images
| Google AI Studio | $39.00 |
| Google Vertex AI | $39.00 |
| Replicate | $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 $LITELLM_API_KEY" \
-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. Batch requests cost $0.15 per 1M input tokens and $1.25 per 1M output 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 3 providers through LiteLLM: Google AI Studio, Google Vertex AI and Replicate.
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. Maintainers update it from each provider's published pricing, and this page is usually rebuilt within 20 minutes of every change. Provider pricing pages:
- ai.google.dev/gemini-api/docs/pricing
- cloud.google.com/gemini-enterprise-agent-platform/generative-ai/pricing
- replicate.com/google/gemini-2.5-flash-image
LiteLLM docs: Google AI Studio, Google Vertex AI, Replicate.
Provider pages: Google AI Studio, Google Vertex AI, Replicate.