Google AI API Cost & Multimodal Guide Rates checked 2026-09-29

Google Gemini Token Calculator & API Pricing Guide

Estimate token consumption and API cost across Gemini 3.6 Flash, 3.5 Flash-Lite, and 3.1 Pro Preview. Calculate multimodal overheads for images, audio, video, PDFs, and prompt context caching.

In short: pick a Gemini tier, run the calculator below to price your requests, then use the usage guide to find your API key, check free-tier limits, and see where else Gemini shows up (Excel, Cursor, Nano Banana, TTS) before you build on it.

Count Tokens Locally

The short version

Gemini's API pricing isn't one number — it changes by model, by whether your input is text or multimodal, by how much of it comes from cache, and by which service tier you run on. This calculator gives you a fast, model-by-model estimate of standard text token costs so you can compare Gemini's Flash, Flash-Lite, and Pro tiers before committing to one in production. Below the calculator, we break down what a text-only estimate can't show you — image, audio, video, and PDF tokens, thinking and tool-call usage, context caching, and how Batch, Flex, and Priority processing change the final bill.

Where this estimate can go wrong if you skip it

  • •Multimodal input. Video clips, high-res images, and audio all convert to tokens differently than text — worth checking before a call reaches Google's servers, not after.
  • •Context caching. A long system prompt or repeated PDF sent on every call can often be cached for an 80%+ discount on those input tokens.
  • •Picking a heavier model than you need. Flash-Lite handles most classification and extraction work that people default to Pro for.
  • •Scaling a single request into a monthly number. The gap between "this call costs a fraction of a cent" and "10,000 calls a day" is where budgets actually break.

Google Gemini Model Hierarchy

Three tiers, in order of how much reasoning they can do and what they cost for it.

Gemini 3.5 Flash-Lite

Built for high-volume jobs

1,048K / 65K max context

Input: $0.30 / 1M
Cache Read: $0.030 / 1M
Output: $2.50 / 1M

Gemini 3.5 Flash

Multimodal grounding support

1,048K / 65K max context

Input: $1.50 / 1M
Cache Read: $0.150 / 1M
Output: $9.00 / 1M

Gemini 3.1 Pro Preview

Preview-tier reasoning model

1,048K / 65K max context

Input: $2.00 / 1M
Cache Read: $0.200 / 1M
Output: $12.00 / 1M

Gemini API Cost & Token Calculator

Adjust your token input parameters or choose a pre-configured enterprise scenario.

Currency:
Exact Billing Formula: [(Input Tokens × Rate) + (Cached Tokens × Cache Rate) + (Output Tokens × Output Rate)] ÷ 1,000,000. Current cost for Gemini 3.5 Flash: (4,500 × $1.5) + (2,000 × $0.15) + (800 × $9) ÷ 1M = $0.0143 / call.

Routing Recommendation Engine

Comparing against Gemini 3.5 Flash: Switching background JSON extraction or RAG pipelines to Flash-Lite reduces costs by approx 76%. Escalating complex tasks to 3.1 Pro Preview adds a 33% cost premium—reserve Pro exclusively for difficult multi-step reasoning.

Lowest Monthly Cost Tier
$19.75
Gemini 2.5 Flash-Lite
Highest Monthly Cost Tier
$475.00
Gemini 3.1 Pro Preview
Monthly Cost by Model
Gemini 3.1 Pro Preview
$475.00
Gemini 3.5 Flash
$356.25
Gemini 2.5 Pro
$346.88
Gemini 3.6 Flash
$163.13
Gemini 3.7 Flash
$163.13
Gemini 3.8 Flash
$163.13
Gemini 3.5 Flash-Lite
$85.25
Gemini 2.5 Flash
$85.25
Gemini 3.1 Flash-Lite
$59.38
Gemini 2.5 Flash-Lite
$19.75
Per call $0.0190
Input
$2.00
Cache
$0.200
Output
$12.00
Context1,048K / 65K
Monthly estimate$475.00
Per call $0.0143
Input
$1.50
Cache
$0.150
Output
$9.00
Context1,048K / 65K
Monthly estimate$356.25
Per call $0.0139
Input
$1.25
Cache
$0.125
Output
$10.00
Context1,048K / 65K
Monthly estimate$346.88
Per call $0.0065
Input
$0.75
Cache
$0.075
Output
$3.75
Context1,048K / 65K
Monthly estimate$163.13
Per call $0.0065
Input
$0.75
Cache
$0.075
Output
$3.75
Context1,048K / 65K
Monthly estimate$163.13
Per call $0.0065
Input
$0.75
Cache
$0.075
Output
$3.75
Context1,048K / 65K
Monthly estimate$163.13
Per call $0.0034
Input
$0.30
Cache
$0.030
Output
$2.50
Context1,048K / 65K
Monthly estimate$85.25
Per call $0.0034
Input
$0.30
Cache
$0.030
Output
$2.50
Context1,048K / 65K
Monthly estimate$85.25
Per call $0.0024
Input
$0.25
Cache
$0.025
Output
$1.50
Context1,048K / 65K
Monthly estimate$59.38
Per call $0.0008
Input
$0.10
Cache
$0.010
Output
$0.40
Context1,048K / 65K
Monthly estimate$19.75

How This Calculator Works

Every estimate on this page runs the same formula shown live above: input tokens, cached-read tokens, and output tokens are each multiplied by that model's published per-token rate, summed, then divided by 1,000,000 and multiplied by your monthly call volume. Nothing is randomized or hidden — the full math is visible in the "Exact Billing Formula" box.

This is a text-token estimate. It does not calculate image, audio, video, or PDF tokens (see the Multimodal section below) and it does not include thinking-token or tool-call overhead, which only appear in the API response's own usage metadata after a real call.

Data Sources & Freshness

Per-token rates are cross-checked against Google's official Gemini API pricing page and updated whenever Google changes them. Rates on this page were last verified 2026-09-29.

Reviewed by the Apex Tech Journal editorial team. Spotted a rate that's out of date? Tell us and we'll fix it — pricing pages like this one are only useful if the numbers are trustworthy.

How to actually use this calculator

A rate card tells you the price per million tokens. It doesn't tell you what to enter, which API surface you're even billed through, or whether "Gemini" in your invoice means the API or a completely separate consumer subscription. Here's the part the numbers alone don't cover.

When to reach for this calculator

  • Choosing between Flash, Flash-Lite, and Pro for a specific workload, instead of guessing from the rate card alone.
  • Deciding if you'll outgrow the Google AI Studio free tier and need to move to a paid key or Vertex AI before launch.
  • Budgeting a monthly Gemini bill for a client or your own product before committing to a model in production.
  • Checking whether context caching is worth building for a system prompt or large document you send on every call.

Getting an API key: AI Studio vs. Vertex AI

Google AI Studio is the fastest way to get an API key and includes a free tier with rate limits (see the FAQ below). For production workloads, higher throughput, data-residency requirements, or enterprise billing, Gemini is also available through Vertex AI on Google Cloud — same underlying models, different console, billing, and quota system. If you're testing an idea, start in AI Studio; if you're shipping inside an existing GCP setup, use Vertex.

Using Gemini through an OpenAI-style client

Google publishes an OpenAI-compatibility endpoint for Gemini, so code already written against the OpenAI SDK can often point at Gemini with only the base URL and API key changed. It's a convenience layer, not a pricing change — calls still bill at Gemini's own per-token rates shown in the calculator above, not OpenAI's.

A minimal generateContent call

Every Gemini text request ultimately calls the same underlying method. Once it's live, its response includes a usage field you can feed back into the calculator above to replace your estimate with a real number.

pip install google-genai

from google import genai
client = genai.Client()  # reads GEMINI_API_KEY from your environment

response = client.models.generate_content(
    model="gemini-3.5-flash",
    contents="Hello",
)

print(response.usage_metadata)
# -> prompt_token_count, cached_content_token_count, candidates_token_count

Gemini Advanced (the app) vs. the Gemini API (this calculator)

These are two different products with two different bills. Gemini Advanced is Google's consumer chat subscription, bundled into a Google One AI plan with its own usage limits — asking "is Gemini Pro worth it" as a subscriber is really a question about that plan. Calling the Gemini Pro model from your own code through the API — what this calculator prices — is billed per token with no subscription involved. If you're building a product or script, you want the API and the numbers above; if you're deciding whether to pay for the chat app, that's a separate call.

Where else Gemini shows up

Gemini in Google Workspace & Excel

Gemini is embedded directly into Docs, Sheets, and Gmail as part of a Workspace add-on, and third-party plugins bring similar Gemini-assisted formulas and summaries into Excel. That usage is billed through the Workspace/Google One subscription, not the per-token API.

Gemini in developer tools

Editors and CLIs like Cursor and OpenCode let you plug in a Gemini API key as the model backing an AI coding assistant. When you do, usage is billed exactly like any other API call — run your expected coding-session token counts through the calculator above.

Nano Banana (image) & Gemini TTS

Google's image-generation model, nicknamed Nano Banana, and Gemini's text-to-speech models are billed separately from text tokens — typically per image or per character/second of audio rather than per input token — so this calculator's text-token numbers won't cover an image- or voice-heavy workload. Budget those separately using the official pricing page linked below.

Google AI Mode in Search

Google's AI Mode search experience runs on Gemini models under the hood, but it's a consumer search feature with no exposed per-token billing — it isn't something you call or budget through this calculator.

Multimodal Token Overhead: Images, Audio, Video & PDFs

Google Gemini treats all media natively within its transformer context. Here is how non-text files translate into token bills:

Image Input Tokens

Standard images are tiled and scaled. A regular high-res image consumes approximately 258 to 300 tokens depending on resolution and aspect ratio.

Rule of thumb: 1,000 image inputs ≈ 258,000 to 300,000 input tokens.

Audio Stream Tokens

Audio is sampled continuously. Gemini processes audio at roughly 32 tokens per second (~1,920 tokens per minute of recorded audio).

Rule of thumb: A 10-minute podcast input = ~19,200 audio tokens.

Video File Inputs

Video is sampled into image frames (typically 1 frame per second) plus its underlying audio track.

Rule of thumb: 1 minute video (1 FPS) = 60 image frames (~15,480 tokens) + audio (~1,920 tokens) ≈ ~17,400 total tokens.

PDF Documents & PPTs

PDFs are processed as rendered visual pages combined with extracted text layers. Each PDF page consumes roughly 258 tokens plus text tokens.

Rule of thumb: A 50-page technical PDF manual = ~15,000 to 30,000 input tokens.

How Gemini Pricing Compares

Already estimated your Gemini cost above? See how it stacks up against the other major providers.

What this calculator actually helps with

The part a plain rate card doesn't show you

1. Turning a token count into an actual dollar figure

Most people can guess a prompt is "long," but nobody can eyeball what 50,000 monthly requests actually cost across Flash vs. Pro — this does that math in one step.

2. Comparing every tier on one screen

Instead of tab-hopping between Google's pricing page and a spreadsheet, see Flash-Lite, Flash, and Pro costs side by side for the exact same workload.

3. Flagging what a text-only estimate can't cover

The moment your request includes an image, PDF, or audio clip, this page tells you so you don't walk away with a silently wrong number.

4. Giving freelancers a number they can actually quote

Quoting a client for an AI feature works better with a defensible monthly estimate than a guess based on the rate card alone.

Ways to bring your Gemini bill down

Four things worth checking before you scale a workload up.

1. Cache a system prompt you send on every call

If your application passes a 5,000-token system rulebook or JSON schema on every request, storing it in Gemini's context cache gets you an 80-90% discount on those repeated input tokens for a small monthly storage fee.

2. Use Flash-Lite for classification and extraction

Pro is easy to reach for by default, but Flash-Lite handles simple parsing, log analysis, and categorization at $0.10 per million tokens — worth trying before assuming you need the bigger model.

3. Batch anything that isn't real-time

Overnight PDF indexing, transcript enrichment, and other jobs that don't need an immediate response can run through the Batch API for a flat 50% discount on standard rates.

4. Put a cap on output length

Output tokens cost up to 10x more than input tokens, so a tight max-output setting or a structured JSON schema is often the cheapest fix available.

Gemini Token Calculator FAQ