Google · Text
Gemini 2.5 Flash API pricing
google/gemini-2.5-flash
Legacy Flash with a free tier. Gemini 2.5 Flash by Google, routed through INFRO on a Google account you connect — alongside every other provider you run. Google bills you for it directly, on that account and at your own rate. INFRO adds routing, failover, request logs, cost attribution and policy around it, and takes no part of what you pay Google.
Pricing
Google rate
$0.85
per 1M tokens, billed to you by Google
INFRO adds
$0
0% markup on model spend
Per-token rates
$0.30 / 1M input tokens·$2.50 / 1M output tokens
The headline figure above is these two blended at a 3:1 input:output ratio, so one number is comparable across modalities. Your own ratio will move it.
Calling Gemini 2.5 Flash
POST /v1/chat/completionsimport os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["INFRO_API_KEY"],
base_url="https://api.infro.io/v1",
)
response = client.chat.completions.create(
model="google/gemini-2.5-flash",
messages=[{"role": "user", "content": "Hello"}],
)What this modality supports
- Streaming
- Tool calling
- Structured outputs
- Prompt caching
Frontier and open-weight language models behind an OpenAI-compatible endpoint. Streaming, tool calling, structured outputs, and vision pass straight through — and prompt caching is priced at the provider's own cached rate.
Providers that serve Gemini 2.5 Flash
You request "google/gemini-2.5-flash" from INFRO; it sends each provider the id that provider expects. Connect your own account with any of them, and INFRO routes and fails over between the ones you connect.
| Provider | Model id sent |
|---|---|
| Google AI (Gemini) | gemini-2.5-flash |
| OpenRouter | google/gemini-2.5-flash |
Alternatives for legacy flash with a free tier
Same modality, nearest in price. All of them share the request shape above, so comparing them is a one-word change.
More Google models
All Google models- Gemini 3.1 Progoogle/gemini-3.1-pro$2.00 / $12
- Gemini 3.8 Flashgoogle/gemini-3.8-flash$0.75 / $3.75
- Gemini 3.7 Flashgoogle/gemini-3.7-flash$0.75 / $3.75
- Gemini 3.6 Flashgoogle/gemini-3.6-flash$0.75 / $3.75
- Gemini 3.5 Flashgoogle/gemini-3.5-flash$1.50 / $9.00
- Gemini 3.5 Flash-Litegoogle/gemini-3.5-flash-lite$0.30 / $2.50
Gemini 2.5 Flash: questions
- How much does the Gemini 2.5 Flash API cost?
- Google's published list rate for Gemini 2.5 Flash is $0.30 per 1M input tokens and $2.50 per 1M output tokens, with cached input at $0.03 per 1M tokens (checked 2026-10-05). The provider account you connect bills you at the rate on that account, so a negotiated rate replaces the list rate. INFRO adds 0% to model spend.
- Which providers serve Gemini 2.5 Flash?
- In INFRO's provider registry, Gemini 2.5 Flash can be served by Google AI (Gemini) and OpenRouter. You connect your own account with any of them, and INFRO routes and fails over between the ones you connect.
- What is the Gemini 2.5 Flash model ID?
- Request it from INFRO as "google/gemini-2.5-flash". INFRO sends each provider its own id: Google AI (Gemini) "gemini-2.5-flash", OpenRouter "google/gemini-2.5-flash".
- How do I call Gemini 2.5 Flash through an OpenAI-compatible API?
- Point an OpenAI SDK, or any HTTP client, at https://api.infro.io/v1 with an INFRO gateway key and send model "google/gemini-2.5-flash" to POST /v1/chat/completions. INFRO runs the request on a provider account you connected and returns the provider's response with an estimated cost.
- Does INFRO mark up Gemini 2.5 Flash usage?
- No. Google or the provider you connect bills model usage to your own account. INFRO charges a software subscription for routing, failover, observability, budgets and policy, and takes 0% of model spend.
Work out what Gemini 2.5 Flash would cost you
Put your monthly usage of this model into the calculator to see the provider cost on your own account and the INFROsubscription side by side, never summed.