Google Gemini and Gemma · LLM API pricing
Gemini 2.5 Flash API pricing: cheapest provider
4 providers sell Gemini 2.5 Flash. Oracle Cloud Generative AI is cheapest; the most expensive charges 3.2× as much for the same model.
- Cheapest$0.2625per 1M · Oracle Cloud Generative AI
- Input · output$0.15 / $0.60per 1M tokens
- Price gap3.2×across 4 providers
- Context1Mmax tokens
Standard list prices in USD from each provider's pricing page · last price change Sep 28, 2026 · How we collect and rank prices
Ranked for your volume
Gemini 2.5 Flash monthly cost by provider
Change the monthly tokens and the ranking updates instantly, using each provider's standard list price.
More requirements: caching, context, features, provider
| Provider | Estimated / month | Input / 1M | Output / 1M | Cached input / 1M | Context |
|---|---|---|---|---|---|
1 Oracle Cloud Generative AICloud platform - lowest for your volumePricing page | $2.70 | $0.15 | $0.60 | Not listed | 1,048,576 |
2 DeepInfraInference providerPricing page | $8.00 | $0.30 | $2.50 | Not listed | 1,000,000 |
3 Google Gemini APIModel developerPricing page | $8.00 | $0.30 | $2.50 | $0.03 | 1,048,576 |
4 ReplicateInference providerPricing page | $8.00 | $0.30 | $2.50 | Not listed | Not listed |
Order depends on listed price for your volume only. No provider pays for its position.
Input volume includes the cached share, not an additional token volume. This is a list-price estimate, not a quote: cache-write charges, cache eligibility/TTL, batch discounts, long-context surcharges, regional pricing and taxes are excluded. Check the provider's terms for your workload before switching.
Price history
The cheapest price has not changed since tracking started on Sep 28, 2026: $0.2625 per 1M tokens at Oracle Cloud Generative AI. All price changes
Switch to the cheapest OpenAI-compatible provider
Already using the OpenAI SDK? Change the base URL, key and model name:
from openai import OpenAI
import os
client = OpenAI(
base_url="https://generativelanguage.googleapis.com/v1beta/openai",
api_key=os.environ["GEMINI_API_KEY"],
)
response = client.chat.completions.create(
model="gemini-2.5-flash",
messages=[{"role": "user", "content": "Hello"}],
)Compare Gemini 2.5 Flash with another model
Or pick any model
Before you pick a provider
Oracle Cloud Generative AI lists Gemini 2.5 Flash 69% below the developer's own API (Google Gemini API) on a blended basis. Check rate limits, data retention and model quantization before switching.
Context windows differ by provider, from 1M to 1M tokens. A cheaper host may not accept your longest prompts.
1 of 4 providers list a cached-input price. Repeated system prompts or documents can cost much less there than the standard input rate shown above.
Keep comparing
More Google Gemini and Gemma models
Gemma 4 26B A4B IT, Gemma 4 31B IT, Gemma-3-27b-it, Gemini 2.5 Pro, Gemini 3.1 Flash Lite, Gemini 3.5 Flash, Gemini 3.7 Flash, Gemma 3 12B IT
All Google Gemini and Gemma API prices - All LLM API prices - Watch Gemini 2.5 Flash prices (RSS) - Methodology