Using the latest Gemini models | Gemini API | Google AI for Developers
Skip to main content
English
Deutsch
Español – América Latina
Français
Indonesia
Italiano
Polski
Português – Brasil
Shqip
Tiếng Việt
Türkçe
Русский
עברית
العربيّة
فارسی
हिंदी
বাংলা
ภาษาไทย
中文 – 简体
中文 – 繁體
日本語
한국어
Get API key
Cookbook
Community
Sign in
The Interactions API is now generally available. We recommend using this API for access to all the latest features and models.
Home
Gemini API
Docs
Send feedback
Using the latest Gemini models
This page<br>3.5 Flash
Note: This version of the page covers the Interactions API . You can use the toggle on this page to switch to the generateContent API version of this page.<br>Gemini 3.6 Flash (gemini-3.6-flash) and Gemini 3.5 Flash-Lite (gemini-3.5-flash-lite) are generally available (GA) and ready for production use.
Gemini 3.6 Flash : Stronger performance on complex agentic and multimodal tasks while reducing token usage, at a lower price point than 3.5 Flash.
Gemini 3.5 Flash-Lite : The fastest, lowest-cost model in the 3.5 family. Outperforms prior Flash-Lite generations for high-throughput execution.
This guide explains what's new in each model, what API changes affect your code, and how to migrate.
Note: You can automate this migration with a coding agent that supports skills (like Antigravity).<br>Gemini 3.6 Flash
Install the skill:
npx skills add google-gemini/gemini-skills --skill gemini-interactions-api --global
Apply the skill:
/gemini-interactions-api migrate my app to Gemini 3.6 Flash
Gemini 3.5 Flash-Lite
Install the skill:
npx skills add google-gemini/gemini-skills --skill gemini-interactions-api --global
Apply the skill:
/gemini-interactions-api migrate my app to Gemini 3.5 Flash-Lite
New models
Model<br>Model ID<br>Default thinking level<br>Pricing<br>Description
Gemini 3.6 Flash<br>gemini-3.6-flash<br>medium<br>$1.50/1M input tokens and $7.50/1M output tokens<br>Balances speed with intelligence for agentic and multimodal tasks.
Gemini 3.5 Flash-Lite<br>gemini-3.5-flash-lite<br>minimal<br>$0.30/1M input tokens and $2.50/1M output tokens<br>The fastest, lowest-cost 3.5 model for high-throughput execution.
Both models support the 1M token context window, 64k max output tokens, thinking, and the full suite of built-in tools including Computer Use.
For complete specs, see the model pages:
Gemini 3.6 Flash model page
Gemini 3.5 Flash-Lite model page
For detailed pricing, see the pricing page.
Quickstart
Python
from google import genai
client = genai.Client()
interaction = client.interactions.create(<br>model="gemini-3.6-flash",<br>input="Write a three.js script that renders an interactive 3D robot."
print(interaction.output_text)
JavaScript
import { GoogleGenAI } from "@google/genai";
const ai = new GoogleGenAI({});
async function main() {<br>const interaction = await ai.interactions.create({<br>model: "gemini-3.6-flash",<br>input: "Write a three.js script that renders an interactive 3D robot.",<br>});<br>console.log(interaction.outputText);
main();
REST
curl "https://generativelanguage.googleapis.com/v1beta/interactions" \<br>-H "x-goog-api-key: $GEMINI_API_KEY" \<br>-H 'Content-Type: application/json' \<br>-X POST \<br>-d '{<br>"model": "gemini-3.6-flash",<br>"input": {<br>"parts": [{"text": "Write a three.js script that renders an interactive 3D robot."}]<br>}'
What's new in Gemini 3.6 Flash
Token and turn reduction: Completes multi-step workflows with fewer reasoning steps, conversational turns, and tool calls than Gemini 3.5. It also reduces execution loop spiraling.
Improved code generation: Produces higher quality production-ready code with fewer unwanted edits and fewer debugging loops.
Better instruction following : Reduces unwanted file changes during diagnostic tasks.
Strong multimodal and spatial reasoning: Improved performance on chart interpretation, visual blueprint conversion, and multi-element web layout generation.
Upfront programmatic inspection: Prefers running diagnostic code scripts before making changes more frequently than Gemini 3.5 Flash. This improves accuracy on complex tasks, but can add extra exploratory steps on simple frontend work.
Computer Use support: Supported as native tool for agentic UI automation.
UI styling preference : Better at creating functional code, though human evaluators preferred earlier models for visual layout and styling. You can mitigate this by providing explicit design guidelines.
Default thinking effort (medium): Uses the same medium default thinking level as Gemini 3.5 Flash.
Reduced pricing : Lower output token costs ($7.50/1M vs. $9.00/1M for 3.5 Flash). Input tokens remain at $1.50/1M.
What's new in Gemini 3.5 Flash-Lite
Reduced task execution latency: Highest throughput in the 3.5 family for high-volume data parsing and document extraction.
Enhanced reasoning and multimodal performance: Strong migration path from Gemini 2.5 Flash, with higher scores on reasoning tasks like HLE (18.0% vs. 11.0%) and multimodal benchmarks like...