Gemini 3.8 Flash (gemini-3.8-flash) is our most intelligent Flash model, engineered for long-horizon software engineering, autonomous agents, and complex enterprise workflows.
Gemini 3.8 Flash supports a 1M token context window, 64k max output tokens, tunable thinking levels (low, medium, high), and the same suite of built-in tools as previous Flash models.
What's new in Gemini 3.8 Flash:
- *Long-horizon software engineering:** Delivers strong results on real-world coding benchmarks, complex multi-file refactoring, and deterministic tool execution.
- *Autonomous agents:** Lets you build resilient multi-step planning and tool orchestration workflows, substantially reducing failed loops and errors.
- *Complex enterprise workflows:** Delivers superior accuracy, deep reasoning, and high factual rigor across demanding domain tasks and large-scale data pipelines.
- *Default model for Managed Agents:** The default agent for managed agents: the Antigravity agent, now uses Gemini 3.8 Flash. The Antigravity SDK also uses Gemini 3.8 Flash by default.
- *Introductory pricing:** Available at $0.75/1M input tokens and $3.75/1M output tokens through December 31, 2026. Standard pricing of $1.50/1M input and $7.50/1M output takes effect January 1, 2027.
Updated Antigravity agent: The Antigravity agent in Gemini Managed Agents is now built with Gemini 3.8 Flash by default. This feature requires the Interactions API.
Migration: Update Model ID to gemini-3.8-flash. Replace thinking_budget with thinking_level (low, medium, high). Remove deprecated sampling parameters (temperature, top_p, top_k), candidate_count, and prefilled model turns.