TLDR: Gemini 3.7 Flash (model ID gemini-3.7-flash), released August 13, 2026, is Googleโs most capable Flash-class workhorse model for coding, agentic workflows, web development, and knowledge-intensive tasks.
It offers a 1,048,576-token context window, up to 65,536 output tokens, tunable thinking levels (low/medium/high), strong multimodal support, and introductory pricing of $0.75 per 1M input tokens / $3.75 per 1M output tokens through December 31, 2026. Access it via Googleโs Interactions API or, more conveniently for multi-model stacks, through CometAPIโs unified endpoint. This guide covers whatโs new, API parameters, step-by-step usage with CometAPI, code examples, benchmarks, and best practices.
Key Takeaways
- Gemini 3.7 Flash delivers major gains over 3.6 Flash in coding (FrontierCode 1.1 Main: 43.6% vs 34.4%; DeepSWE v1.1: 65.3% vs ~49%), web development (WebDev Arena Elo 1588 vs 1538), document processing (GDP.pdf 34% vs 22%), and business automation (AutomationBench 30.4% vs 17%).
- Use the Interactions API (
client.interactions.create) for the latest features; thinking_level replaces older budget parameters. - CometAPI provides a single API key and OpenAI-compatible (or native Gemini) access to Gemini 3.7 Flash plus 500+ other models, simplifying billing, switching, and cost control.
- Multimodal inputs (text, image, video, audio, PDF) with text output; built-in tools include function calling, code execution, search grounding, computer use (preview), and more.
- $0.75 per 1M input tokens and $3.75 per 1M output tokens through December 31, 2026, Introductory pricing ends December 31, 2026; plan for the standard rate of $1.50 / $7.50 thereafter.
- Ideal for production agents, high-accuracy code generation, and multi-step workflows where cost-efficiency and reliability matter.
Google released Gemini 3.7 Flash on August 13, 2026โjust three weeks after Gemini 3.6 Flashโas its most intelligent workhorse model yet for coding and agents. It targets complex software engineering, agentic multi-step execution, web/UI generation with strong design adherence, and knowledge-dense domains such as finance, law, and biosciences.
Important: Gemini 3.7 Flash introduces or inherits important Gemini 3.x API behavior changes. In particular, developers migrating older Gemini applications should remove
temperature,top_p, andtop_k, replacethinking_budgetwiththinking_level, remove unsupportedcandidate_count, and stop pre-filling model turns.
What Is Gemini 3.7 Flash?
Gemini 3.7 Flash is Google's newest Flash-class generative AI model, released on August 13, 2026.
Google describes it as its โmost intelligent workhorse model yet for coding and agents.โ The release is notable because it arrived just three weeks after Gemini 3.6 Flash, suggesting that Google is accelerating the iteration cycle for its developer-oriented Flash models.
Rather than positioning Gemini 3.7 Flash simply as a faster chatbot model, Google is targeting workloads where an AI system needs to:
- reason through multiple steps;
- write and debug software;
- use tools;
- interact with external systems;
- analyze large documents;
- transform designs into working interfaces;
- execute business workflows;
- operate as part of an AI agent.
That distinction matters.
A traditional chatbot might answer:
โHow do I implement OAuth?โ
An agent-oriented coding model is expected to understand the repository, inspect files, identify dependencies, propose changes, execute tools, diagnose errors, and iterate until the implementation works.
Gemini 3.7 Flash is designed much more heavily around the second scenario.
Gemini 3.7 Flash API: Core Specifications
The official Gemini API documentation lists Gemini 3.7 Flash as generally available with the following headline specifications.
| Specification | Gemini 3.7 Flash |
|---|---|
| Model ID | gemini-3.7-flash |
| Availability | Generally Available |
| Context window | 1,000,000 tokens |
| Maximum output | 64,000 tokens |
| Default thinking level | Medium |
| Thinking levels | Low, Medium, High |
| Input | Multimodal capabilities supported through Gemini platform |
| Primary focus | Coding, agents, web development, knowledge work |
| Intro input price | $0.75 / 1M tokens |
| Intro output price | $3.75 / 1M tokens |
| Intro price expiration | December 31, 2026 |
| Standard input price after intro | $1.50 / 1M tokens |
| Standard output price after intro | $7.50 / 1M tokens |
The 1M-token context window is particularly useful for large repositories, lengthy technical documentation, enterprise documents, and multi-step agentic sessions.
What has the Gemini 3.7 Flash API changed?
This is one of the most important sections for developers.
Gemini 3.7 Flash is not simply a matter of changing:
gemini-3.6-flash
to:
gemini-3.7-flash
Google's Gemini 3.x generation introduced API behavior changes that can break older applications. The Gemini 3.7 migration documentation specifically calls out several changes.
1. temperature, top_p, and top_k are deprecated
Older Gemini integrations commonly contain configuration such as:
generation_config = {
"temperature": 0.7,
"top_p": 0.9,
"top_k": 40
}
For Gemini 3.x, these sampling parameters should be removed.
Google says these parameters are deprecated and future model generations can reject them rather than silently accepting them.
For Gemini 3.7 Flash, use thinking controls instead:
generation_config = {
"thinking_level": "medium"
}
This is a significant conceptual change.
Instead of primarily controlling randomness, developers can explicitly control the amount of reasoning effort.
2. thinking_budget becomes thinking_level
Applications using an older reasoning configuration may have something like:
{
"thinking_budget": 4096
}
Gemini 3.7 Flash uses:
{
"thinking_level": "medium"
}
The supported levels are:
lowmediumhigh
Google describes low as useful for latency-sensitive tasks, medium as the default and general-purpose setting, and high as appropriate for difficult reasoning, mathematics, coding, and agentic tasks.
3. candidate_count should be removed
Google's migration checklist also says to remove candidate_count, which is unsupported in Gemini 3.x.
Therefore, a legacy configuration like:
{
"candidate_count": 3
}
should not simply be carried forward into Gemini 3.7 Flash.
4. Prefilled model turns are no longer supported
Older conversational architectures sometimes end a request with a partially prefilled model turn.
Gemini's newer API behavior requires developers to rethink this pattern.
Google recommends using server-side conversation state through previous_interaction_id for multi-turn interactions and removing prefilled model turns.
5. Function calling requires additional care
The migration guidance also highlights function-calling changes.
For applications using tools, developers should pay attention to:
- multimodal assets;
- inline instructions;
- function-response metadata;
call_id;- function names;
- malformed function-call errors.
For the generateContent API specifically, Google says FunctionResponse objects should include both call_id and name.
This matters particularly for agent applications because function calling is no longer an optional โnice-to-have.โ It is central to how coding and workflow agents operate.
How to Use the Gemini 3.7 Flash API with CometAPI
CometAPI is a unified API gateway offering access to 500+ models (including the full Gemini family) under a single API key, OpenAI-compatible endpoints, competitive pricing, and simplified multi-vendor management. This is especially useful if your application already uses OpenAI SDKs or needs to switch between Gemini, Claude, GPT, and other models without rewriting auth or billing logic.
Below is a complete, production-oriented walkthrough. Each major step is structured as an H2 for clarity and SEO.
Sign Up for CometAPI and Obtain Your API Key
- Visit https://www.cometapi.com/ and create an account (Google, GitHub, or email).
- Navigate to the API Keys / Console section: https://www.cometapi.com/console/token.
- Click Create API Key, give it a descriptive name (e.g., gemini-3.7-flash-prod), and copy the key.
- Store it securely as an environment variable:Bash
export COMETAPI_KEY="your-key-here"
Never commit the key to version control or expose it in client-side code.
CometAPI uses pay-as-you-go pricing with rates typically competitive against direct vendor pricing and no monthly minimums.
Install the Required SDKs
For native Gemini style (recommended for full feature parity):
Bash
pip install google-genai
For OpenAI-compatible calls (easiest migration):
Bash
pip install openai
Node.js equivalents are also available (@google/genai or the OpenAI Node SDK).
Configure the Client for CometAPI
Option A โ Native Google GenAI client pointed at CometAPI (preserves Interactions API and thinking controls):
Python
import os
from google import genai
client = genai.Client(
http_options={
"api_version": "v1beta",
"base_url": "https://api.cometapi.com"
},
api_key=os.environ.get("COMETAPI_KEY")
)
Option B โ OpenAI-compatible client (ideal if your codebase is already OpenAI-based):
Python
from openai import OpenAI
import os
client = OpenAI(
api_key=os.environ.get("COMETAPI_KEY"),
base_url="https://api.cometapi.com/v1"
)
Both approaches route traffic through CometAPI while selecting the upstream model via the model parameter.
Make Your First Call to Gemini 3.7 Flash
Using the Interactions API style (via configured GenAI client):
Python
interaction = client.interactions.create(
model="gemini-3.7-flash",
input="Write a production-ready Three.js script that renders a realistic 3D black hole with accretion disk and gravitational lensing.",
generation_config={
"thinking_level": "medium"
}
)
print(interaction.output_text)
OpenAI-compatible chat completions style:
Python
response = client.chat.completions.create(
model="gemini-3.7-flash", # Confirm exact model ID in CometAPI dashboard if aliased
messages=[
{"role": "system", "content": "You are an expert software engineer."},
{"role": "user", "content": "Write a Python function that safely handles concurrent payment retries with proper locking."}
],
max_tokens=4096
)
print(response.choices[0].message.content)
cURL example (OpenAI-compatible):
Bash
curl https://api.cometapi.com/v1/chat/completions \
-H "Authorization: Bearer $COMETAPI_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-3.7-flash",
"messages": [
{"role": "user", "content": "Explain the key improvements in Gemini 3.7 Flash in 3 bullet points."}
]
}'
Always verify the exact model string available in your CometAPI Models dashboard, as aggregators sometimes use slightly different identifiers or aliases.
Configure Thinking Level and Advanced Generation Options
For complex coding or agent tasks, explicitly set the thinking level:
Python
interaction = client.interactions.create(
model="gemini-3.7-flash",
input="Analyze this payment processing pipeline for race conditions and rewrite the locks safely.",
generation_config={
"thinking_level": "high" # or "low" / "medium"
}
)
- low: Fastest, suitable for real-time chat or simple drafting.
- medium (default): Best balance for most coding and agentic work.
- high: Maximum reasoning depth and tool use; higher token/cost consumption.
Add Multimodal Inputs (Images, PDFs, Video, Audio)
Gemini 3.7 Flash natively accepts mixed modalities. Example with an image + text prompt (using the GenAI client):
Python
from google.genai import types
# Assume image bytes or file path handled appropriately
response = client.models.generate_content( # or interactions equivalent
model="gemini-3.7-flash",
contents=[
types.Part.from_bytes(data=image_bytes, mime_type="image/jpeg"),
"Describe the UI design system in this mockup and generate matching React + Tailwind code."
]
)
Similar patterns work for PDF, video, and audio inputs. This is powerful for design-to-code, document Q&A, and video analysis workflows.
Implement Function Calling / Tool Use
Declare tools in the request and let the model decide when to call them. CometAPI passes these through to the underlying Gemini backend. Follow the official Gemini function-calling schema (name, description, parameters as JSON Schema). After receiving a function call, execute the tool and return the result in a subsequent turn.
API Parameters for Gemini 3.7 Flash
When calling via the Interactions API (recommended), key parameters include:
- model: "gemini-3.7-flash" (required)
- input: String or structured content (text + multimodal parts)
- generation_config (optional object):
- thinking_level: "low" | "medium" | "high" (default medium)
- Other supported config fields for structured outputs, safety, etc.
- tools / function declarations for tool use
- system instructions (via system role or dedicated field depending on client)
- Environment / agent settings when using managed agents (e.g., Antigravity)
Native generateContent style calls remain available but the Interactions API is preferred for full feature access and agent orchestration.
Token counting, caching (implicit + explicit), batch inference, and priority/flex options are supported.
The most important parameters and configuration concepts are summarized below.
| Parameter | Purpose | Gemini 3.7 Flash guidance |
|---|---|---|
| model | Select model | gemini-3.7-flash |
| input | User instruction in Interactions API | Required |
| generation_config | Generation controls | Use supported Gemini 3.x fields |
| thinking_level | Controls reasoning effort | low, medium, high |
| contents | Gemini generateContent input | Used with Gemini-format requests |
| parts | Individual content components | Text/multimodal content |
| temperature | Sampling randomness | Do not use |
| top_p | Nucleus sampling | Do not use |
| top_k | Top-K sampling | Do not use |
| thinking_budget | Older thinking control | Replace with thinking_level |
| candidate_count | Multiple candidates | Unsupported in Gemini 3.x |
| previous_interaction_id | Conversation continuity | Recommended for multi-turn Interactions API workflows |
Google's migration documentation explicitly calls out the deprecated/unsupported parameters and the new conversation pattern.
Production Best Practices and Migration Tips
- Start with thinking_level="medium" and measure quality vs latency/cost.
- Remove deprecated parameters (temperature, top_p, top_k, old thinking budgets).
- Prefer the Interactions API for agentic multi-step flows and Antigravity integration.
- For multi-model applications, keep the CometAPI base URL and simply change the model stringโzero re-authentication required.
- Test thoroughly with your specific agent loops; 3.7 Flash reduces failed loops but still benefits from clear system instructions and tool schemas.
- Combine with CometAPIโs other models (e.g., specialized image generators or alternative reasoning models) when Gemini 3.7 Flash is not the optimal choice for a sub-task.
Handle Streaming, Caching, and Batch Requests
- Streaming is supported via the standard stream flags in both OpenAI-compatible and native clients.
- Context caching (implicit and explicit) reduces cost for repeated large contexts.
- Batch and priority inference options are available for high-volume or latency-sensitive workloadsโcheck CometAPIโs current support matrix and the official Gemini consumption options.
Monitor Usage, Costs, and Errors
Use the CometAPI dashboard for real-time usage, cost tracking, and rate-limit visibility. Implement exponential backoff for 429 errors and respect any documented rate limits. Log token usage from the response metadata for accurate cost attribution.
Gemini 3.7 Flash API Migration Checklist
Before deploying an existing Gemini application, check every item below.
[ ] Change model ID to gemini-3.7-flash
[ ] Remove temperature
[ ] Remove top_p
[ ] Remove top_k
[ ] Replace thinking_budget with thinking_level
[ ] Remove candidate_count
[ ] Remove prefilled model turns
[ ] Review multi-turn conversation state
[ ] Review function-call handling
[ ] Check FunctionResponse call_id/name
[ ] Update SDK
[ ] Re-run production test suite
[ ] Benchmark low/medium/high thinking
[ ] Recalculate token costs
[ ] Test failure/retry behavior
Google's migration guide specifically recommends these changes when moving to Gemini 3.7 Flash.
FAQs
What is the Gemini 3.7 Flash API?
The Gemini 3.7 Flash API provides programmatic access to Google's Gemini 3.7 Flash model. Google positions the model for coding, agents, web development, knowledge work, and complex multi-step workflows.
How much does Gemini 3.7 Flash cost?
Through December 31, 2026, introductory pricing is $0.75 per million input tokens and $3.75 per million output tokens.
From January 1, 2027, Google says pricing becomes $1.50 per million input tokens and $7.50 per million output tokens.
Can I still use temperature with Gemini 3.7 Flash?
You should not. Google's Gemini 3.x migration documentation says temperature, top_p, and top_k are deprecated and should be removed.
Can I use Gemini 3.7 Flash through CometAPI?
CometAPI's platform currently advertises Gemini 3.7 Flash availability and provides Gemini-format and OpenAI-compatible API patterns. Because the model is newly released, developers should verify the current model page and endpoint capabilities before production deployment.
Is CometAPI better than the official Gemini API?
Neither is universally โbetter.โ The official Gemini API is the natural choice if you want Google's native ecosystem and provider-specific functionality. CometAPI is more attractive when you need a unified interface across multiple AI providers, centralized management, and easier model switching.
Final Verdict: Is Gemini 3.7 Flash Worth Using?
For developers building AI applications in 2026, Gemini 3.7 Flash deserves serious attention.
The release is less about making a chatbot marginally smarter and more about making a relatively inexpensive model better at actually doing things.
The biggest technical consideration is migration.
If your application was written around older Gemini APIs, don't simply change the model name. Remove deprecated sampling parameters, migrate to thinking_level, eliminate unsupported candidate_count, stop pre-filling model turns, and review function-calling behavior.
For teams building exclusively around Google, the native Gemini API is the obvious starting point.
For teams building a multi-model AI stack, CometAPI provides a compelling alternative: one API layer, centralized model access, and the ability to experiment with Gemini alongside other major model families without creating a separate integration for every provider.
The practical recommendation is therefore simple:
Start with Gemini 3.7 Flash at medium thinking effort, benchmark it against your real workload, then use low or high thinking selectively based on latency, quality, and cost requirements. If your product also needs multiple AI providers, evaluate the same workload through CometAPI so you can compare models without redesigning your application architecture.
That combinationโstronger agentic performance, a 1M-token context window, configurable reasoning, and aggressive 2026 pricingโmakes Gemini 3.7 Flash one of the more interesting API releases for developers building production AI agents right now.
