
Gemini 3.6 Flash (gemini-3.6-flash) and Gemini 3.5 Flash-Lite (gemini-3.5-flash-lite) are generally...
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.
This guide explains what's new in each model, what API changes affect your code, and how to migrate.
Tip: You can automate this migration with a coding agent that supports skills (like Antigravity). Run /gemini-interactions-api migrate my app to Gemini 3.6 Flash
| Model | Model ID | Default thinking level | Pricing | Description |
|---|---|---|---|---|
| Gemini 3.6 Flash | gemini-3.6-flash | medium | $1.50/1M input tokens and $7.50/1M output tokens | Balances speed with intelligence for agentic and multimodal tasks. |
| Gemini 3.5 Flash-Lite | gemini-3.5-flash-lite | minimal | $0.30/1M input tokens and $2.50/1M output tokens | 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:
For detailed pricing, see the pricing page.
from google import genai
client = genai.Client()
interaction = client.interactions.create(
model="gemini-3.6-flash",
input="Write a three.js script that renders an interactive 3D robot."
)
print(interaction.output_text)
medium default thinking level as Gemini 3.5 Flash.Use this table to select the right model and migration path for your workloads.
Both models require removing deprecated sampling parameters (temperature, top_p, top_k) and prefilled model turns. See API changes for details.
| Model | Primary use cases | Recommended migration target |
|---|---|---|
Gemini 3.6 Flash<br>gemini-3.6-flash | Code generation, spatial/multimodal reasoning, multi-step agentic workflows | Gemini 3.5 Flash, Gemini 3 Flash (Preview), or Gemini 3.1 Pro |
Gemini 3.5 Flash-Lite<br>gemini-3.5-flash-lite | Autonomous subagent execution, high-volume data analysis and document extraction, structured JSON parsing | Gemini 3.1 Flash-Lite or Gemini 2.5 Flash |
Due to its improved performance, Gemini 3.6 Flash is now the new default model powering the Antigravity agent in Gemini Managed Agents. This can be changed by setting a new field on the API.
from google import genai
client = genai.Client()
interaction = client.interactions.create(
agent="antigravity-preview-05-2026",
input="Read Hacker News, summarize the top 10 stories, and save the results as a PDF.",
environment="remote",
)
print(interaction.output_text)
Starting with Gemini 3.6 Flash and Gemini 3.5 Flash-Lite, the following API changes apply to these models and all future Gemini model releases.
temperature, top_p, and top_k are deprecated. The API ignores these parameters and returns an error in future model generations.model turn, the API returns a 400 error.Below are detailed explanations and code samples for each API change.
temperature, top_p, top_k)temperature, top_p, and top_k are deprecated and ignored. In future model generations, supplying these parameters returns an HTTP 400 error. Remove these parameters from all requests.
# ⚠️ Remove these parameters (deprecated)
generation_config = {
"temperature": 0.7,
"top_p": 0.9,
"top_k": 40,
}
To improve determinism, define a system instruction with explicit rules for your specific use case.
API requests ending with a non-empty model role turn are disallowed and return an HTTP 400 Error.
In legacy generateContent or raw REST payloads, ending with a model role turn
is now disallowed:
/* ❌ DO NOT: End payload contents with a 'model' role turn */
{
"contents": [
{"role": "user", "parts": [{"text": "Translate 'Hello world' to Spanish."}]},
{"role": "model", "parts": [{"text": "Translation:"}]} /* ❌ Returns error */
]
}
In the Interactions API, model turns are not manually prefilled. If your application previously prefilled a model turn to suppress preambles or force JSON formatting, use system_instruction or Structured outputs instead.
# ✅ RECOMMENDED: Use system_instruction in the Interactions API to specify output format
interaction = client.interactions.create(
model="gemini-3.6-flash",
input="Translate 'Hello world' to Spanish.",
system_instruction="Output only the translation without introductory text.",
)
Tip: You can automate this migration with a coding agent that supports skills (like Antigravity). Run /gemini-interactions-api migrate my app to Gemini 3.6 Flash
gemini-3.6-flash.temperature, top_p, and top_k from generation configs.thinking_budget with the string enum thinking_level set to "medium" or "high".candidate_count (unsupported in Gemini 3.x).previous_interaction_id.\n\n.Malformed_Function_Call errors tied to pre-tool text, see Workarounds for pre-tool text requirements.FunctionResponse objects include call_id and name.gemini-3.5-flash-lite.thinking_level at "minimal" (default) for maximum throughput.thinking_level to "medium" or "high" to prevent premature tool termination.
GeneralTurning 29k home weather stations and Gemini AI agents into a 15-minute volcanic warning...
aiPreviously I have a macOS App I use myself, gemini-live-translate-macos. It uses...
googlecloudA Google ADK agent on Cloud Run, serving A2A to clients that are not ADK — a Strands agent on Bedrock AgentCore and an Agent Framework agent on Container Apps. The card that advertises your bind address, the reply that arrives twice, the event stream once a tool exists, and what Cloud Run brings to the mesh.
aiAbstract Generative AI and autonomous agents do not obsolete Google Apps Script (GAS);...
googlecloudOne ADK agent on Cloud Run, serving A2A to clients built on Strands and Microsoft Agent Framework, next to two agents that are not Google's. The ADK-specific findings — to_a2a() and the agent card, the reply that arrives twice, the event stream once a tool exists, and what Cloud Run brings to the mesh.
sideprojectsA French version is available here. Vacation time 🌴 We are at the end of July, it's my...
Workflows from the Neura Market marketplace related to this Gemini resource