Gemini 2.5 Flash API
Access Gemini 2.5 Flash through one API key. Google's fastest model with 1M context.
Google's fast and efficient model. Great at summarization, translation, and quick reasoning with a massive context window.
Takes 30 seconds.
Gemini 2.5 Flash API pricing
Pay per request from your YepAPI balance — no subscription, no monthly minimum. Prices updated October 23, 2026.
| Token type | Price |
|---|---|
| Input | $0.44 / 1M tokens |
| Output | $3.69 / 1M tokens |
| Context window | 1.0M tokens |
| What it costs | Per job | Per 1,000 |
|---|---|---|
| Chat reply1K input + 500 output tokens | $0.0023 | $2.28 |
| RAG answer8K input + 800 output tokens | $0.0065 | $6.47 |
| Agent step with tools30K input + 2K output tokens | $0.021 | $20.58 |
| Long document summary100K input + 2K output tokens | $0.051 | $51.38 |
4,900+
Developers
2.3M+
API calls served
184
Endpoints
$0.01
Per call
Yep, that's it.
Try it live
Send a message and see Gemini 2.5 Flash respond in real time.
Maximum tokens in the response.
Real-time tokens
Gemini 2.5 Flash specs
| Provider | |
|---|---|
| Model ID | google/gemini-2.5-flash |
| Endpoint | /v1/ai/chat |
| Type | Text Generation |
| Context window | 1.05M tokens |
| Max output | 8K tokens |
| Reasoning | No |
| OpenAI-compatible | Yes — /v1/ai/chat/completions |
How to get a Gemini 2.5 Flash API key
- 1
Create an account
Sign up at yepapi.com with Google or email. It takes about 30 seconds.
- 2
Create an API key
Open the dashboard, go to API Keys and create a key. Copy it — it starts with yep_sk_.
- 3
Call Gemini 2.5 Flash
Send a request to /v1/ai/chat with the x-api-key header and model "google/gemini-2.5-flash".
- 4
Pay as you go
Usage is billed per request from your balance. Top up any amount; there is no subscription.
Strengths
Reads up to 1,000,000 tokens in one request — entire books, large codebases, or long transcripts — without chunking.
Google tunes Flash for low latency, making it a strong fit for interactive apps and real-time summarization at scale.
Its huge context plus speed makes it well-suited to condensing long documents, meetings, and threads in a single pass.
Handles translation and cross-language tasks across many languages, useful for global content and support workflows.
Quick start
Copy this snippet and start making calls with Gemini 2.5 Flash.
const res = await fetch('https://api.yepapi.com/v1/ai/chat', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "google/gemini-2.5-flash",
"messages": [
{
"role": "user",
"content": "Explain API gateways in 2 sentences."
}
],
"maxTokens": 256
}),
});
const { data } = await res.json();
console.log(data.message.content);Gemini 2.5 Flash vs similar models
Every model below runs on the same API key — switch by changing the model ID.
| Model | Provider | Price | Context |
|---|---|---|---|
| Gemini 2.5 Flash | $0.44 in / $3.69 out per 1M | 1.0M | |
| Gemma 4 26B | $0.13 in / $0.44 out per 1M | 262K | |
| Gemini 2.5 Flash Lite | $0.15 in / $0.59 out per 1M | 1.0M | |
| Gemma 4 31B | $0.30 in / $0.59 out per 1M | 262K | |
| Gemini 3.1 Flash Lite | $0.37 in / $2.22 out per 1M | 1.0M | |
| Gemini 3.5 Flash Lite | $0.44 in / $3.69 out per 1M | 1.0M | |
| Nemotron 3 Super | NVIDIA | $0 in / $0 out per 1M | 262K |
| Qwen3.7 Flash | Qwen | $0.04 in / $0.19 out per 1M | 1M |
Why use Gemini 2.5 Flash through YepAPI?
Gemini 2.5 Flash API — pricing, context window & access
Gemini 2.5 Flash is Google's fast, efficient model, distinguished by a massive 1,000,000-token context window. It returns up to 8,192 output tokens per response and is tuned for speed.
Through YepAPI you call Gemini 2.5 Flash on an OpenAI-compatible endpoint with one key — the same key that also reaches Gemini 2.5 Pro, GPT-4o, Claude, and the SEO, SERP and scraping endpoints.
What is Gemini 2.5 Flash?
Gemini 2.5 Flash is Google's fast, efficient tier of the Gemini 2.5 family, positioned below the more capable Gemini 2.5 Pro. It's designed for speed and throughput on tasks like summarization, translation, and quick reasoning. Its headline feature is a 1,000,000-token context window — one of the largest available — which lets it ingest entire books, sprawling codebases, or hours of transcripts in a single request. Teams pick Flash when they need to process very long inputs quickly and cheaply rather than squeeze out maximum reasoning depth.
Build with Gemini 2.5 Flash via YepAPI
YepAPI exposes Gemini 2.5 Flash through the OpenAI-compatible /v1/ai/chat endpoint, so you call Google's model with the chat-completions format and the model string gemini-2.5-flash — no Google SDK required. Stepping up to Gemini 2.5 Pro for harder reasoning, or swapping to GPT-4o or Claude, is a one-string change. Your single key also covers search and scraping endpoints, so long-context processing and data collection run on one account.
Gemini 2.5 Flash API pricing — $0.44 / 1M input, $3.69 / 1M output
Gemini 2.5 Flash costs $0.44 per 1M input tokens and $3.69 per 1M output tokens through YepAPI. That combination of a 1M-token window and very low input pricing is what makes it stand out — you can feed it enormous documents without the cost blowing up. It's an efficient choice for long-context summarization and bulk translation where you process large volumes of input and emit comparatively short output. You pay only for tokens used.
Gemini 2.5 Flash for long-context summarization
The 1M-token window is Flash's superpower. Load an entire book, a year of support transcripts, or a large repository and ask for a summary, comparison, or extraction in one shot — no chunking, no lost context across boundaries. Paired with its low latency and price, that makes Flash ideal for high-volume document and multilingual pipelines where the bottleneck is how much you can read at once rather than peak reasoning.
What developers say
“Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.”
“One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.”
“The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.”
Frequently asked questions
Google's fast and efficient model. Great at summarization, translation, and quick reasoning with a massive context window.
Gemini 2.5 Flash costs $0.44 per 1M input tokens and $3.69 per 1M output tokens through YepAPI, billed per request with no monthly fee. For example, a chat reply (1K input + 500 output tokens) costs about $0.0023.
Sign up at yepapi.com (Google or email, about 30 seconds), open the dashboard and create an API key. The same key works for Gemini 2.5 Flash and every other model — no separate Google account or waitlist.
Use "google/gemini-2.5-flash" as the model on /v1/ai/chat. The short alias "gemini-flash" also works.
Yes. Point the OpenAI SDK at https://api.yepapi.com/v1/ai with your YepAPI key and set model to "google/gemini-2.5-flash". Streaming works the same way, so existing OpenAI code only needs the base URL and key changed.
Gemini 2.5 Flash supports a 1.0M token context window with up to 8K output tokens per request.
Explore more models
Gemini 3.5 Flash Lite
GoogleAccess Gemini 3.5 Flash Lite through one API key. Google Cheapest Gemini Subagent Model.
Gemma 4 31B
GoogleAccess Gemma 4 31B through one API key. Google's open-weight model at ultra-low cost.
Gemini 3 Flash
GoogleAccess Gemini 3 Flash through one API key. Google's next-generation fast model.
Seed 1.6
ByteDanceAccess Seed 1.6 through one API key. Reliable model from ByteDance.
Qwen3.8 Max Prime
QwenAccess Qwen3.8 Max Prime through one API key. Qwen3.8 Max High-Throughput.
Claude Sonnet 5
AnthropicAccess Claude Sonnet 5 through one API key. Anthropic Sonnet 5 Frontier Mid-Tier.
More Text Generation models
- GPT-5.1 Codex Max API · OpenAI
- Hy4 preview API · Tencent
- Qwen 3.5 35B API · Qwen
- Claude Opus 4.1 API · Anthropic
- Step 3.5 Flash API · StepFun
- Claude Opus 5.5 API · Anthropic
- Claude Opus 4.6 API · Anthropic
- Claude Opus 4.7 API · Anthropic
- Claude Opus 4.5 API · Anthropic
- Claude Opus 4.8 API · Anthropic
- Claude Fable 5.1 API · Anthropic
- MiniMax M3.1 Flash API · MiniMax