Skip to main content
tokenmath
Menu

By tokenmath Research Desk · Pricing verified 2026-07-06

Gemini 2.5 Flash vs Gemini 3.1 Pro: pricing & cost comparison

On input tokens, Gemini 2.5 Flash is the cheaper of the two — 85% less per million ($0.3 vs $2). On output, Gemini 2.5 Flash is 79% cheaper ($2.5 vs $12) — and since output is usually the dominant cost driver, that gap matters more than it looks.

Side by side

Gemini 2.5 FlashGemini 3.1 Pro
Input / 1M tokens$0.3$2
Output / 1M tokens$2.5$12
Context window1,000,0001,000,000
Token-count accuracy±3%±3%
Cost — 10,000 input + 2,000 output tokens$0.008$0.044

What a real request costs

Take a representative turn — 10,000 input + 2,000 output tokens. Gemini 2.5 Flash comes to $0.008, Gemini 3.1 Pro to $0.044. Across 100,000 requests that's a $3600 swing in favour of Gemini 2.5 Flash. To run the numbers on your actual prompt, paste it into the calculator and toggle Compare across all models.

Same vendor — an easy switch

Moving between Gemini 2.5 Flash and Gemini 3.1 Pro is a same-vendor move — one SDK, one tokenizer, so no recalibration. That makes this a straight cost/quality call: send the routine bulk of traffic to Gemini 2.5 Flash ($0.3/$2.5 per 1M) and reserve Gemini 3.1 Pro for the requests that visibly need its extra headroom. On the worked example above that split is worth about 82% per request — small per call, real money once you multiply by volume.

See the full breakdown on the dedicated pages for Gemini 2.5 Flash and Gemini 3.1 Pro.

FAQ

Is Gemini 2.5 Flash or Gemini 3.1 Pro cheaper?
For a typical request (10,000 input + 2,000 output tokens), Gemini 2.5 Flash is cheaper — about 82% less, or roughly $3600 saved per 100,000 requests. Gemini 2.5 Flash runs $0.3/$2.5 per 1M input/output tokens; Gemini 3.1 Pro runs $2/$12.
Which has the larger context window?
Both support a 1,000,000-token context window.
How accurate are these token counts?
Gemini 2.5 Flash: Approximated with o200k_base; drift typically ~3% on English and code. Gemini 3.1 Pro: Approximated with o200k_base; drift typically ~3% on English and code. The dollar math itself is exact once the token count is known.

Both prices are computed from tokenmath's verified pricing table. Rates sourced from ai.google.dev and ai.google.dev, verified 2026-07-06. Vendor pricing changes often — confirm before you commit.

Keyboard shortcuts

Press ? any time to reopen this list.

Show this overlay?
Toggle themet
Focus the prompt textarea/
Go to homegh
Go to modelsgm
Go to pricing datagp
Go to changeloggc
Go to aboutga
Close overlays / dialogsEsc

We use Vercel Web Analytics for aggregate page metrics and (optionally) Microsoft Clarity for masked session replay. Prompt content is never sent. Read the privacy policy.