Models / Google

Gemini 3.8 Flash API

Google's diligent workhorse for coding and agents

Google's third Flash release in six weeks thinks longer and calls tools more often, and it lands within a fraction of a point of Claude Opus 5 on long-horizon coding.

  • Kind: chat
  • Made by: Google DeepMind
  • Price: 45 credits / M input tokens, 225 / M output (from $0.45; 1 credit = $0.01 on monthly plans, $0.015 as a top-up)
  • Released: 2026-09-02
  • Open weights: no (Proprietary, closed weights; available through Google's API and products only)
  • Context window: 1,048,576 tokens
  • Max output: 65,536 tokens
  • Inputs: Text, images, video (Unicorn); audio and PDF on Google's API
  • Output: Text only
  • Based on: Gemini 3.7 Flash; parameter count not published
  • Knowledge cutoff: March 2026 (some domains January 2025)
  • Reasoning effort: low or high on Unicorn
  • Licence: Proprietary, API only
  • Inputs: model, messages, tools, tool_choice, stream, max_tokens, temperature, top_p, stop, response_format, reasoning_effort

Call it with POST https://api.unicornapi.net/v1/chat/completions and model gemini-3-8-flash-openai, or try it in the Playground.

Where it shines

  • 73.7% on DeepSWE v1.1, against 74.0% for Claude Opus 5 and 65.3% for Gemini 3.7 Flash
  • Leads Google's table on Vals Finance Agent v2 (61.4%) and Harvey's Legal Agent Benchmark (10.0%)
  • Top scores in Google's table on CharXiv (86.2%), LVBench (87.8%) and HLE-Verified (54.9%)
  • Artificial Analysis Intelligence Index 59 at high reasoning, up from 56 for 3.7 Flash
  • Terminal-bench 2.1 at 89.4%, the best figure in Google's table

Watch out for

  • Uses about 30% more output tokens per task than 3.7 Flash, so tasks take longer
  • Far behind Claude Opus 5 on Terminal-bench 4.0 (19.1% vs 51.8%) and OSWorld-2.0
  • Model card warns of hallucinations and occasional timeouts
  • Closed weights and text output only

Gemini 3.8 Flash is Google's newest Flash model, the fast, high-volume tier of the Gemini 3 family that most developers actually run in production. Google calls it its "most intelligent workhorse model yet" and built it for coding agents, multi-step reasoning and long knowledge-work tasks. It reads up to about a million tokens of text, images, audio, video and PDFs, writes text, and keeps the same context window, output cap and thinking levels as the model it replaces.

The interesting part is how Google got the gains. Gemini 3.8 Flash is not a new pre-training run. Google tuned it to work harder: on a difficult task it takes extra reasoning steps and calls tools again and again until it is more confident of the answer. The result is a Flash model that, on Google's own comparison table, lands within a fraction of a point of Claude Opus 5 on long-horizon software engineering and beats it on finance, legal, chart and long-video tests.

The trade-off is just as clear. A model that works harder writes more tokens: Artificial Analysis measured about 30% more output per task than Gemini 3.7 Flash, and about 2.5 minutes per task at high reasoning. Whether that trade pays off depends on how hard your tasks are.

Google's third Flash release in six weeks

Gemini 3.8 Flash comes from Google DeepMind and was announced on September 2, 2026 by Tulsee Doshi, a senior director of product management, and Raluca Ada Popa, Gemini's security lead. It follows Gemini 3.6 Flash in late July and Gemini 3.7 Flash in mid-August, which makes it the third Flash update in six weeks. Artificial Analysis counts it as Google's fourth Flash model in under four months.

That pace says something about Google's position. Commentators at launch read the release as Google answering doubts about its place in the frontier race, after leadership changes and a Gemini 3.5 Pro that missed its expected June arrival. In the meantime, the Flash line has become the place where Google ships its improvements first.

Like every Gemini model, 3.8 Flash is closed. Google has not released weights and has not published a parameter count. It is available through the Gemini API and Google AI Studio, Android Studio, the Google Antigravity agent workspace, Gemini Enterprise, the Gemini app for Google AI Pro and Ultra subscribers, AI Mode in Search and Gemini in Google Sheets. The API model code is gemini-3.8-flash.

It shipped alongside a sibling, Gemini 3.8 Flash Cyber, which replaces the earlier 3.5 Flash Cyber. That variant is reserved for vetted security teams in Google's new Fairwind Program, and Google reports 47.2% pass@1 on the CWE-Bench patching test and 2.6 times more correct patches than leading commercial models in tests by the Chrome Security team. The general model covered here is the one open to everyone.

What changed from Gemini 3.7 Flash

Diligence as a design choice. Google's own phrase is that 3.8 Flash "works harder" on complex tasks. It executes extra reasoning steps and calls tools iteratively, and the model card warns that it "may use more tokens to maximize performance, especially at higher effort levels." This is the single idea behind the release, and almost every benchmark gain flows from it.

Better coding agents. On DeepSWE v1.1, a long-horizon software engineering benchmark, the score rises from 65.3% to 73.7%. Terminal-bench 2.1 moves from 85.8% to 89.4%, the best figure in Google's table, and the harder Terminal-bench 4.0 from 11.2% to 19.1%. Computer use improves too: OSWorld-2.0 goes from 50.6% to 59.0%.

Better knowledge work. On Vals Finance Agent v2 the model scores 61.4% (up from 59.0%), on Harvey's Legal Agent Benchmark 10.0% of tasks pass every check (up from 8.8%), and the GDPVal-AA v2 knowledge-work Elo climbs from 1482 to 1545. Artificial Analysis found its largest single gain on the τ³-Banking agent test, up 12 points to 45%.

Science and multimodal reasoning. HLE-Verified, a test of expert questions across many fields, rises to 54.9%. The biggest jump in the table is BioMysteryBench's human-difficult tier, from 43.5% to 56.5%. Long-video understanding on LVBench reaches 87.8% and chart reasoning on CharXiv 86.2%.

Thinking levels. The Gemini API offers low, medium (the default) and high thinking. There is no minimal level; asking for it returns a validation error.

More tokens per task. Artificial Analysis measured about 48,000 output tokens per task on its index, 30% more than 3.7 Flash. That is the visible side of the extra diligence: longer reasoning, more tool calls and a longer wait for the finished answer.

Safety. Google reports a significant improvement in resistance to prompt injection on the Gray Swan benchmark and keeps protections against chemical, biological, radiological, nuclear and offensive cyber misuse. Its frontier safety review found no meaningful new capabilities compared with 3.7 Flash and judged the model unlikely to reach any critical capability level.

An incremental model, built on 3.7 Flash

The model card is direct about what this release is: "Gemini 3.8 Flash is based on Gemini 3.7 Flash." Architecture, training data and hardware are documented in the predecessor's card, which in turn points back through 3.6 Flash and 3.5 Flash to the original Gemini 3 Flash. In other words, the gains come from post-training and from how the model spends its thinking, not from a bigger or newly trained network. Google has not published a size or an architecture breakdown for the Flash line's latest steps. The knowledge cutoff is March 2026, though Google notes that some domains only reach January 2025.

Gemini 3.8 Flash specs

Gemini 3.8 Flash
MakerGoogle DeepMind
Based onGemini 3.7 Flash (no new pre-training)
ParametersNot published
Context window1,048,576 tokens
Max output65,536 tokens
InputsText, images, video, audio, PDF (Unicorn: text, images, video)
OutputText only
Thinkinglow, medium, high on Google's API; low and high on Unicorn
Tools on Google's APIFunction calling, structured output, code execution, search and Maps grounding, URL context, computer use (preview)
Knowledge cutoffMarch 2026, some domains January 2025
WeightsClosed

It does not generate images or audio and does not support Google's Live API for realtime voice.

Where Gemini 3.8 Flash is strong

Near-frontier coding from a Flash model. The headline comparison is DeepSWE v1.1: 73.7% for Gemini 3.8 Flash against 74.0% for Claude Opus 5 and 72.7% for GPT-5.6 Sol, the flagship models of Anthropic and OpenAI. On Terminal-bench 2.1 it edges both of them, 89.4% against 89.1% and 88.8%.

Finance, legal and documents. It leads every model in Google's table on Vals Finance Agent v2 and on Harvey's Legal Agent Benchmark. The legal scores are low across the board, which says the test is hard, but 10.0% against 6.7% for Opus 5 and 2.5% for GPT-5.6 Sol is a clear gap.

Charts, video and science. It tops the table on CharXiv, LVBench, HLE-Verified, LABBench2 and the hard tier of BioMysteryBench. For a model meant to sit behind document pipelines and research assistants, that is a useful profile.

Intelligence for its tier. Artificial Analysis scores it 59 on its Intelligence Index at high reasoning, up from 56 for 3.7 Flash. At medium it scores 57, level with GPT-5.6 Terra, and at low 52, so the lighter settings still stay competitive. Output runs at roughly 300 tokens per second.

Speed and everyday knowledge. Early testers on Hacker News praised how quickly it turns a request into working front-end code, with one generating a page of HTML in 13 seconds. Another highlighted its world knowledge for trip planning, such as working out a sensible visiting order for a cluster of places.

Where it falls short

Hard agent work is still a Pro-class job. On Terminal-bench 4.0, Google's measure of general agent capability, 3.8 Flash scores 19.1% against 51.8% for Claude Opus 5 and 37.3% for GPT-5.6 Sol. On OSWorld-2.0 computer use it trails Opus 5 by 16 points. On GDPVal-AA v2 knowledge work its Elo of 1545 sits below Opus 5, GPT-5.6 Sol and even Claude Sonnet 5.

Token appetite. Working harder means writing more. Artificial Analysis measured about 2.5 minutes per task at high reasoning, and Hacker News commenters singled out the output-token count as the main complaint. Thinking tokens count against the output cap, so long reasoning eats into the room left for the answer.

Trust and reliability. The model card lists hallucinations, ongoing jailbreak work and occasional timeouts as known limitations. Some testers said they still prefer Claude Opus models for backend code, and one pointed to a confidently wrong performance claim as a reason to verify its output.

The usual limits. Text output only, closed weights, and a knowledge cutoff that is patchy before March 2026.

How to prompt Gemini 3.8 Flash

Because the model is tuned to keep going until it is confident, the most useful lever is reasoning_effort. Use low for well-defined jobs such as extraction, rewriting or simple code, and keep high for problems that really need search, planning or many tool calls. Give it a clear definition of done so the extra diligence goes into checking, not wandering.

For a planning problem with constraints, state every constraint and ask it to show the check:

Here are six site visits with opening hours and drive times between them. Find an order that visits all six in one day starting at 8:00, explain why each alternative fails, and give the final timetable as a table.

For front-end code, ask for one self-contained file and name the interactions you expect:

Write a single HTML file with inline CSS and JavaScript that simulates a three-gear train. Let the user drag the speed of the first gear with a slider and show each gear's RPM. No external libraries.

For documents and charts, ask for values you can verify:

Read the attached quarterly report. Extract every figure shown in the revenue chart on page 4, compare it with the numbers in the text, and list any mismatch with the page reference.

Leave room in max_tokens. The cap counts reasoning and the visible answer together, and this model reasons more than its predecessor.

Gemini 3.8 Flash versus other models

The obvious comparison is Gemini 3.7 Flash, with the same context window, output cap and thinking options on Unicorn API. Pick 3.8 Flash for agentic coding, finance, legal and research tasks where the benchmark gains matter. Stay on 3.7 Flash for high-volume, simple calls where speed per request and total output tokens matter more than the last few points of accuracy.

Claude Opus 5 is the model Google measures itself against. It still leads clearly on Terminal-bench 4.0, OSWorld-2.0 and GDPVal knowledge work, and it is the safer choice for long autonomous agents. GPT-5.6 Sol sits in between on hard agent work, with 37.3% on Terminal-bench 4.0 and 62.6% on OSWorld-2.0, and it leads Google's table on GDP.pdf document comprehension at 40.0% against 35.0%.

Against mid-tier models the case for 3.8 Flash is strong. It beats Claude Sonnet 5 and GPT-5.6 Terra on DeepSWE, finance, legal, charts and video in Google's table; only Sonnet 5 keeps an edge, on GDPVal knowledge work (1584 against 1545). For simple bulk tasks such as classification or short summaries, GPT-5.6 Luna, the fastest tier of OpenAI's GPT-5.6 family, is another option.

Getting started

Open the model in the Playground to try a prompt without writing code. To build with it, create a key on the API keys page and call the OpenAI-compatible /v1/chat/completions endpoint with model: "gemini-3-8-flash-openai". Images and video go in as image_url message parts, tools use the standard tools array, response_format: { "type": "json_object" } returns JSON, and reasoning_effort accepts low or high. The docs cover streaming, tools and error handling.

Verdict

Gemini 3.8 Flash is a careful, incremental release with a clear idea behind it: let a fast model think and use tools a little longer, and it gets surprisingly close to the frontier. On Google's table it matches Claude Opus 5 on long-horizon coding and leads on finance, legal, charts and video, all from the Flash tier. It is not a replacement for a top model on long autonomous agent runs, and its extra diligence means more tokens and longer waits. For teams that want strong agentic coding and document work at Flash speed, it is the Flash model to try first.

Best for

  • Agentic coding at high volume
  • Front-end prototypes and simulations
  • Financial and legal document analysis
  • Chart and long-video understanding
  • Science and research assistants

Frequently asked questions

Is Gemini 3.8 Flash open source?

No. Gemini 3.8 Flash is a proprietary Google DeepMind model with closed weights and no published parameter count. It is available through Google's API and apps and through API providers such as Unicorn API.

Why does Gemini 3.8 Flash use more tokens?

Google tuned it to "work harder" on complex tasks: it takes extra reasoning steps and calls tools again until it is more confident. Artificial Analysis measured about 48,000 output tokens per task on its index, 30% more than Gemini 3.7 Flash.

What is the Gemini 3.8 Flash context window?

It reads up to 1,048,576 input tokens and writes up to 65,536 output tokens per reply, the same limits as Gemini 3.7 Flash.

Gemini 3.8 Flash vs Gemini 3.7 Flash: what changed?

3.8 Flash is tuned to take extra reasoning steps and call tools more often. DeepSWE v1.1 rises from 65.3% to 73.7% and Terminal-bench 2.1 from 85.8% to 89.4%, but it uses more output tokens per task.

Gemini 3.8 Flash vs Claude Opus 5: which is better?

On Google's table they are nearly tied on DeepSWE v1.1 and 3.8 Flash leads on finance, legal, chart and video tests. Opus 5 is far ahead on Terminal-bench 4.0, OSWorld-2.0 and GDPVal knowledge work, and is the safer choice for long autonomous agents.

What is Gemini 3.8 Flash Cyber?

A security-focused sibling released the same day for vetted defenders in Google's Fairwind Program. It is not generally available; the standard Gemini 3.8 Flash is the model offered on Unicorn API.