chat.gemini_2_5_flash
google/gemini-2-5-flash

The Gemini 2.5 Flash API is Google's speed-and-cost-balanced Gemini 2.5 model — a 1M-token context window, optional thinking, native input for text, images, audio, video, and PDF, function calling, and structured JSON outputs, tuned for low latency and high throughput. The Gemini 2.5 Flash API is OpenAI-compatible: point any existing SDK at RouterBase and set the model to gemini-2-5-flash. Input at $0.285 / 1M tokens, output at $2.375 / 1M tokens, cache reads at $0.0285 / 1M tokens — 5% below the official published rate, all through one REST endpoint.

Input
Gemini 2.5 Flash
max_tokens4096
temperature1
top_p1
presence_penalty0
frequency_penalty0
Gemini 2.5 Flash Online
Hi! I'm a helpful AI assistant. What can I do for you?

Gemini 2.5 Flash API: Chat

Use the Gemini 2.5 Flash API to run Google's fast, efficient multimodal model with a 1M-token context window and built-in thinking.

The Gemini 2.5 Flash API is Google's speed-and-cost-balanced Gemini 2.5 model — a 1M-token context window, optional thinking, native input for text, images, audio, video, and PDF, function calling, and structured JSON outputs, tuned for low latency and high throughput. Routed through RouterBase, the Gemini 2.5 Flash API is fully OpenAI-compatible: point any existing SDK at RouterBase's base URL, set the model to gemini-2-5-flash, and your first call goes through immediately.

Pricing is $0.285 / 1M input tokens, $2.375 / 1M output tokens, and $0.0285 / 1M cached-input reads — 5% below the official published rate. One RouterBase key — no Google credentials required.

Why this model

Six reasons teams ship on the Gemini 2.5 Flash API

From built-in thinking to 5%-off pricing — what makes the Gemini 2.5 Flash API stand out.

1M-token context

Accepts up to 1 million tokens per request — long documents, multi-file code, or video transcripts fit in a single Gemini 2.5 Flash API call without chunking.

Optional thinking

Enable thinking to let the Gemini 2.5 Flash API reason step-by-step before answering, or turn it off for the fastest, cheapest responses — you control the speed/quality trade-off per request.

Native multimodal input

The Gemini 2.5 Flash API understands text, images, audio, video, and PDFs. Pass mixed media in one request to analyze, transcribe, or reason across modalities.

Function calling & JSON

Define tools and request a JSON schema; the Gemini 2.5 Flash API returns structured tool calls and strictly valid JSON for reliable agent and extraction pipelines.

OpenAI-compatible endpoint

The Gemini 2.5 Flash API speaks the OpenAI chat-completions wire format. Point any OpenAI SDK at RouterBase — no Google SDK or separate credentials needed.

One key for 200+ models

The same RouterBase key that calls the Gemini 2.5 Flash API also routes to GPT-5, Claude Opus 4.8, Gemini 2.5 Pro, and 200+ other models — no per-provider credential management.

RouterBase dashboard preview
Quickstart

Get started with the Gemini 2.5 Flash API in 3 steps

From sign-up to your first response in under 5 minutes.

  1. Create a RouterBase API key

    Sign up and generate an API key — one key reaches the Gemini 2.5 Flash API and every other model in the catalog.

  2. Send your first message

    Point any OpenAI-compatible SDK at routerbase.com/v1 and set the model to gemini-2-5-flash. The response follows the standard chat-completions schema — streaming and multimodal input supported.

  3. Inspect usage

    Every response includes a detailed token breakdown — input, output, and cache-read tokens — so cost and cache-hit rate are visible on every call.

Pricing

Pay only for what you use

RouterBase passes through partner-tier pricing. Compared against the model's official published API rate.

Customer stories

What teams build with the Gemini 2.5 Flash API

Real production loads running on the Gemini 2.5 Flash API and the RouterBase model catalog.

Marcus Reyes
Marcus ReyesCTO, Paradigm AI

The Gemini 2.5 Flash API is our everyday default — fast, multimodal, and good enough to skip the flagship on most calls. The 5% RouterBase discount is pure margin.

Priya Lakshmi
Priya LakshmiFounder, Quillo

Native multimodal on the Gemini 2.5 Flash API reads video and audio directly — one fast call transcribes and reasons over the content together.

Thomas Beck
Thomas BeckStaff Engineer, Northbeam

Structured JSON outputs from the Gemini 2.5 Flash API killed our flaky regex parsing. Strictly valid JSON every time, zero retries.

Aoi Tanaka
Aoi TanakaML Lead, Daybreak Robotics

Toggling thinking on the Gemini 2.5 Flash API lets us dial speed against quality per task. RouterBase makes it 5% cheaper and routes around outages automatically.

Jonas Keller
Jonas KellerIndie Developer

1M tokens of context means I can throw whole docs at it. The Gemini 2.5 Flash API just handles them fast and cheap.

Ethan Nguyen
Ethan NguyenHead of Engineering, Compound Studio

RouterBase puts the Gemini 2.5 Flash API and 200+ other models behind one key. Our team stopped filing requests for new provider accounts.

Sophia Martín
Sophia MartínCTO, Relay

We A/B the Gemini 2.5 Flash API against 2.5 Pro per request — same SDK, one model field. Most traffic stays on Flash and the bill dropped sharply.

Lucas Fernandes
Lucas FernandesEngineering Manager, Light

We migrated 42 services to the Gemini 2.5 Flash API over a weekend. The only PR comment was 'wait, that's all?'.

David Okonkwo
David OkonkwoCo-founder, Figment

At $0.285 / 1M input minus 5%, the Gemini 2.5 Flash API gave us fast multimodal inference without the flagship bill. The ROI math was instant.

Frequently Asked Questions

Common questions about the Gemini 2.5 Flash API.

It is RouterBase's pass-through to Google's Gemini 2.5 Flash — a fast, efficient multimodal chat endpoint with a 1M-token context, optional thinking, native vision/audio/video input, function calling, and structured outputs, served via an OpenAI-compatible REST interface.