Skip to content

Gemini 2.5 Flash

BYOK
by Googlegoogle/gemini-2.5-flash

Hybrid reasoning model with a 1M-token context window and thinking budgets.

This model needs your own provider key. Add one under BYOK in the console; platform billing is not available for it.
Input / output
$0.3 / $2.5
per 1M tokens, list price
Context
1.05M
up to 66K output
Modalities
text + image → text
tool calling
Released
2025-06-17
provider release date

Endpoints

Providers that serve this model. Requests fail over between them in priority order; the one marked platform is used for balance-billed traffic.

Endpoints
ProviderUpstream idAccessInput /1MOutput /1MCache read /1MPrice verified
Google AI Studiogemini-2.5-flashBYOK$0.3$2.5$0.032026-10-15

Pricing

List prices are the provider's rates per 1M tokens. Platform usage is charged at list price plus your plan's platform fee; BYOK usage is billed by your provider, and RouteHaven adds only its BYOK service fee. Platform fee by plan: Starter 5.5%, Business 4%, Enterprise 2.5%, before volume discounts. BYOK service fees by plan are on the pricing page. Sales tax or VAT, where applicable, is added at checkout when you buy credits and collected by Stripe; it is never charged per request. The amount actually charged is shown on every request in Activity.

Rates
RateUSD per 1M tokensApplies to
Input$0.3Uncached prompt tokens
Output$2.5Completion tokens, including reasoning where the provider counts it
Cache read$0.03Prompt tokens served from the provider cache

Estimate a month

Monthly cost at list price for a workload shape. Fees come from the public plans; your actual fee depends on your plan and volume tier.

Provider list cost$185.00
BYOK on Starter: 5% service fee$9.25
BYOK on Business: 3% service fee$5.55
BYOK on Enterprise: 1% service fee$1.85

BYOK rows show only RouteHaven's service fee; your provider bills the list cost directly. Conditional rates (long context, time of day, cache writes) are not included in this estimate. Sales tax or VAT, where applicable, is added at checkout when you buy credits and is not included either.

Measured performance

Measured from requests served through this deployment, all organizations aggregated; not a provider benchmark. Each number needs 20 samples of its own kind. Window: last 7 days · updated 2026-12-04 13:41 UTC.

Success rate
not enough data
all requests, 0 of 20 samples
Latency p50 / p95
not enough data
successful requests, 0 of 20 samples
Time to first token p50
not enough data
streamed requests, 0 of 20 samples
Throughput p50
not enough data
completion tokens per second, 0 of 20 samples

Supported parameters

Derived from the catalog record and endpoint configuration. Anything not listed is passed through to the provider unchanged.

Supported parameters
ParameterStatusNotes
streamSupportedServer-sent events on all three protocols.
tools / tool_choiceSupportedFunction calling in the OpenAI format; converted for other providers.
image inputSupportedPass image parts in the message content.
max_tokensSupportedUp to 66K output tokens. RouteHaven may lower the cap when your available balance cannot cover the worst case (x-max-tokens-capped header).
temperature / top_pSupportedPassed through to the provider.
models (fallbacks)SupportedA list of fallback model ids tried in order on 429, 5xx or timeout.

Call it

Base URL https://api.routehaven.ai/v1. Any model in the catalog is addressed by its id; the request shape is the OpenAI or Anthropic one you already use.

curl https://api.routehaven.ai/v1/chat/completions \
  -H "Authorization: Bearer $ROUTEHAVEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "google/gemini-2.5-flash",
  "messages": [{"role": "user", "content": "Summarize the last request latency numbers in one sentence."}],
  "stream": true
}'

Questions

What does Gemini 2.5 Flash cost?
$0.3 per 1M input tokens and $2.5 per 1M output tokens at list price, $0.03 for cached input. Platform usage adds your plan's fee; BYOK usage adds only the service fee. Sales tax or VAT, where applicable, is added at checkout when you buy credits and collected by Stripe; it is never charged per request.
How is it billed on RouteHaven?
Needs your own provider API key (BYOK). Your provider bills the tokens; RouteHaven charges a BYOK service fee (see pricing).
What is the context length?
1.05M tokens of context with up to 66K output tokens. Long prompts can hit conditional rates where the provider publishes them (see Pricing).
Does it support tool calling?
Yes. Send tools in the OpenAI format on any of the three protocols; RouteHaven converts them for the provider.
Which providers serve it?
Google AI Studio
Can I use it from the OpenAI or Anthropic SDK?
Yes. Set the base URL to https://api.routehaven.ai/v1 for OpenAI-format clients, or https://api.routehaven.ai for Anthropic-format clients, and use your sk-rh- key.

Looking for something else? Back to all models.