Saraswati Stitch needle-and-thread markSaraswati Stitch®contact@saraswatistitch.com

Free tool · AI cost calculator

Google (Gemini) API cost calculator

Google prices the Gemini API by the token, and its Flash models are among the cheapest capable options anywhere. Compare Gemini models for your own workload below, and read on for how the pricing works.

0 models

Loading live model prices…

Covers every model on OpenRouter — text, reasoning, image and audio. Token counts are estimates (tokenization varies by model), and image/audio models may also charge per image or per second on top of tokens, so treat non-text figures as a guide and confirm against the provider's own pricing page before budgeting. Prices are pulled live from OpenRouter.

How Gemini pricing works

Gemini is billed per million tokens, input and output separately, with output dearer than input. Gemini is known for very large context windows, which is useful for long documents but means a big prompt can cost more than you expect, so watch your input size. Google also offers context caching and a batch mode to bring the cost of repeated or non-urgent work down.

Flash, Flash-Lite and Pro

The Flash-Lite and Flash tiers are built for speed and volume at very low cost and handle most routine tasks comfortably; the Pro tier is the capable option for complex reasoning and long-context work. For high-throughput jobs, the Flash family is often the cheapest way to get a good answer across any provider, which is why it is worth comparing directly against the others.

Reducing Gemini costs

Because Gemini is already cheap at the Flash tier, the biggest savings usually come from not over-sending context (trim what you put in the giant window) and capping output length. Cache shared context and batch what can wait. Use the live table below to see where Gemini lands against OpenAI, Claude and the rest for your numbers.

Compare Google (Gemini) against every other provider in the full calculator →