Illustration of an app config changing its model string from gemini-3.8-flash to gemini-4-hydrogen with a migration checklist beside it
Illustration by AIUseFlow · credits

Gemini 4 Hydrogen Migration Guide: Move Your App Off Gemini 3.8 Flash Without Surprises

Also available in Hindi: यह लेख हिंदी में पढ़ें

Gemini 4 Hydrogen is Google's new fast model for everyday coding and agent work, and Google calls it the recommended upgrade from Gemini 3.8 Flash. It launched on 12 November 2026 in AI Studio and the Gemini API, on both the free and paid tiers. Changing the model name is easy. The settings around it are where apps break, so here is the checklist.

What you get

The migration checklist

Six changes to make when moving from Gemini 3.8 Flash to Gemini 4 Hydrogen
Based on Google's "What's new in Gemini 4 Hydrogen" guide (12 Nov 2026). Illustration, not a screenshot.
  1. Change the model string from gemini-3.8-flash to gemini-4-hydrogen.
  2. Remove low output caps. Hard-coded limits such as 8,192 can cut answers short, because the cap now covers thinking plus output. Raise it to 65,536 or remove it.
  3. Set the thinking level on purpose. Hydrogen defaults to high, not medium, and sending minimal returns an error.
  4. Drop explicit caching. cachedContents and caches.create are not supported. Implicit caching runs on prompts of at least 4,096 tokens and gives a 95% discount on cached input.
  5. Delete temperature, top_p and top_k. The server ignores them.
  6. Declare tools properly. Use function calling or structured output, not JSON tool calls invented in a system prompt, which can fail with MALFORMED_FUNCTION_CALL.

Which thinking level to use

Gemini 4 Hydrogen thinking levels from low to xhigh
Based on the Gemini API docs. Illustration, not a screenshot.
Level Good for
low Fast chat, bulk processing
medium Interactive coding, live UI work
high Default: complex coding, agents, documents
xhigh Hard multi-step problems only

Google's advice: run your test set at all four levels, then keep the lowest one that meets your quality bar. xhigh costs more tokens and can overthink simple prompts.

Watch the bill

Google bills every token the model processes, including thinking. A higher default level can use more output tokens even with the same prompt. Compare a day of usage before and after. For replies longer than 64K tokens, set background to true and raise max_output_tokens.

Related reading: Gemini 2.5 retirement checklist, Gemini 4 Carbon explained, Gemini CLI tutorial and the Google AI Studio tool page.

Sources

FAQ

Is Gemini 4 Hydrogen free to try?

Yes. It is on the free tier of the Gemini API and in Google AI Studio, with rate limits.

Do I need to rewrite my prompts?

Usually not. Change the model ID and settings first, then test your prompts.

Should I use Hydrogen or Carbon?

Use Hydrogen for everyday coding and agent steps. Google suggests Carbon for the hardest planning and debugging, and the two can be mixed in one session.

Why did my answers get cut off after switching?

Check max_output_tokens. On Hydrogen it limits thinking and output together, so old low caps are too small.

About the author

Suraj Kumar builds and edits AIUseFlow, a directory of AI tools for vibe coders, agent builders and creators. Guides like this one walk through a practical workflow with cited sources — not a news wire rewrite. How we rank tools.

Get the weekly stack

Rank movers and new AI tools for builders, once a week. Free, no spam, unsubscribe anytime.