Gemini 3.8 Flash API Pricing & Workload Cost Analysis
The verified numbers: Gemini 3.8 Flash (Google DeepMind) bills $0.75 per 1M input tokens, $3.75 per 1M output tokens, and $0.075 per 1M cached input tokens, inside a 1M context window. On a reference 200-step agent loop, that totals roughly $0.97 per task.
Engineering perspective & production reality
Gemini 3.8 Flash remains a fast, cost-effective agent engine at its $0.75/$3.75 introductory rate through December 31, 2026 (stepping up to $1.50/$7.50 on January 1, 2027).
Verified rate card
| Item | Rate | Unit |
|---|---|---|
| Input | $0.75 | per 1M tokens |
| Output | $3.75 | per 1M tokens |
| Cached input (cache read) | $0.075 | per 1M tokens |
| Context window | 1M | tokens |
Billing notes: Introductory rate $0.75 / $3.75 valid through December 31, 2026; standard $1.50 / $7.50 applies from January 1, 2027.
Source: Google DeepMind official pricing ↗, checked November 2026.
Translating list rates into real engineering spend
List rates per million tokens can be deceiving because autonomous loops hit prompt caches repeatedly. Below are two concrete reference workloads calculating the exact dollar burn for Gemini 3.8 Flash:
Scenario A — One 200-step autonomous agent task
A coding agent operates over 200 steps with a fixed 40,000-token prefix (system instructions, tool declarations, repository map). The prefix is cached on step 1 and re-read on the remaining 199 steps, producing 500 output tokens per step. For Google DeepMind, cache writes bill at the input rate (per-hour cache storage is excluded).
| Component | Calculation | Cost |
|---|---|---|
| Cache write (once) | billed via hourly cache storage (excluded) | — |
| Cache reads | 199 × 40,000 × $0.075 / 1M | $0.60 |
| Output | 200 × 500 × $3.75 / 1M | $0.38 |
| Total per task | $0.97 |
Scenario B — Monthly production volume
A team runs a production service processing 50M fresh input tokens, 150M cached input tokens, and 10M output tokens through Gemini 3.8 Flash per month:
| Component | Volume | Cost |
|---|---|---|
| Fresh input | 50M × $0.75 | $37.50 |
| Cached input | 150M × $0.075 | $11.25 |
| Output | 10M × $3.75 | $37.50 |
| Monthly total | $86.25 |
Head-to-head comparisons
- Gemini 3.8 Flash vs DeepSeek V4.1 Flash — same workload, $0.97 vs $0.09 (10.8x apart).
- Claude Haiku 5.5 vs Gemini 3.8 Flash — same workload, $0.13 vs $0.97 (7.2x apart).
Frequently asked questions
How much does Gemini 3.8 Flash cost per million tokens?
Gemini 3.8 Flash costs $0.75 per 1M input tokens and $3.75 per 1M output tokens, with cached input at $0.075 per 1M. Verified November 2026 against Google DeepMind's official pricing.
What is the context window of Gemini 3.8 Flash?
Gemini 3.8 Flash supports a 1M token context window, per Google DeepMind's documentation checked November 2026.
Does Gemini 3.8 Flash support prompt caching?
Yes. Cached input tokens bill at $0.075 per 1M instead of the full input rate; cache writes bill at the input rate (per-hour cache storage is excluded).
When was this Gemini 3.8 Flash price last checked?
In November 2026, against Google DeepMind's own pricing page: https://ai.google.dev/gemini-api/docs/pricing