AI Development

Gemini 3.8 Flash: Specs, Price & Quickstart

September 12, 2026
10 min read
Gemini 3.8 Flash benchmarks and quickstart guide
Share:

Google shipped Gemini 3.8 Flash on September 2, 2026 — the third Flash release in six weeks, and, in Google’s words, its most intelligent Flash model yet for long-horizon software engineering, autonomous agents, and complex enterprise workflows.

Same price as 3.7 Flash, same 1M context, measurably better agentic reasoning — but a higher token burn per task. Here is the full picture: spec sheet, what really improved, working quickstart code, and the honest limits.

1. Spec sheet: the facts first

Everything below comes from Google’s launch post, the DeepMind model card, and the Gemini API docs — not from press recaps. Model ID gemini-3.8-flash, generally available since September 2, 2026, and based on Gemini 3.7 Flash according to the model card.

🆔

Model ID

GA · Sep 2, 2026

gemini-3.8-flash (stable, no preview suffix). Based on Gemini 3.7 Flash. Third Flash release in six weeks, after 3.6 (Jul 21) and 3.7 (Aug 13).

🧠

Context window

1,048,576 in · 65,536 out

One full megatoken of input, 64K max output. Input: text, image, video, audio, PDF (plus YouTube URLs). Output: text only.

🎚️

Thinking levels

low · medium · high

Default is medium. The old minimal level now returns a 400 error — map it to low. Thinking tokens are billed at the output rate.

📚

Knowledge cutoff

March 2026

Updated info in some domains, but Google warns others may effectively reflect knowledge only up to January 2025.

🔒

License

Proprietary · API only

No open weights. Access via Gemini API / AI Studio / Enterprise, subject to Google’s API terms. The Cyber variant is gated behind the Fairwind Program.

🧩

Parameters

Not disclosed

Google publishes no parameter count for 3.8 Flash, and I will not invent one. Treat any number you see elsewhere as speculation.

💰 Official price (public, per Google’s pricing page)

Introductory through December 31, 2026: $0.75 per 1M input tokens, $3.75 per 1M output tokens (thinking included). From January 1, 2027: $1.50 / $7.50. Batch and Flex inference cost half; cached-input reads are $0.075 per 1M. If you are sizing a 2027 budget on $0.75, you are sizing it on the wrong number.

Identical to 3.7 Flash, row for row. Per-token price did not move — but per-task cost did, because 3.8 writes ~30% more output tokens. More on that in section 4.

2. What actually improved vs Gemini 3.7 Flash

Google’s headline claim is specific: on hard tasks 3.8 Flash takes smaller reasoning steps, verifies its work, and calls tools in loops. That buys measurable gains on agentic benchmarks — and costs more tokens by design. Here are the numbers, with sources attached so you know what is vendor-reported and what is independent.

Artificial Analysis Intelligence Index

59 (high) · 3.7: 56 (high)

Independent. Ties GPT-5.6 Sol, one point above Claude Fable 5.1. Output speed ~302–305 tok/s, fastest measured at the time.

DeepSWE v1.1 (long-horizon coding)

~73.7% · top spot · 3.7: 65.3%

Google-reported; near Claude Opus 5 (74.0%) at a fraction of the price. The single biggest jump of this release.

Terminal-Bench 2.1

89.4–90.8% · 3.7: 81.6–85.8%

Google-reported. Independent re-runs (Vals/BenchLM) land lower, ~81%: expect your mileage to sit between the two.

Vals Finance Agent v2

61.4% · 3.7: 59.0%

Google-reported. Beats Opus 5 (58.6%) and GPT-5.6 Sol (53.8%) — a Flash-priced model leading finance agents.

Harvey Legal Agent Benchmark

10.0% · 3.7: 8.8%

Google-reported — but read it honestly: every model fails this test. 3.8 fails it least. A real, small result.

HLE-Verified

54.9% · 3.7: 53.6%

Google-reported, three-way tie with Sol (54.5%) and Opus 5 (54.4%). Modest gain, frontier-adjacent.

How to read these numbers

Coding and tool use jumped (τ³-Banking tool-use: 45%, +12 over 3.7). Biology research leads too (LAB-Bench2 86.2%, ahead of Opus 5). But gains are uneven: on Terminal-Bench 4.0, Google’s own table shows 3.8 Flash at 19.1% against Opus 5’s 51.8%. This is a workhorse upgrade for agents and coding loops — not a frontier-model replacement.

3. Quickstart: JavaScript and Python

3.8 Flash is a drop-in model swap: same API, same tools (function calling, structured outputs, context caching, code execution, search grounding). The one thing to set deliberately is the thinking level — it is now a routing decision, not a global default.

JavaScript (@google/genai)

import { GoogleGenAI } from ’@google/genai’;

const ai = new GoogleGenAI({ apiKey: process.env.GEMINI_API_KEY });

const res = await ai.models.generateContent({
  model: ’gemini-3.8-flash’,
  contents: ’Refactor this function for readability and add tests…’,
  config: { thinkingConfig: { thinkingLevel: ’medium’ } },
});

console.log(res.text);
// Check res.usageMetadata: thought tokens bill as output

Python (google-genai)

from google import genai
from google.genai import types

client = genai.Client()  # reads GEMINI_API_KEY

res = client.models.generate_content(
    model=’gemini-3.8-flash’,
    contents=’Refactor this function for readability and add tests…’,
    config=types.GenerateContentConfig(
        thinking_config=types.ThinkingConfig(thinking_level=’medium’)
    ),
)

print(res.text)

Three cost-control tips I actually use

  • Default to medium, not high. Artificial Analysis measured $0.41 per task at medium vs $0.58 at high, for an index-score drop of only 57 vs 59.
  • Put latency-sensitive routes on low: $0.24 per task and ~0.8 min vs 2.5 min at high on the same harness.
  • Log thought-token counts (usageMetadata) from day one. Thinking bills as output, so a short answer at high can cost more than a long one at low.

4. Honest limits

No model review is complete without the parts the launch post downplays. I collected the ones that would actually bite you in production:

💸

The price is a promo

Every rate doubles on January 1, 2027. Model multi-year budgets on $1.50/$7.50, not on the launch-week sticker.

🔥

+30% tokens per task

Independent measurement: ~48,000 output tokens per task vs 3.7 Flash. Same per-token price, ~45% higher bill per hard task at high effort.

Slow first word

~305 tok/s once generating, but ~13.3s time-to-first-token at high. Great for overnight agents, disqualifying for chat widgets.

🚫

No Live API, no media out

Text output only: no image generation, no speech output, no realtime voice sessions. Computer use is still preview.

⚠️

Two migration gotchas

thinking minimal now errors (map to low), and every function response must carry both the call id and name or tool loops fail on turn two.

📊

Vendor vs independent gap

Google’s Terminal-Bench 2.1 (~90%) vs independent re-runs (~81%). IntuitionLabs’ verdict is task-specific: leads on biology/finance/legal, trails on dense document extraction (GDP.PDF 35% vs Sol 40%).

Golden rule

Do not migrate on benchmarks. Replay a representative set of your own workloads on 3.8 Flash at medium next to your current model, and measure success rate, total token spend, and completion time. If it wins there, the leaderboard becomes relevant to your business.

5. Bonus: agentic video understanding (−88% tokens)

One week before 3.8 Flash, Google launched agentic video understanding across the Flash family (announced for 3.7/3.6/3.5-Lite on Sep 1, with API docs also listing 3.8 Flash). Instead of ingesting video at a fixed 1 FPS, the model navigates the timeline itself — deciding what to watch and whether it needs frames, audio, or transcript.

Google reports up to 88% fewer tokens, up to 66% lower cost, and up to 7% higher accuracy on long-form video benchmarks. Those are vendor maxima on long content — a two-minute clip has little to skip — but the mechanism is sound: you pay standard token rates only for what the model actually loads.

How to enable it

Set processing to ’agentic’ in your Gemini API video request (file upload or YouTube URL supported). No surcharge, no separate endpoint — the savings arrive automatically through lower token use. Static mode stays better for clips under five minutes and frame-by-frame precision work.

Verdict: should you upgrade?

Gemini 3.8 Flash is a genuine, generally available upgrade — not a preview, not a rebrand. For agentic coding loops, multi-step research, and document-heavy work where quality beats token count, it is the best value in Google’s lineup right now, especially while intro pricing lasts.

But it is not automatic. If your workload is high-volume classification, short-context chat, or anything latency-sensitive, 3.7 Flash — or 3.8 at low — remains the better buy, and Google says so itself. Route by workload, measure per task, and budget on 2027 prices.

Upgrade matrix: summary

Upgrade to 3.8

  • • Multi-step agents with tool calls
  • • Long-horizon coding harnesses
  • • Finance / legal / research agents

Stay / use low

  • • High-volume short calls
  • • Latency-sensitive endpoints
  • • Batch pipelines priced to the cent
Diego Rodriguez

Diego Rodriguez

Senior Full-Stack & AI Engineer

Diego has 10+ years of experience building production-grade AI-powered applications, from LLM orchestration and RAG pipelines to ML-driven risk detection and algorithmic trading systems.

Learn more about Diego