New blogMaking an AI Agent You Can Trust With Money

★ Google · Mid-tier

Gemini 3.8 Flash API Pricing Calculator

$0.75 per 1M input tokens, $3.75 per 1M output. Introductory price until 31 Dec 2026. Fast, cheap general work with a 1M window. Strong value while the introductory price lasts.

  • Runs in your browser
  • No signup
  • Updated 7 Nov 2026

Price card · Gemini 3.8 Flash

Google

Input
$0.75 / 1M
Output
$3.75 / 1M
Cached input
Not modelled
Batch
50% off
Context window
1.05M tokens
Tier
Mid-tier

Workload

tok
tok
%

Repeated system prompt or docs

%

Jobs that can wait hours

Models

Anthropic
OpenAI
Google
Mistral
DeepSeek

$ per 1M tokens, input / output

Monthly cost · 30 days

Cheapest
$609
Mistral Large 4
Priciest
$1,148
DeepSeek V4 Pro
Spread
1.9×
priciest vs cheapest
Per 1K users / mo
Mistral Large 4Cheapest
$609$305
Gemini 3.8 FlashIntro price
$788$394
DeepSeek V4 Pro
$1,148$574
Per 1K users assumesrequests per user per day.

Where the money is

If 60% of your traffic is simple enough for Mistral Large 4, routing it there instead of DeepSeek V4 Pro saves about $324/month.

Caching half your input on DeepSeek V4 Pro (a shared system prompt or document) would cut about $383/month.

You're looking at $609–$1,148/month.

Most AI products I audit can cut that 30–60% with routing, caching and shorter prompts.

Get a cost-cutting audit
01

What Gemini 3.8 Flash costs in practice

List prices per million tokens are hard to reason about. Here is what common request types cost on Gemini 3.8 Flash, with no caching or batch discount applied.

Gemini 3.8 Flash cost by request type
Request typeTokens in / outPer callPer 1K callsPer 1M calls
Classification or routing call400 / 10$0.00034$0.3375$338
Support chat reply1,500 / 250$0.00206$2.06$2,063
RAG answer over your docs6,000 / 400$0.00600$6.00$6,000
Long document summary40,000 / 1,000$0.0338$33.75$33,750
02

Pricing notes

Fast, cheap general work with a 1M window. Strong value while the introductory price lasts.

  • Introductory price of $0.75 input / $3.75 output per 1M runs through 31 Dec 2026, then $1.50 / $7.50.
  • Context caching rates are not modelled; cached tokens are billed at the input rate here.

Source: ai.google.dev, gemini-3, batch-api. Verified 7 Nov 2026.

03

Compare

04

How the math works

Every provider bills input tokens (your prompt, system prompt and retrieved documents) and output tokens (the reply) separately, per million. Output is usually 4–5× the input price, so chatty apps are output-heavy and RAG apps are input-heavy.

cost per request = (fresh_in × input_price
+ cached_in × cached_price
+ out × output_price) / 1,000,000
× (1 − batched_share × batch_discount)
monthly = cost per request × requests per day × 30

Two adjustments are applied automatically. Introductory prices (currently on some Gemini models) are used until their end date. Long-prompt surcharges kick in when your average input crosses the provider's threshold: 272K tokens on current OpenAI models, 100K on Claude Haiku 5.5.

Not modelled: cache-write premiums, priority or fast tiers, regional surcharges, image and audio tokens, and reasoning tokens a model spends before answering (they bill as output, so add them to your output estimate if you use extended thinking).

05

Gemini 3.8 Flash questions

How much does Gemini 3.8 Flash cost per 1M tokens?
Gemini 3.8 Flash costs $0.75 per 1M input tokens and $3.75 per 1M output tokens. Batch requests get 50% off. This is an introductory price that runs until 31 Dec 2026; after that it is $1.50 input and $7.50 output.
What is the Gemini 3.8 Flash context window?
1.05M tokens, with up to 65,536 output tokens per request. A large window does not mean you should fill it: every token you send is billed, so retrieve only what the request needs.
Is Gemini 3.8 Flash cheaper than DeepSeek V4 Pro?
For a typical request of 2,000 input and 300 output tokens, Gemini 3.8 Flash is about 1.5× cheaper ($0.00263 vs $0.00383 per call for Gemini 3.8 Flash and DeepSeek V4 Pro). Price is only half the decision; test both on your own prompts.
What is prompt caching and should I use it?
When the start of your prompt (system prompt, tool definitions, a long document) repeats across requests, providers can serve it from cache at a fraction of the input price, often 90–99% off. If your requests share a large fixed prefix, caching is usually the single biggest saving available. Put the stable content first and the variable content last.
Why does my real bill differ from this estimate?
Usually because of tokens you are not counting: reasoning or thinking tokens (billed as output), retries, tool-call round trips, and cache-write premiums. Compare the estimate against the usage page in your provider console for a week and adjust the averages.
06

More from the workbench

Fine print

Tools: on the house.
Engineer: by the hour.

Knowing your AI bill was free. Cutting it in half isn't, but I'm cheaper than the overspend.

I'm Himanshu, an AI and full-stack engineer. I build MVPs, AI agents and the growth plumbing around them for early-stage startups.