Gemini 4 Hydrogen
Chat with Gemini 4 Hydrogen online or call it through an OpenAI-compatible API. Google's fast Gemini 4 model for coding and agents, with a 1M-token context.
A codebase you don't know is a risk, not a hurdle. The plan should burn down that risk in order: understand, run, trace, spike, then make the change small enough that "production-ready" is a property you can demonstrate, not a hope.
Here are the first five steps, with the evidence you collect at each.
Step 1 — Get it building and the baseline green (half day)
Read the README, the manifest(s), the CI config, and any architecture docs. Boot the app locally, run the full test suite, run the linter/typechecker.
Evidence: The exact commands that reproduce a clean build and a passing test suite from a fresh checkout (recorded output, not memory of it). A one-page map you wrote yourself: where the entry points are, the layers, the build/test toolchain, and the main risks to your feature (e.g. "this touches cron jobs and payments").
Step 2 — Trace the smallest end-to-end slice that resembles your feature (half day)
Don't start with your feature. Pick a neighboring one that already works and follow it from entry to persistence. Note the conventions along the way: how errors surface, how config is injected, how logging is done, how tests are written.
Evidence: An annotated trace — file → function → what it does — for that slice. A written list of "conventions I must follow" (not intuitions; things you observed in real code). A named shortlist of the 3–5 files you will actually touch. If you can't produce this trace, you're not ready to write code.
Step 3 — Spike the core path (day 2)
Build the ugly version: hardcoded values, no error handling, no tests. The purpose is to confirm the path you traced in step 2 is real and to surface what you didn't know you didn't know.
Evidence: A working spike demonstrating the feature's central data path, alongside a list of every assumption the spike broke and what you corrected. That correction list is the most valuable document in this whole plan.
Step 4 — Write the contract before the code (half of day 2 / day 3)
Once the spike proves the path, pin down what production needs: the inputs/outputs, the error cases, where it sits in the conventions from step 2. Then write the tests — they'll be red, but they're the specification.
Evidence: A one-to-two-page design doc, an agreed interface/API shape (with the team if there is one), and a red test suite that encodes intended behavior. If you can't write the contract without consulting the code, you haven't finished step 2.
Step 5 — Implement in small, verified increments (days 3–4)
Replace the spike with the real thing in small commits, each one keeping the suite green, leaning on the existing patterns. Run lint/tests/typecheck per commit — CI, not just locally — and exercise the actual path against a real instance (staging or a local environment that isn't stubbed).
Evidence: A branch with progressive commits, each green in CI; coverage on the new code; something that proves it works against reality (a test result, a log trace, a screenshot); and a review by at least one person who knows the codebase. The review counts as evidence — an unfamiliar codebase has tribal knowledge you cannot extract from the files alone.
Steps 6+ would be the things that actually make it "shipped": a migration plan and its rollback, feature flagging, observability, the release and post-release verification. But the first five get you to a reviewed, green, working slice in staging — which is the point at which you can say "this will work in production" with evidence behind it, instead of a guess.
Runs in this page. Sign-in and credits are required.
Model details
Use the same model key in Playground, API requests, and internal workflows.
- Model ID
- gemini-4-hydrogen
- Provider
- Protocol
- OpenAI Chat Completions
- Context window
- 1,048,576 tokens
- Max output
- 65,536 tokens
- Input tokens
- 45 credits / 1M tokens
- Output tokens
- 225 credits / 1M tokens
- Cache read
- 2.25 credits / 1M tokens
- Cache write
- 0 credits / 1M tokens
What Gemini 4 Hydrogen is
Gemini 4 Hydrogen is Google's default general-purpose Gemini 4 model, adapted from Gemini 4 Carbon for speed and efficiency. Google built it for everyday coding and agentic work, and recommends it as the upgrade from Gemini 3.8 Flash.
12 November 2026
1,048,576 tokens, shared by input, thinking, and output
65,536 tokens per request
low, medium, high, and xhigh; Google's default is high
March 2026
gemini-4-hydrogen
What Gemini 4 Hydrogen is good at
Google positions Hydrogen for fast, disciplined execution, on its own or as a worker next to a larger model. The points below are from Google's documentation and model card.
Everyday coding
Iterative repository work, debugging, web development, and quick prototypes. Google says Hydrogen writes cleaner code than Gemini 3.8 Flash and is now its default model for everyday coding.
Fewer made-up answers
Google reports more than 5x fewer fabricated claims than Gemini 3.8 Flash. When context is missing, Hydrogen is tuned to say so instead of guessing.
Tool-using agents
Hydrogen batches read and search tool calls in parallel and recovers better when a tool call fails. Google made it the default model for its Antigravity agent.
Worker for a larger model
Let Gemini 4 Carbon plan interfaces or clear hard roadblocks, then hand code edits, parallel subtasks, and test runs to Hydrogen to keep latency and token use down.
Gemini 4 Hydrogen benchmarks
Scores Google published in the Gemini 4 Hydrogen model card in November 2026, next to Claude Sonnet 5.5 and GPT-6.1 Terra. These are vendor-reported, not independent results.
Knowledge work
Agents' Last Exam v1.1: 71.6%, ahead of Claude Sonnet 5.5 at 60.4% and GPT-6.1 Terra at 69.8%. AutomationBench-AA: 76.1% against 71.8% and 60.2%.
Agentic coding
Terminal-Bench 4.1: 57.0%, behind Claude Sonnet 5.5 at 63.9%. SWE-sweep: 13.5% against 3.1% for Sonnet 5.5 and 5.8% for GPT-6.1 Terra.
Computer use
OSWorld-2.1 offline subset: 77.6%. Claude Sonnet 5.5 scores 83.9% and GPT-6.1 Terra 74.2%.
Reasoning and charts
HLE-Diamond: 58.8% against 53.3% and 47.3%. Chartography, a chart-reading test: 66.6% against 61.6% and 63.2%.
Hydrogen, Carbon, or Neon?
All three are Gemini 4 models with a 1M-token context window. Google's guidance on when to use each:
Stay on Hydrogen for
Everyday coding, interactive web apps, tool-using agents, document and chart work, and running many subtasks in parallel. It answers sooner and spends fewer tokens per turn.
Move up to Carbon for
Hard architecture and debugging, science problems, and security verification, where deeper reasoning and a second check of the answer are worth the wait.
Consider Neon for
Complex software engineering, knowledge work, and science workflows that need frontier-level intelligence but should still finish end to end quickly.
Call Gemini 4 Hydrogen from your code
Manage API keys →Use your AIReiter key with an existing OpenAI client after changing the base URL. The API tab above has ready-to-run requests.
gemini-4-hydrogen
https://aireiter.com/api/v1/chat/completions, the OpenAI Chat Completions protocol.
Set the base URL to https://aireiter.com/api/v1 and use your AIReiter API key. The official OpenAI SDKs work once the base URL is changed.
Hydrogen thinks before it answers. Thinking tokens are billed as output and share max_tokens, so raise max_tokens for multi-step coding tasks.
Try Gemini 4 Hydrogen in 3 steps
- 01
Try a real task
Paste the work you actually need done, such as a failing test with the code around it or a small app to build. Hydrogen responds quickly, so you can refine the prompt in the playground.
- 02
Size max_tokens
Thinking counts toward max_tokens. Keep it modest for chat, and raise it for multi-file changes or long answers so the reply is not cut off after the reasoning.
- 03
Copy the API call
Move the same request into your code with model ID gemini-4-hydrogen on the OpenAI-compatible endpoint. Token usage for every reply is shown under the response.
FAQ
01What is Gemini 4 Hydrogen?
Gemini 4 Hydrogen is Google's fast, efficient Gemini 4 model for everyday coding and agentic workflows. Google released it on 12 November 2026, adapted it from Gemini 4 Carbon, and recommends it as the replacement for Gemini 3.8 Flash and earlier Gemini 3 and 2.5 models.
02How is Hydrogen different from Gemini 4 Carbon?
Carbon is Google's most capable Gemini 4 reasoning model and spends more time and tokens on hard problems. Hydrogen is tuned for fast execution: it answers sooner and costs less per turn. Google suggests letting Carbon plan or unblock hard tasks and Hydrogen carry out the edits and subtasks.
03Which model ID do I send?
Send gemini-4-hydrogen, the same ID Google uses in the Gemini API. Point your OpenAI client at https://aireiter.com/api/v1, use your AIReiter API key, and call the chat completions endpoint as you would for any other model on AIReiter.
04How long can a response be?
Up to 65,536 output tokens per request. Input, thinking, and output share one window of 1,048,576 tokens, so a very long prompt leaves less room for the answer. If a reply stops early, raise max_tokens before you shorten the prompt.
05Do I need a Google account or a Gemini API key?
No. Use your AIReiter key with the AIReiter endpoint. To try the model before writing any code, use the playground on this page, which runs the same model you call through the API.
06Are the benchmark numbers independent?
No. The scores on this page come from Google's Gemini 4 Hydrogen model card and compare it with Claude Sonnet 5.5 and GPT-6.1 Terra. Hydrogen leads on several knowledge-work tests and trails Sonnet 5.5 on Terminal-Bench and OSWorld, so test it on your own tasks first.
07Where do I see the price?
The live price table at the top of this page shows the current input, output, and cached-input prices per 1M tokens. Billing follows the usage returned with every response, and thinking tokens are billed as output.