Gemini 3.8 Flash API pricing and cost calculator

At standard rates, a call with 100,000 input and 5,000 output tokens costs $0.1875 uncached and $0.12 with half the input cached. The introductory discount brings the cached figure to $0.06 through December 31, 2026, so check your budget at the standard rate too.

Gemini 3.8 Flash accepts text, image, video, file and audio input. It has a 1,048,576 token context window and can return up to 65,536 tokens in one response. At standard rates it costs $1.50 per million input tokens and $7.50 per million output tokens. Google also lists an introductory discount of 50% through December 31, 2026, which brings those rates to $0.75 and $3.75. Standard rates apply after that date, so plan any long running budget with the standard numbers. Cache reads cost $0.15 per million, 90% off the uncached input rate. This page turns those rates into whole requests, monthly totals and a few workloads you can swap for your own.

By TechCompare · Updated

Google: Gemini 3.8 Flash

Google AI Studio's own price

Input
$1.50
Output
$7.50
Cached
$0.15

per 1M tokens

50% off right nowBatch availableFlex available

Price checked 2026-11-07

Calculator

Cost Comparison

Based on 100,000 input tokens (50% cached), 5,000 output tokens, and 100 requests.Prices come live from OpenRouter at each maker's own price where it's listed. Temporary deals are left out.

How this is calculated

Take a call with 100,000 input and 5,000 output tokens. Uncached, the input costs $0.15 and the output costs $0.0375, so the call comes to $0.1875. The calculator starts with half the input read from cache, which brings the input part to $0.0825 and the call to $0.12, or $12 across 100 calls in a month. That's $0.0825 for input and $0.0375 for output. Which part dominates depends on your mix, so measure your own split before you decide between a cap on response length and a stable cached prefix. While the introductory discount runs, the same half cached call costs $0.06 and 100 of them cost $6. Google lists that discount through December 31, 2026, and calls after that date bill at the standard $12. Three workloads look very different from that starting point. A chat product sends 2,000 input and 400 output tokens per message, and most of that input is a repeated system prompt. A million messages with no cache hits cost $6,000, and with most of the input cached they cost $3,840. An agent session of 20 turns, each carrying 60,000 input tokens that are mostly cached and producing 1,500 output tokens, costs $0.567 for the whole session. A document pipeline that reads 5,000 files of 40,000 input and 2,000 output tokens each costs $375 with nothing cached. Run those three through the discounted rates and the cached chat case becomes $1,920, the agent session $0.2835 and the document run $187.50. Treat those as temporary figures.

Verdict

Don't choose Flash on rates alone. Run your own prompts through it, record input tokens, cached tokens, output tokens and retries, and price the finished results rather than single calls. Anything that can wait until morning belongs in the batch queue, where input sits 50% below the standard rate and output sits 50% below it. Count image, video and audio inputs with your own samples, since they turn into tokens you can't guess from file size. The token counter on this site helps with the text part. A single response that fills the 65,536 token output limit costs $0.49152 in output alone, which is the ceiling to hold against your max token setting. Before you commit, rerun the budget at standard rates, because the discount stops after December 31, 2026.

More API Standalones scenarios

Frequently asked questions

How much does Gemini 3.8 Flash cost per million tokens?
At standard rates, input is $1.50, output is $7.50 and cache reads are $0.15 per million tokens. An introductory discount of 50% is running for now, which gives $0.75 input, $3.75 output and $0.075 cache reads. Output covers everything the model writes back. Google's pricing page is the source for these rates, so check it before you commit to a large budget.
When does the Gemini 3.8 Flash introductory discount end?
Google lists the discount through December 31, 2026, and standard rates apply after that. A call with 100,000 input and 5,000 output tokens and half the input cached costs $0.06 while it runs and $0.12 afterward. Put the date in your planning notes and rerun your monthly total at the standard rate before it arrives.
Should I budget with the discount or the standard rates?
Use the standard rates for anything that will keep running after December 31, 2026. The discount suits a trial, a backfill or a one off job that finishes before then. For a service, set $6 next to $12 on the 100 call example to see the size of the jump, then check that your margin survives it.
What does the Gemini 3.8 Flash batch discount save?
Google's batch prices sit 50% below the standard rate. A nightly job of 30,000 requests with 8,000 input and 1,000 output tokens each costs $292.50 in batch and $585 on standard rates. Batch results come back asynchronously, so it suits work nobody is waiting on. Check Google's page to see whether the introductory discount also applies to batch work.
What inputs does Gemini 3.8 Flash take and how large is its context?
It takes text, image, video, file and audio input, with a context window of 1,048,576 tokens and up to 65,536 tokens of output. Filling the whole window with uncached input and asking for a 1,000 token answer costs $1.580364. If most of that prompt is read from cache, the same call costs $0.30634416. Most real calls are far smaller, so size your estimate from the files you actually send.
How much do 10,000 Gemini 3.8 Flash requests cost?
For 100,000 input and 5,000 output tokens per request, 10,000 requests cost $1,875 with no cache hits and $1,200 with half the input read from cache. If every input token is a cache read, the total is $525. Under the introductory discount the half cached figure is $600. These totals leave out tool fees and any retries, so add your own retry rate.