Windows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallOutdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchSet Gemini 3.8 Flash’s thinking_level to control how much reasoning the API may use: choose low for routine, latency-sensitive requests, keep the default medium for a general starting point, and reserve high for tasks that benefit from deeper reasoning. These levels influence reasoning depth, token use, and response time, but Google publishes no level-by-level latency benchmark, so measure your own workload before choosing a production setting.
What does thinking_level do?
Gemini 3.8 Flash uses dynamic reasoning: the model adjusts its reasoning to the request’s complexity. The thinking_level setting guides that effort. Google documents low, medium, and high; medium is the default. The model reference identifies gemini-3.8-flash as stable and lists a maximum of 1,048,576 input tokens and 65,536 output tokens. See Google’s Gemini 3.8 Flash model reference.
As an Amazon Associate I earn from qualifying purchases.
The setting is a qualitative control, not a promise of a particular response time, answer quality, or token budget. Google’s Gemini thinking guide recommends lowering thinking_level to reduce cost or latency rather than shrinking max_output_tokens.
How do you set reasoning effort in TypeScript?
Google’s JavaScript documentation demonstrates the native Gemini Interactions API with the @google/genai SDK. The same JavaScript-compatible request shape can be used in a TypeScript project:
#1 Best Overall
import { GoogleGenAI } from "@google/genai";
const client = new GoogleGenAI({});
const interaction = await client.interactions.create({
model: "gemini-3.8-flash",
input: "Summarize this incident report and identify its unresolved causes.",
generation_config: {
thinking_level: "low",
},
});
console.log(interaction.output_text);
Change "low" to "medium" or "high" to select another documented level. The example establishes the documented JavaScript request shape, but not a version-specific TypeScript declaration or compiler requirement. Check that your installed SDK version exposes the Interactions API and accepts this configuration in its current typings.
minimal is not a supported level for Gemini 3.8 Flash and returns an error. For the complete request example and guidance, see Google’s thinking guide.
Rank #2
- TypeScript implements a superset of syntax for strictly typed development, facilitating deep static analysis and enhanced development environment integration. The compiler translates source into standard script formats, ensuring parity across any runtime.
- TypeScript is ideal for front-end developers, full-stack engineers, and software architects who build large-scale web applications. It serves those looking to improve code excellence, reduce bugs through static checking, and maintain complex projects more.
- Lightweight, Classic fit, Double-needle sleeve and bottom hem
Which level should you choose?
| Level | Good starting point | Trade-off to evaluate |
|---|---|---|
low |
Routine, latency-sensitive tasks such as real-time chat, drafting, or fast data analysis. | Google says it reduces time-to-answer for these use cases; verify task success and token use on your own prompts. |
medium |
Most tasks; it is the documented default. Google also recommends it for complex coding and agentic use cases. | A general-purpose balance, not a guarantee of a particular latency or cost. |
high |
Difficult multi-step reasoning, mathematics, or work where deeper reasoning and tool orchestration matter. | May take longer and use more tokens; weigh that against task success and tool-call reliability. |
These are Google’s qualitative recommendations in its Gemini 3.8 Flash update, not comparative accuracy or speed measurements. For consequential tasks, do not select a level solely because its name sounds more thorough; test whether it improves the result enough to justify its time and token use.
How should you benchmark the trade-off?
Run the same representative prompts at each level, with the same surrounding application and tool setup. Measure end-to-end latency, billed input and output tokens, task success, errors, and tool-call reliability. Include both routine and difficult cases so an average does not hide a failure pattern that matters to your users.
- Record complete-response latency as well as time to first response if both matter to the application.
- Compare success against a defined task-specific standard, not just whether the model returned text.
- Track token use and cost alongside latency; a faster setting is not automatically cheaper for every request.
- Repeat tests on the workload and service tier you plan to deploy, then choose the lowest effort level that consistently meets your quality and reliability needs.
Google’s documentation describes the qualitative controls but does not publish comparable latency or accuracy results for each level. Any speedup or quality difference for your application therefore needs to come from your own measurements.
Why not lower max_output_tokens instead?
max_output_tokens is a hard cap that includes thought tokens. If it is too small, generation can stop while the model is still reasoning, leaving an incomplete or empty answer; Google says generated thinking tokens are still billed in that case. Lowering thinking_level is the documented way to reduce reasoning-related cost or latency without using a small output cap as a substitute. See the Gemini thinking guide.
How do reasoning levels affect API cost?
Google’s standard paid-tier rates for Gemini 3.8 Flash are scheduled to change on January 1, 2027. Through December 31, 2026, the listed rates are $0.75 per 1 million input tokens and $3.75 per 1 million output tokens. Starting January 1, 2027, the listed rates are $1.50 per 1 million input tokens and $7.50 per 1 million output tokens. Google states that output pricing includes thinking tokens, so reasoning can affect the bill even when the final answer is short.
These are published rates, not a per-request estimate. Actual charges depend on tokens consumed and the service tier. Google also lists Batch and Flex at half the standard rates during the introductory period, subject to their terms: Batch is for asynchronous processing, while Flex offers variable latency and best-effort availability. Check the current Gemini Developer API pricing page before deployment, especially around the scheduled rate change.
Best Value
Can you use reasoning_effort instead?
Google documents reasoning_effort mapping to Gemini’s thinking_level through its OpenAI compatibility interface. That is an alternative integration path; the native Gemini SDK example above uses generation_config.thinking_level. See Google’s OpenAI compatibility guide.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




