Gemini 2.5 Flash API
LLMThe Gemini 2.5 Flash API is the 2.5-generation fast route: 1M context, vision, and tool use at a Lite-tier rate.
- Input · USD / 1M tokens$0.255 USDOfficial price
$0.3 USD - Output · USD / 1M tokens$2.125 USDOfficial price
$2.5 USD - Savings15%
- Context1M
- ReleasedApr 17, 2025
- Prices checkedNov 30, 2026
- View tool pricing and billing rules
What are we making today?
Bring an idea, a question, or a first draft.
01
What this model is for
The Gemini 2.5 Flash API is the 2.5-generation fast route: 1M context, vision, and tool use at a Lite-tier rate.
Gemini 2.5 Flash is the fast model of Google's 2.5 generation, kept on OmniaKey under the id gemini-2.5-flash next to the older Gemini 2.5 Pro and the smaller Gemini 2.5 Flash-Lite. It lists a 1M-token context window, image input, tool use and the catalog's fast label, plus the same Cursor, Cline and Aider client entries as the rest of the line. It is not flagged as new; the 3.x entries above it are.
Its rates match Gemini 3.5 Flash-Lite line for line, which makes the choice a matter of generation and fit rather than of tier. Anyone weighing the two on the bill alone will find no gap. Where 2.5 Flash earns its place is inside a 2.5-generation pipeline: bulk work here, hard cases on Gemini 2.5 Pro, one prompt library and one behaviour profile across both. Teams that tuned prompts against the 2.5 generation keep that tuning instead of redoing it.
Two things are worth knowing before adopting it. The catalog lists no reasoning-level parameter, so a task that needs deliberate multi-step thought is better placed on a Pro model than pushed at this id with a longer prompt. And the Lite entry below it is cheaper on all three rate lines, so a high-volume job that 2.5 Flash-Lite handles well should stay there. Anything newer belongs on Gemini 3.8 Flash at its higher band.
Best-fit coding workloads
One generation, two tiers
Send routine items through gemini-2.5-flash and the hard ones through gemini-2.5-pro, sharing one prompt library, one output schema and one set of examples across both. Sticking to a single generation keeps behaviour predictable when an item moves up a tier. Practical tip: log which id answered each item so escalations can be audited later.
Long transcript summaries
Summarise hour-long support calls or meeting transcripts that were transcribed in full. The 1M window removes most chunking work, and short summaries keep output charges small at this rate band. Practical tip: ask for a fixed section list, and require a timestamp for every claim so a reviewer can jump to the source.
Record cleanup with tools
Normalise messy product records by exposing one lookup tool and asking for a corrected object that matches a schema. Tool use keeps the model from inventing values it cannot look up. Practical tip: return an explicit unknown marker for missing fields, and compare the tool arguments against the allowed values before applying any write.
02
Technical specification
Catalog facts and integration details verified for this route.
- Model ID
- gemini-2.5-flash
- Context
- 1M
- Inputs and tools
- Vision · Tool use · Fast responses
- API endpoint
- /v1/chat/completions
- Cache hit / 1M
- $0.0255 USD
- Coding clients
- Cursor · Cline · Aider
Limits to plan around
- The catalog does not mark this id as new, and the 3.x Flash entries above it are newer. A team starting fresh should look at those first and choose this one deliberately, not by habit.
- Its listed rates equal Gemini 3.5 Flash-Lite, so there is no billing advantage over the newer Lite id. The reasons to keep it are a pinned deployment or a preference for one generation across a pipeline.
- The catalog lists vision, tool use and the fast label, and no thinking-level control or batch mode. Very long prompts cannot be made to reason more carefully by asking for more steps alone.
- A 1M window is capacity, not guidance. A prompt full of irrelevant transcripts still needs selection, and an answer built from weak retrieval looks confident in exactly the places it should not.
03
Compare nearby models
Compare workload fit and current listed token rates before choosing a route.
| Model | Best for | Context | Input | Output |
|---|---|---|---|---|
| Gemini 2.5 FlashThis page gemini-2.5-flash | Bulk and mid-weight work inside a 2.5-generation pipeline that also uses Gemini 2.5 Pro. | 1M | $0.255 USD Official price $0.3 USD | $2.125 USD Official price $2.5 USD |
| Gemini 3.5 Flash-Lite gemini-3.5-flash-lite | The newer Lite entry at the same listed rates, when a fresh start is possible. | 1M | $0.255 USD Official price $0.3 USD | $2.125 USD Official price $2.5 USD |
| Gemini 2.5 Flash-Lite gemini-2.5-flash-lite | The lowest-cost Gemini listing, for jobs that already work well on the smaller 2.5 model. | 1M | $0.085 USD Official price $0.1 USD | $0.34 USD Official price $0.4 USD |
04
SDK quickstarts
Use one base URL and model ID from cURL, Python, or TypeScript.
curl https://api.omniakey.com/v1/chat/completions \
-H "Authorization: Bearer $OMNIAKEY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-2.5-flash",
"messages": [
{"role": "user", "content": "Review this pull request"}
],
"stream": true
}'05
Estimate token cost
Enter expected input and output tokens to compare current listed rates.
- OmniaKey estimate
- $0.068
- Official-rate estimate
- $0.08
- Estimated savings
- $0.012
Estimate covers input and output tokens only. Cache usage, retries, tools, and client-side token accounting can change the final charge.
06
Related coding guides
Deeper selection, setup, and troubleshooting guidance for this model family.
Gemini 3.8 Flash API Pricing and Agent Cost
Google's introductory rate is $0.75 input and $3.75 output per million tokens, but retries and thinking decide the cost of an accepted result.
Read guideGemini 4 Release Date: Four Models Live, No Pro or Flash Yet
The Gemini 4 release date came in four steps: Argon was announced September 30, 2026 and opened on the paid API October 13; Carbon followed on the paid API November 10; Hydrogen arrived November 12 on free and paid tiers; and Neon shipped November 18. All four use 1M-token context windows.
Read guide07
Sources and verification
Model facts and links were checked on 2026-10-27. Provider documentation remains the authority for upstream behavior.
Cache and batch prices
What OmniaKey bills per 1M tokens of cached input on Gemini 2.5 Flash.
- Cache read
- $0.0255 USD
- Batch API
- Not available on OmniaKey.Google's own Batch API bills 50% of standard prices.
Google caches repeated prompt prefixes automatically, and cached input is billed at the cache-read price.
Common errors
The errors OmniaKey users hit most often, from our production logs. Each message appears as the API returns it.
HTTP 403
Insufficient quota- Cause
- Your OmniaKey balance has run out.
- Fix
- Top up your balance. The same API key works again right away.
HTTP 403
insufficient quota for pre-charge- Cause
- Before a request runs, OmniaKey reserves its largest possible cost, which grows with the prompt and max_tokens. Your balance is below that amount.
- Fix
- Top up, or lower max_tokens.
HTTP 401
Invalid token- Cause
- The request carries no API key, or a key that does not exist.
- Fix
- Copy the key from your dashboard again and check that your client sends it.
HTTP 503
No available channel for model <model> under group <group>- Cause
- The model name does not match one OmniaKey serves, often because of a dot or a capital letter, such as claude-sonnet-5.5 for claude-sonnet-5-5. It also appears when every supplier of the model is unavailable.
- Fix
- Use the exact model ID, gemini-2.5-flash. If it already matches, retry later or switch models.
HTTP 524
524: A timeout occurred- Cause
- No data came back for about 100 seconds, so Cloudflare closed the connection. Long answers without streaming run into this.
- Fix
- Set stream to true, so tokens arrive while the answer is written.
Frequently asked questions
How much does Gemini 2.5 Flash cost on OmniaKey?
OmniaKey charges $0.255 USD per 1M input tokens and $2.125 USD per 1M output tokens, in USD. Official prices are $0.3 USD and $2.5 USD; you save 15%.
What is the context window for Gemini 2.5 Flash?
The listed context window is 1M. Actual usable limits can also depend on the client and upstream request format.
How is Gemini 2.5 Flash billed on OmniaKey?
Input tokens, output tokens and cached input are each charged at their own rate, and the catalog shows a single band rather than tiers by prompt length. The three rates match Gemini 3.5 Flash-Lite. Current figures sit in the price table on the model page.
Is Gemini 2.5 Flash the same as Gemini 2.5 Flash-Lite?
No, they are separate ids with separate rates. Flash-Lite lists lower input, output and cached-input rates and a smaller scope of work, while both carry a 1M window, image input, tool use and the fast label. Compare them on your own prompts rather than assuming the larger name means better answers for your task.
What model id do I send for Gemini 2.5 Flash?
Use gemini-2.5-flash in the model field of a POST to https://api.omniakey.com/v1/chat/completions. The id is case-sensitive and contains a dot, so copy it rather than typing it. The same OmniaKey key also reaches Gemini 2.5 Pro and the rest of the listed models.
Should I use Gemini 2.5 Flash or Gemini 3.8 Flash?
Gemini 3.8 Flash is the newer mainline entry and sits in a higher rate band; Gemini 2.5 Flash sits in a lower one alongside Gemini 3.5 Flash-Lite. Pick by task: 3.8 Flash for agent loops that need more careful answers, 2.5 Flash for volume work that a fast model already handles.
Does Gemini 2.5 Flash handle images and tool calls?
The catalog lists vision and tool use, and names Cursor, Cline and Aider as clients. Images travel as content parts in the same message as the text. For tool calls, define a small permitted set of tools and check the returned arguments, since a fast model can produce plausible but out-of-range values.