PROVIDER GUIDE · VERIFIED 13 JUL 2026

How much does the Google Gemini API cost?

Google Gemini API pricing ranges from $0.075 per million input tokens for Gemini 2.5 Flash to $1.25 per million for Gemini 3.1 Pro, with output tokens costing roughly double. Pricing varies significantly based on model tier, prompt length under or over 128k tokens, and whether you use batch processing, making cost-per-request highly dependent on your specific use case and context window needs.

Gemini is the value play at every tier we track — but its real advantage shows up in context window size, not just the per-token rate.

Model Input /1M Output /1M Context
Gemini 2.5 Flash$0.15$0.601M
Gemini 3 Flash$0.50$3.001M
Gemini 3.1 Pro$2.00$12.002M

The context window is the real story

Gemini 2.5 Flash and Gemini 3 Flash both ship with a 1M-token context window at budget and mid-tier prices — matching or beating the context window of models costing several times more from other providers. Gemini 3.1 Pro goes further still: a 2M-token window, the largest of any model we track, at a flagship price that undercuts both Claude Opus 4.8 and GPT-5.5. If your task genuinely needs to reason over a large document, codebase, or conversation history, Gemini's context headroom is often the deciding factor before price even enters the conversation.

Gemini 2.5 Flash vs 3 Flash — the upgrade is real, so is the cost jump

Moving from Gemini 2.5 Flash to Gemini 3 Flash is roughly a 3x input and 5x output price increase for what Google positions as a meaningful capability step up. If 2.5 Flash is already handling your task reliably, there's no need to pay for the upgrade. If you're seeing accuracy issues on 2.5 Flash before reaching for a different provider's mid-tier model, testing 3 Flash first is usually the cheaper experiment.

Gemini 3.1 Pro as the value flagship

At $2.00/$12.00, Gemini 3.1 Pro is priced below both Claude Opus 4.8 ($5.00/$25.00) and GPT-5.5 ($5.00/$30.00) while offering the largest context window of the three. The trade-off is that "flagship" positioning and actual task performance don't always move in lockstep across providers — worth running your own head-to-head on a representative task sample rather than choosing on price and context size alone.

How we'd actually pick

Prices verified against ai.google.dev/gemini-api/docs/pricing, 13 July 2026. See full methodology. Use the calculator to compare Gemini against every other tracked provider for your own usage.

Frequently asked questions

Does Google Gemini API charge differently for long prompts?

Yes, Gemini API implements tiered pricing at the 128k token threshold. Prompts under 128k tokens cost significantly less per token than those exceeding it—for example, Gemini 2.5 Flash charges $0.075 per million tokens under 128k but $0.30 per million above it, a 4x increase that dramatically affects costs for document processing or long-context applications.

Is there a free tier for the Gemini API?

Yes, Google offers 1,500 requests per day free on Gemini 2.0 Flash and Gemini 2.0 Flash-Lite through their free tier, with rate limits of 15 RPM and 1 million TPM. This is suitable for prototyping and low-volume applications, but production workloads require paid plans with significantly higher rate limits and access to advanced models.

How does Gemini API pricing compare to OpenAI and Anthropic?

Gemini 2.5 Flash at $0.075/$0.30 per million tokens is cheaper than GPT-4o mini ($0.15/$0.60) and Claude Haiku ($0.25/$1.25) for standard contexts. However, Gemini 3.1 Pro at $1.25/$5.00 is more expensive than GPT-4o ($2.50/$10.00), making Google most competitive in the high-speed, cost-efficient tier rather than flagship intelligence models.

What affects the final cost per Gemini API request?

Four factors determine your per-request cost: model choice (Flash vs Pro), total prompt plus completion tokens, whether your context exceeds 128k tokens triggering higher rates, and batch versus real-time processing which offers 50% discounts. A typical request with 10k input and 1k output tokens on Gemini 2.5 Flash costs approximately $0.001.