Gemini 2.5 Flash

GoogleMCP Tool CallReasoning
google/gemini-2.5-flashClosed API

Fast Gemini workhorse for multimodal apps where latency and price matter

Benchmark Pricing$0.30 / 1M in$2.50 / 1M out$0.03 cache read
Context: 1,048,576 tokens•Max Output: 65,536 tokens•Knowledge: 2025-01•Released: 2025-06-17

TECHNICAL SPECIFICATIONS

Context Window1,048,5761M tokens
Max Output65,53665.5K tokens
LicenseProprietaryCloud API only
Input Modalities
TextVisionPDFAudioVideo
Function / Tool CallingSupported (MCP Ready)
Structured OutputsGuaranteed Schema

MODEL CONTEXT PROTOCOL (MCP) READINESS

✓ Gemini 2.5 Flash natively supports OpenAI / Anthropic format tool calling and is fully compatible with MCP servers and agent loops.

MCP Context Window Recommendations

With a context capacity of 1,048,576 tokens, this model can handle extremely large MCP resource manifests, complete database schemas, and multiple active server tool definitions simultaneously without degradation.

STANDARDIZED BENCHMARKS & EVALS

Aider Polyglotpercent correct
55.1
Artificial Analysis Coding Indexindex
22.2
SciCodepercent correct
39.4
Terminal-Bench Hardsuccess rate
13.6

API CALL INVOCATION EXAMPLE

// Example: Calling Gemini 2.5 Flash via OpenAI SDK
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.GOOGLE_API_KEY,
});

const response = await client.chat.completions.create({
  model: "google/gemini-2.5-flash",
  messages: [{ role: "user", content: "Hello! Can you inspect MCP tools?" }],
});

console.log(response.choices[0].message.content);

PRICING BY PROVIDER

15 providers
Googlegemini-2.5-flash
$0.30 / $2.50$0.03 cache
Cortecsgemini-2.5-flash
$0.30 / $2.49$0.03 cache
QiHanggemini-2.5-flash
$0.09 / $0.71
NanoGPTgemini-2.5-flash
$0.30 / $2.50$0.03 cache
SAP AI Coregemini-2.5-flash
$0.30 / $2.50$0.03 cache
CrossModelgemini/gemini-2.5-flash
$0.30 / $2.50$0.03 cache
302.AIgemini-2.5-flash
$0.30 / $2.50
Poegoogle/gemini-2.5-flash
$0.21 / $1.80$0.02 cache
Aurikogemini-2.5-flash
$0.30 / $2.50$0.03 cache
LLMTRgoogle/gemini-2.5-flash-lite
$0.10 / $0.10
Cloudflare AI Gatewaygoogle/gemini-2.5-flash
$0.30 / $2.50$0.03 cache
Modelisgemini-2.5-flash
$0.30 / $2.50
Databricksdatabricks-gemini-2-5-flash
$0.30 / $2.50$0.03 cache
AIHubMixgemini-2.5-flash
$0.30 / $2.50$0.03 cache
Abacusgemini-2.5-flash
$0.30 / $2.50$0.03 cache

Rates in USD per 1M tokens. Rates synchronized from models.dev public catalog.

Prompt Caching Active

This model supports prompt caching at $0.03 / 1M tokens, saving up to 90% on repetitive MCP tool definitions and system instructions.

MODEL RESOURCES