Gemini 4 Hydrogen: Pricing, 1M Context, Thinking Levels, and Migration Notes
Gemini 4 Hydrogen is Google's execution-tier model for everyday coding, tool calling, and multi-step agentic work, priced at $1.50 per million input tokens and $7.50 per million output tokens with a shared 1,048,576-token context window and four thinking levels from low to xhigh. Migrating from Gemini 3.8 Flash requires removing thinking_budget and cached_content, setting thinking_level explicitly, and preserving thought signatures, while long decode and continuation_token remain v1beta1-only.
View 5 referencesAllow the functional cookie to save your likes. Privacy details
Where Gemini 4 Hydrogen Sits in the Gemini 4 Lineup
On November 12, 2026, Google released Gemini 4 Hydrogen and opened the entire Gemini 4 series to users at every tier. Hydrogen is positioned as the execution model: everyday code writing, running tests, calling tools, and multi-step agentic work.
The other two models in the family split the job differently. Gemini 4 Carbon handles the hardest architectural decisions, complex debugging, and security audits, and it burns more thinking tokens per turn. Gemini 4 Argon covers most long-horizon tasks while spending fewer tokens than Carbon. Google's own guidance is to give the planning turns to Carbon and the execution turns to Hydrogen.
Two properties make Hydrogen the outlier in its family. It is the only one of the three that offers a free API quota (rate limited), and it is the only one that supports the xhigh thinking level. The Hydrogen launch post on Google's developer blog covers the release in detail.
Pricing and Context Window
| Item | Gemini 4 Hydrogen | Gemini 4 Carbon | Gemini 4 Argon |
|---|---|---|---|
| Per 1M input tokens | $1.50 | $2 (before 11/30), then $4 | $2 (before 11/30), then $4 |
| Per 1M output tokens | $7.50 | $10 (before 11/30), then $20 | $10 (before 11/30), then $20 |
| Unified context | 1,048,576 tokens | 1,048,576 tokens | 1,048,576 tokens |
| Thinking levels | low / medium / high / xhigh | low / medium / high | low / medium / high |
| Default thinking level | high | medium | medium |
| Free API quota | Yes (rate limited) | No | No |
Hydrogen is priced flat across the entire 1M-token window, with no tiered pricing that kicks in at some larger threshold. Carbon and Argon both double to $4 / $20 after November 30, so Hydrogen's unit-cost advantage widens from roughly 25% to 62.5%.
One detail is easy to get wrong: the 1M tokens are a single budget shared by input and output, not 1M for each. The larger your input, the less room is left over for thinking and for the answer itself.
Thinking Levels and How to Choose Them
The four levels split along clear lines:
low— high-throughput classification, routing, summarization, structured metadata extractionmedium— routine coding, tool calling, document Q&A, video understandinghigh(default) — multi-step agentic tool loops, code generation, architecture refactoring, complex multimodal analysisxhigh— deep reasoning, mathematical proofs, scientific analysis, the most complex multi-file software engineering tasks
Google's documentation lists a recommended use for each level and warns that the reasoning tokens produced by high and xhigh count toward max_output_tokens. See the Developer's guide to Gemini 4 Hydrogen.
Measured Scores: Where the Real Gap Sits
In an Artificial Analysis Intelligence Index v5.0.1 snapshot, Hydrogen high scores 51, Argon high scores 50, Hydrogen xhigh reaches 54, and Carbon high sits at 60. The score gap is narrow. The gap that actually matters is time and money: on the same test task, Hydrogen high averages 7.8 minutes and about $1.87 per task, while Argon high takes 30.1 minutes and about $4.97. The full analysis of that measurement snapshot also records what xhigh costs Hydrogen itself: time to first token stretches from 16.3 seconds to 42.9 seconds, per-task cost climbs to $3.16, and it ranks last on the verbosity ranking.
Two caveats on that data. It is a live snapshot taken on November 13, 2026 covering 78 models, so it drifts over time. Vendor self-reported benchmark scores are also self-measured and should not be treated as independent conclusions. Taken together, the extra 3 points that xhigh buys are usually not worth the extra spend and the extra wait.
Side-by-side comparisons of the three variants are collected at AI HubMix's Carbon vs Hydrogen vs Argon breakdown and BeatAPI's per-model cost analysis.
Migrating from Gemini 3.8 Flash
The behavior changes cluster in a handful of places, and copying old code across unchanged gets you an HTTP 400.
Input and output limits are merged. Gemini 3.8 Flash kept separate input and output limits; Hydrogen unifies them into a shared 1,048,576-token budget.
The default thinking level moves from medium to high. To keep the old inference latency, set thinking_level="MEDIUM" explicitly.
thinking_budget is no longer supported. Every request that uses it returns HTTP 400. Use thinking_level instead. thinking_level="MINIMAL" also returns 400.
Explicit context caching is not supported. cached_content cannot be used, so only implicit caching is available: it engages automatically once a shared prefix reaches 4,096 tokens (Gemini 3.8 Flash used 6,144), and durable caching is on by default. Put static content at the very front of the prompt.
Sampling parameters are ignored. Custom values for temperature, top_p, and top_k are dropped by the backend. Control reasoning depth with thinking_level and structured output with response_schema. frequency_penalty, presence_penalty, and candidate_count > 1 all return 400.
Thought signatures must be preserved. Keep thought_signature across turns, on both functionCall parts and the final text part. With parallel function calls, only the first functionCall may carry a signature. If your application compresses or rewrites older context, set prefix_mismatch_behavior="DROP".
# BEFORE - Gemini 3.8 Flash
config = {
"model": "gemini-3.8-flash",
"thinking_budget": BUDGET, # HTTP 400 on Hydrogen
"cached_content": CACHE_HANDLE, # HTTP 400 on Hydrogen
"temperature": TEMPERATURE, # silently ignored on Hydrogen
"top_p": TOP_P, # silently ignored on Hydrogen
"top_k": TOP_K, # silently ignored on Hydrogen
}
# AFTER - Gemini 4 Hydrogen
config = {
"model": "gemini-4-hydrogen",
"thinking_level": "HIGH", # low | medium | high | xhigh
"response_schema": RESPONSE_SCHEMA,
# "prefix_mismatch_behavior": "DROP", # only if you rewrite older context
}
The migration reduces to a short list: change the model ID to gemini-4-hydrogen, upgrade the SDK, replace the thinking configuration, delete cached_content and the deprecated parameters, and verify that thought signatures survive the round trip.
Three Pitfalls to Know Before You Ship
Long decode is only available on v1beta1. The total window is 1M tokens, but a single foreground segment still generates at most 65,536 tokens. Past that you continue with a continuation_token, and continuation_token is supported only on v1beta1. The SDK defaults to v1beta1 unless you explicitly specify api_version='v1'.
Long output does not belong in latency-sensitive paths. Google's documentation explicitly excludes ordinary chat, question answering, summarization, classification, information extraction, fixed-length writing, and multi-turn agents whose tool calls are short from the long-decode use case.
Token counts accumulate across continuations. Every continuation segment re-prefills the prompt and the tokens generated so far, so usage.total_input_tokens grows. Do not use the accumulated input count as the trigger for context compaction; use usage.initial_input_tokens, and compact after the current turn finishes. Note also that even if a later segment fails, the segments that already completed are still billed at the end.
# Long decode accounting (v1beta1 only)
total_input_tokens = usage.total_input_tokens # grows with every continuation segment
initial_input_tokens = usage.initial_input_tokens # use this one for compaction decisions
When Hydrogen Is the Right Choice
Hydrogen fits repository-scale code changes and debugging, interactive web development, multimodal document work (PDFs, tables, charts, audio and video), parallel subtask workers, and agents that need tool-calling loops.
It does not fit architecture decisions that require long-horizon deep reasoning, formal proofs and scientific analysis, or anything that needs the top quality tier among the four thinking levels — leave those to Carbon.
If your application already runs on Gemini 3.8 Flash and already passes your acceptance criteria, do not migrate just because a newer model name exists. Run Hydrogen high against your own evaluation tasks first and see whether the acceptance results actually improve.
Lifecycle and Availability
Hydrogen is a short-term GA release with a minimum 45-day retirement notice period. Carbon and Argon have no publicly disclosed shutdown dates. If production traffic depends on Hydrogen, it is worth making model-version replacement a routine practice instead of waiting for a shutdown notice. Model version and lifecycle details live on the Model versions and lifecycle page of the Google Cloud documentation.
References
- Gemini 4 Hydrogen: everyday coding and agentic workflows for developers(Google 官方博客)www.gweb-uniblog-publish-prod.appspot.com
- Developer's guide to Gemini 4 Hydrogen(Google Cloud 文档)docs.cloud.google.com
- Gemini 4 Carbon vs Hydrogen vs Argon: Which Model for Which Job?aihubmix.com
- Gemini 4 Hydrogen leads its sibling by a point. The gap that matters is elsewheretraictory.com
- Gemini 4 Hydrogen vs Gemini 4 Argon vs Gemini 4 Carbon: How to Choose and What Each Costsbeatapi.io