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
$0.2625 Oracle Cloud Generative AI3.2× spread$0.85 Replicate
Already paying for Gemini 2.5 Flash? Check if you overpay →

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

Share this page URL to keep your scenario. 4 of 4 providers meet these assumptions.

ProviderEstimated / monthInput / 1MOutput / 1MCached input / 1MContext
1
Oracle Cloud Generative AICloud platform - lowest for your volumePricing page
$2.70$0.15$0.60Not listed1,048,576
2
DeepInfraInference providerPricing page
$8.00$0.30$2.50Not listed1,000,000
$8.00$0.30$2.50$0.031,048,576
4
ReplicateInference providerPricing page
$8.00$0.30$2.50Not listedNot 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

Switch to Google Gemini API

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"}],
)
Base URL from Google Gemini API's API docs, model name from the open pricing datasets. Check the model page in Google Gemini API's docs before you switch production traffic.

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.