Gemini last models: temperature, top_p, and top_k are deprecated and ignored
TL;DR Highlight
Gemini 4 Argon ignores temperature, top_p and top_k; use thinking_level instead
Who Should Read
A backend developer who has tuned sampling parameters in the Gemini API and is migrating to Gemini 4 Argon
Core Mechanics
- Sampling parameters are ignored
- temperature, top_p and top_k are ignored if you send them.
- The migration checklist says to remove all three from your requests.
- thinking_level controls depth
- There are three levels: low, medium (default) and high.
- It is the main control over quality, latency and token use.
- Output limits got much bigger
- Input, thinking and output share one 1,048,576-token window.
- With background execution a single response can go past 64K, up to 1M tokens.
- Raise max_output_tokens
- The docs say Gemini 4 Argon can spend more of the limit on thinking than earlier models.
- If your limit is under 32K, raise it to at least 32,768.
- Explicit caching is gone
- cachedContents / caches.create is not supported.
- Implicit caching is on by default for prompts of 4,096+ tokens, with a 95% discount on cache hits.
- Intro price ends 2026-11-30
- Input is $2/1M and output (including thinking) is $10/1M tokens.
- From December 1 it doubles to $4 input and $20 output.
Community Reactions
- Doubts about prompt-only determinism
- One commenter questioned whether a system instruction is guaranteed to work better than top_k or top_p.
- Another said it amounts to a mini Agent.md.
- Pain for diversity-heavy workloads
- A commenter said parallel research sub-agents need diverse hypotheses, otherwise running five equals running one.
- They said the latest OpenAI models did the same, so they add random variation to prompts to compensate.
- Reasoning models explanation
- A commenter said reasoning models are trained around specific configurations, so sampling is replaced by reasoning effort.
- Another guessed that RL training makes models brittle to parameter changes.
- Other providers are doing it too
- One comment said sonnet-5 also drops temperature.
- Another said these parameters have been nearly useless in recent model generations and often made results worse.
How to Apply
- Remove sampling params from requests
- Search your codebase today for temperature, top_p and top_k in gemini-4-argon calls and delete them.
- Clean them up now since later generations return HTTP 400.
- Run evals at all three thinking levels
- Run your existing eval set at low, medium and high.
- Pick the lowest level that meets your quality bar.
- Raise max_output_tokens and timeouts
- Raise limits under 32K to at least 32,768.
- Use background execution or set HTTP timeouts to 15+ minutes for hard prompts.
- Drop explicit cache calls
- Remove calls that create or reference cached_content.
- Put the shared prefix first so prompts of 4,096+ tokens get implicit caching discounts.
Try It
# Paste into your Gemini API code and run in Python (pip install google-genai, set GEMINI_API_KEY)
from google import genai
client = genai.Client()
for level in ["low", "medium", "high"]:
interaction = client.interactions.create(
model="gemini-4-argon",
input="{{질문}}",
generation_config={"thinking_level": level, "max_output_tokens": 32768},
)
print(level, interaction.usage)
print(interaction.output_text[:300])
# Next: replace {{질문}} with a real eval question and compare quality and token use per level.Terminology
Related Papers
A Beginner's Guide to Local AI with Inkling, Qwen, and Unsloth
Install Unsloth Desktop, load a quantized Qwen model, and share a private ChatGPT-like AI on your home LAN.
Muru – AI-assisted Rust server for Python apps by mod_WSGI's creator
mod_wsgi's creator is building Muru, an AI-assisted Rust ASGI/WSGI server, documenting it in public
87% of the Anthropic power will come from gas and 11% from coal in 2028
Analysis of Anthropic's contracted data centers: 87% gas, 11% coal power in 2028
Anthropic’s Nasdaq debut
Anthropic listed on Nasdaq and closed its first day below its opening price.
OpenAI still has a WebRTC Problem
WebRTC drops late audio, hurting voice AI; MoQ retransmits and buffers instead
Gemini 4 Neon
Gemini 4 Neon cuts cost per task 32% versus Carbon, at $3 input and $15 output per million tokens
AI is killing All About Berlin
After Google AI Overviews, a Berlin guide site lost 70-75% of its traffic.
Not Everything Needs an LLM
PostHog used small decision models to skip 98.7% of expensive LLM calls