Gemini 2.5 Flash API

Gemini 2.5 Flash is a language model from google, available on Routeriva under the model ID gemini-2-5-flash. You call it with the same sk- key you use for every other model — no separate google account is needed.

On Routeriva it costs $0.07 per 1M input tokens and $0.63 per 1M output tokens, compared with the official list price of $0.30 / $2.50 — about 75% less. Prices shown are the lowest across the routes that serve this model; your key is charged at its own route's price.

Gemini 2.5 Flash is reachable both through the OpenAI-compatible /v1/chat/completions endpoint and the native Gemini generateContent endpoint, so the official Google SDKs work by changing only the base URL.

Key facts

Good for

Prices by route

RouteInput / 1MOutput / 1M
GEMINI$0.07$0.63

Code sample

from openai import OpenAI
client = OpenAI(base_url="https://api.routeriva.com/v1", api_key="sk-your-key")
r = client.chat.completions.create(model="gemini-2-5-flash", messages=[{"role": "user", "content": "Hello"}])
print(r.choices[0].message.content)

FAQ

How much does the Gemini 2.5 Flash API cost on Routeriva?

From $0.07 per 1M input tokens and $0.63 per 1M output tokens (official list $0.30 / $2.50, about 75% less). Live prices are on routeriva.com/models/gemini-2-5-flash.

What model ID do I use for Gemini 2.5 Flash?

Use "gemini-2-5-flash" as the model value with base URL https://api.routeriva.com/v1 and your sk- key.

Which endpoints support Gemini 2.5 Flash?

/v1/chat/completions, /v1/responses, /v1beta/models/gemini-2-5-flash:generateContent on https://api.routeriva.com.

More from google