# Gemini 4 Hydrogen, xhigh thinking and google-genai 3: what changed for Gemini API developers

In November 2026 Google shipped Gemini 4 Hydrogen as the cheapest Gemini 4 tier, an xhigh thinking level, experimental Live Interactions and a major google-genai 3 release that changes the default API version and HTTP client. This guide explains the line-up, prices and the migration traps.

Google's Gemini API has changed more in November 2026 than in most whole quarters. On 6 November the official Python SDK, `google-genai`, reached version 3.0.0 and switched its default API version from `v1beta` to `v1` and its HTTP client from `httpx` to `httpx2`. Over the next twelve days it added Gemini 4 Carbon and Gemini Omni 1.2 Flash to its model lists, an `xhigh` thinking level, Gemini 4 Hydrogen, a Decisions API, tool search types and experimental Live Interactions over WebSocket and WebRTC.

For developers, two things matter most. First, Gemini 4 now has four tiers with different prices, and the newest, Hydrogen, is the cheapest at $1.50 per million input tokens. Second, the SDK upgrade can break working code without any change on your side, because some model aliases only exist on the old API version.

This article explains the line-up, what thinking levels do to cost and quality, the parts of the SDK that changed and how to migrate safely. The site has already covered [Gemini 4 Neon's tiers, thinking levels and caching](/articles/gemini-4-neon-thinking-levels-caching-subagents) and [Gemini 4 Carbon on MathArena](/articles/gemini-4-carbon-matharena-leaderboard); this piece focuses on Hydrogen and the SDK.

## What happened

### google-genai 3.0.0 changes the defaults (6 November 2026)

The release notes put the breaking changes in bold: "Default Gemini Developer API version is now `v1` (was `v1beta`)" and "Default HTTP client is now `httpx2` (was `httpx`), and `httpx` is no longer installed by default". The README adds that the `gemini-flash-latest`, `gemini-flash-lite-latest` and `gemini-pro-latest` aliases "exist only on `v1beta`". Enterprise (Vertex AI) clients are unaffected and still default to `v1beta1`.

### Gemini 4 Carbon and Omni 1.2 Flash join the model lists (10 November 2026)

Version 3.1.0 added `gemini-4-carbon` and `gemini-omni-1.2-flash` to the Interactions model enum, made Omni 1.2 Flash "the `gemini-api video` default", added `proactive_video` to the Live API's proactivity settings and added `xhigh` to the Interactions thinking levels.

### Decisions API and xhigh everywhere (11 and 12 November 2026)

Version 3.2.0 added "the Decisions API (`client.decisions.create`)". Version 3.3.0 added "`XHIGH` and `xhigh` to `ThinkingLevel` across GenAI SDKs and CLI" and "gemini-4-hydrogen to Model enum".

### Tool search and Live Interactions (16 to 18 November 2026)

Version 3.4.0 added "tool search types to the Interactions SDKs". Version 3.5.0 added "experimental Live Interactions (WebSocket and WebRTC) SDK support" and noted that "the Live API and caches are not available on v1". Version 3.6.0 added "tool retrieval and function result schemas" to the public SDK.

## The Gemini line-up today

The table uses the prices and context limits that Google's pricing pages feed into the LiteLLM catalogue. Gemini 4 models list a 1,048,576-token input limit. Output limits for Gemini 4 were not clear in our sources, so we leave them out.

| Model ID | Position | Input limit | Input / output per 1M tokens | Cached input per 1M | Modalities in | Output | Licence |
|---|---|---|---|---|---|---|---|
| gemini-4-neon | Top Gemini 4 tier | 1,048,576 | $3 / $15 | $0.15 | Text, image, audio, video, PDF | Text | Proprietary, API only |
| gemini-4-carbon | Gemini 4 tier | 1,048,576 | $2 / $10 | $0.10 | Text, image, audio, video, PDF | Text | Proprietary, API only |
| gemini-4-argon | Gemini 4 tier | 1,048,576 | $2 / $10 | $0.10 | Text, image, audio, video, PDF | Text | Proprietary, API only |
| gemini-4-hydrogen | Lowest-priced Gemini 4 tier | 1,048,576 | $1.50 / $7.50 | $0.075 | Text, image, audio, video, PDF | Text | Proprietary, API only |
| gemini-3.8-flash | Fast general model | 1,048,576 | $0.75 / $3.75 | $0.075 | Text, image, audio, video, PDF | Text | Proprietary, API only |
| gemini-omni-1.2-flash | Video and audio generation | 131,072 | $1.50 / $9 | n/a | Text, image, video | Text, video, audio | Proprietary, API only |

Google's own naming does not say which Gemini 4 tier is "best". The price is the clearest signal of where Google places each one: Neon at the top, Carbon and Argon in the middle at the same price, and Hydrogen at the bottom. For open weights from Google, see the Gemma family, which we cover separately.

Hydrogen's position is easy to state in numbers. It costs 25% less than Carbon or Argon and half as much as Neon on both input and output. It still costs twice as much as Gemini 3.8 Flash on input. In other words, Hydrogen is the cheapest way to get a Gemini 4 model, not the cheapest Gemini.

## How thinking levels work

A reasoning model can "think" before it answers by writing hidden or summarised reasoning tokens. Thinking levels set how much of that it does. In the Python SDK the `ThinkingLevel` enum now has five working values: `MINIMAL`, `LOW`, `MEDIUM`, `HIGH` and `XHIGH`, plus an unspecified default. The enum's own description is plain: "The number of thoughts tokens that the model should generate."

Think of it as the difference between a quick answer from a colleague in the corridor and the same colleague going away to work it out on paper. The paper version is usually better on hard problems and always slower and more expensive.

### Why xhigh changes the bill

Thinking tokens are billed as output. Take a request to Gemini 4 Hydrogen with 20,000 input tokens and a 1,000-token visible answer:

| Thinking tokens | Input cost | Output cost (answer plus thinking) | Total |
|---|---|---|---|
| 0 (minimal) | 0.02M × $1.50 = $0.03 | 0.001M × $7.50 = $0.0075 | $0.0375 |
| 5,000 | $0.03 | 0.006M × $7.50 = $0.045 | $0.075 |
| 20,000 | $0.03 | 0.021M × $7.50 = $0.1575 | $0.1875 |

The thinking counts are illustrative; the real number depends on the task and the level. The pattern holds whatever the numbers: on reasoning-heavy requests, output dominates, and moving from `low` to `xhigh` can multiply cost several times. The same Neon request with 20,000 thinking tokens would cost 0.02 × $3 + 0.021 × $15 = $0.375, twice the Hydrogen figure.

This is why a lower tier at a higher thinking level can sometimes match a higher tier at a lower level for less money, and sometimes cannot. Only your own evaluation tells you which. Our pages on [reasoning models](/tools/reasoning-models) and [test-time compute](/tools/test-time-compute) explain the trade-off in more depth.

### Setting the level in code

```python
from google import genai
from google.genai import types

client = genai.Client()  # reads GEMINI_API_KEY

resp = client.models.generate_content(
    model="gemini-4-hydrogen",
    contents="Find the bug in this function and explain it: ...",
    config=types.GenerateContentConfig(
        thinking_config=types.ThinkingConfig(thinking_level="xhigh"),
    ),
)
print(resp.text)
print(resp.usage_metadata)  # includes thinking token counts
```

Log `usage_metadata` on every call. It is the only way to see how many thinking tokens a level really produces on your workload.

## What google-genai 3 breaks and how to migrate

A major version number is a warning label. In this case there are three traps.

### Trap 1: the API version moved under you

Code that never set an API version used to talk to `v1beta`. After upgrading it talks to `v1`. Most calls work the same. Three things do not:

- The `-latest` aliases for Flash, Flash-Lite and Pro exist only on `v1beta`. A call with `gemini-flash-latest` fails on `v1`.
- The changelog says "the Live API and caches are not available on v1". If your app uses context caching or Live, it needs `v1beta`.
- The changelog for 3.4.0 notes that "some models are not available on v1".

The fix is one line. Either set the environment variable `GOOGLE_GENAI_API_VERSION=beta`, or pass `types.HttpOptions(api_version='v1beta')` when you build the client. The README says the explicit option "takes precedence". Better still, replace `-latest` aliases with explicit model IDs, which protects you from silent model changes as well.

### Trap 2: a new HTTP library

The SDK now uses `httpx2` and no longer installs `httpx`. HTTPX2 is Pydantic's continuation of the HTTPX library, which its README says Pydantic took over "so that users have a reliably maintained path forward", with support for HTTP/1.1, HTTP/2 and WebSockets. The README says `import httpx2 as httpx` "is sufficient in most cases", but anything you pass into `HttpOptions`, such as timeouts, transports or auth classes, and any transport exceptions you catch, must now come from `httpx2`. A `try/except httpx.TimeoutException` block silently stops catching timeouts. To go back, install `google-genai[httpx]` and set `GOOGLE_GENAI_HTTP_CLIENT=httpx`.

### Trap 3: certificates

`httpx2` verifies TLS certificates against the operating system's trust store instead of the `certifi` bundle when `SSL_CERT_FILE` and `SSL_CERT_DIR` are not set. In corporate networks with inspection proxies this can fix errors; in minimal containers with no system certificates it can cause them. Test in the same container image you deploy.

### What else arrived

Beyond models, the November releases added building blocks for agents. Tool search types let a model find the right tool among many instead of receiving every definition up front, which saves tokens. The Decisions API offers structured decisions. Live Interactions bring the Interactions model to real-time WebSocket and WebRTC sessions, marked experimental. If you are building agents on Google's stack, our pages on [Google ADK](/tools/google-adk), [function calling](/tools/function-calling) and [Vertex AI](/tools/vertex-ai) cover the surrounding pieces.

## What it means in practice

Gemini 4 Hydrogen gives price-sensitive teams a way onto the Gemini 4 generation without paying Carbon or Neon prices. Whether it is good enough depends on the task; Google has not, in the sources we could check, published a Hydrogen benchmark table, and we found no independent results for it yet. Run your own evaluation before switching.

The `xhigh` thinking level makes the cost spread inside a single model wider. A team can now buy more reasoning on demand for hard requests and keep easy ones at `low` or `minimal`. That works best with a [router](/tools/llm-routing) or a simple rule, such as raising the level only after a first attempt fails a check.

The upgrade also changes how you should think about model choice. With four Gemini 4 tiers, five thinking levels and two API versions, the number of possible configurations is large. A practical way to tame it is a small grid test: pick 50 to 100 real requests from your logs, run them on Hydrogen and Carbon at `low` and `high`, and score the answers with the same checks you use in production. Four runs give you a cost and quality point for each cell, which is usually enough to decide a default and an escalation path. Keep the grid and re-run it whenever Google adds a tier or changes a price, because the best cell can move.

The same grid protects you against quiet regressions. If a later SDK release changes defaults again, a failing cell shows it before your users do. Our guide to [LLM-as-judge evaluation](/tools/llm-as-judge) explains how to score open-ended answers when there is no single right output.

The SDK upgade is the most urgent item. Any service that pins `google-genai` loosely, for example `>=2`, will pick up version 3 on its next build and may lose `-latest` aliases, caching and Live in one go.

## What to do now

1. **Pin the SDK version.** Set an exact or upper-bounded version of `google-genai` in every service until you have tested version 3.
2. **Replace -latest aliases.** Use explicit model IDs such as `gemini-3.8-flash` or `gemini-4-hydrogen` so the API version change cannot break model lookup.
3. **Set the API version explicitly.** If you use context caching or Live, pass `api_version='v1beta'` or set `GOOGLE_GENAI_API_VERSION=beta`.
4. **Audit exception handling.** Search your code for `httpx.` and move timeout and transport handling to `httpx2`.
5. **Evaluate Hydrogen against Carbon.** Run your task set on both at the same thinking level and compare quality per dollar.
6. **Measure thinking tokens.** Log `usage_metadata` and calculate the real cost of `high` and `xhigh` on your traffic before making them defaults.
7. **Use thinking levels selectively.** Default to `low` or `medium` and raise to `xhigh` only for requests that fail a validation step.
8. **Test certificates in production images.** Run one request from your real container to confirm `httpx2` trusts your certificate chain.

## Risks and open questions

**Hydrogen has no verified independent benchmarks yet.** We found no Artificial Analysis, LMArena or Vals results for it in the sources we could check. Treat any quality claims as unconfirmed.

**Output limits for Gemini 4 are unclear.** The catalogue we used lists an output limit equal to the input limit, which looks like a placeholder. Check Google's model page before relying on very long outputs.

**Breaking defaults hit loosely pinned services.** The move to `v1` and `httpx2` is reasonable, but it lands on everyone who upgrades without reading the notes.

**Experimental features may change.** Live Interactions are marked experimental, and the Interactions API is evolving quickly; several names were deprecated in 3.4.0.

**Watch next:** independent evaluations of Gemini 4 Hydrogen, whether context caching and Live arrive on the `v1` API, and how `xhigh` thinking changes leaderboard positions on cost-adjusted benchmarks such as the [SWE-bench cost per task simulation](/ai-simulations/swe-bench-confidence-cost-per-task).

## Frequently asked questions

### What is Gemini 4 Hydrogen?

It is the lowest-priced Gemini 4 model, added to the google-genai SDK's model enum on 12 November 2026. Google lists it at $1.50 per million input tokens and $7.50 per million output tokens, with a 1,048,576-token input limit and text, image, audio, video and PDF input.

### What does the xhigh thinking level do?

It asks the model to generate more thinking tokens than `high` before answering. That can improve hard reasoning and coding tasks, but thinking tokens are billed as output, so it raises cost and latency.

### Why did my code break after upgrading google-genai?

Version 3 changed the default API version to `v1` and the HTTP client to `httpx2`. The `-latest` model aliases, context caching and the Live API are not available on `v1`, and exceptions from the old `httpx` package are no longer raised.

### How do I go back to the old behaviour?

Set `GOOGLE_GENAI_API_VERSION=beta` or pass `types.HttpOptions(api_version='v1beta')` to restore the API version. To restore `httpx`, install `google-genai[httpx]` and set `GOOGLE_GENAI_HTTP_CLIENT=httpx`.

### Is Gemini 4 Hydrogen cheaper than Gemini 3.8 Flash?

No. Gemini 3.8 Flash costs $0.75 per million input tokens and $3.75 per million output tokens, half of Hydrogen's prices. Hydrogen is the cheapest entry into the Gemini 4 generation, not the cheapest Gemini model overall.

## Summary

In November 2026 Google released google-genai 3, which moves the Gemini Developer API default to `v1` and the HTTP client to `httpx2`, and then added Gemini 4 Carbon, Gemini Omni 1.2 Flash, Gemini 4 Hydrogen, an `xhigh` thinking level, the Decisions API, tool search types and experimental Live Interactions. Hydrogen is the cheapest Gemini 4 tier at $1.50 and $7.50 per million tokens. Thinking levels now span five settings, and because thinking is billed as output, they can change cost several times over. Pin the SDK, replace `-latest` aliases, set the API version explicitly where you use caching or Live, and measure Hydrogen and `xhigh` on your own tasks before you switch.

## Sources

- [Google: python-genai CHANGELOG](https://github.com/googleapis/python-genai/blob/main/CHANGELOG.md)
- [Google: python-genai README and version 3 migration notes](https://github.com/googleapis/python-genai/blob/main/README.md)
- [Google: python-genai types.py ThinkingLevel definition](https://github.com/googleapis/python-genai/blob/main/google/genai/types.py)
- [BerriAI: LiteLLM model prices and context windows](https://github.com/BerriAI/litellm/blob/main/model_prices_and_context_window.json)
- [Pydantic: HTTPX2 README](https://github.com/pydantic/httpx2/blob/main/README.md)
- [Google DeepMind: Gemma repository](https://github.com/google-deepmind/gemma/blob/main/README.md)
