Google has released Gemini 4 Hydrogen — a fast model for coding and agentic workflows, available in the Gemini API on the free tier. Imagine Vasyl, a developer on the fictional team “Kopyto.dev”: he wants to hand an agent a repository task, but before switching models he needs to check more than just speed — he also needs to look at cost, settings, and API limitations. That’s where the technical part of the news begins: one new model identifier isn’t enough.
Gemini 4 Hydrogen is meant to take Gemini 3.8 Flash’s place in everyday tasks. Google recommends migrating to it from 3.8 Flash, as well as from the earlier Gemini 3 and 2.5 models. At the same time, Hydrogen differs in its default behavior, caching support, and handling of generation parameters, so it’s better to think of migration as a configuration change, not a mechanical string swap.
Where the model is available and how much the API costs
For the API, the model identifier is gemini-4-hydrogen. It’s available in Google AI Studio and the Gemini API, as well as in Gemini for business, the Gemini app, Google Search, Gemini in Google Sheets, and the paid Android Studio tier. In the free Gemini app, the model may be selected automatically when the system considers it a good fit for a request.
The free Gemini API tier doesn’t charge for input or output tokens, but it does have quotas. Google may also use free-tier request data to improve its products. For Vasyl, that’s an important distinction between “free” and “unlimited”: before launching an integration, he needs to account for quotas and data-use terms.
On the paid Standard tier, a million input tokens costs $1,50, and a million output tokens costs $7,50. Prices don’t increase for long contexts: the model’s context window reaches 1 048 576 tokens. Tokens spent on reasoning are included in the output-token price. Cached input costs $0,075 per million tokens.
There’s a time limit on the comparison with Gemini 3.8 Flash. Until 31 December 2026, Flash costs $0,75 per million input tokens and $3,75 per million output tokens, and from 1 January 2027 its prices are set to rise to Hydrogen’s level. Flash’s cached input will go up from $0,075 to $0,15. So after that date, regular tokens for both models will cost the same, but the total bill will still depend on how many tokens a particular task uses.
What the tests show — and who ran them
In the launch tests cited by Google, Hydrogen scored 57% on Terminal-Bench 4.1, a benchmark of agentic terminal tasks. Gemini 3.8 Flash is listed at 18,2% in the same table. Google also reports that at the high reasoning level, Hydrogen completes tasks 2,5 times faster than its predecessor, and makes more than five times fewer fabricated claims. According to the company, instead of guessing, the model more often says when it lacks context.
Separate results from Google partners on graph, SQL, and big-data tasks also favor Hydrogen: according to the company, it ran 2–2,8 times faster and used 12–23% fewer tokens than Gemini 3.8 Flash. Google attributes its agentic behavior in part to parallel file reading and repository search. If a tool call fails or a search returns an empty result, the model can change its plan.
These figures shouldn’t be taken as an independent test: Google is the source of the reported measurements, and the company has described its methodology separately. In its comparison with Claude Sonnet 5.5 and GPT-6.1 Terra, Hydrogen beats its competitors in seven out of ten rows. On SWE-sweep, for example, where models have to find and fix bugs without breaking existing code, Hydrogen scores 13,5% versus 3,1% for Sonnet 5.5 and 5,8% for Terra.
Still, there isn’t a winner in every test. Sonnet 5.5 scores higher on Terminal-Bench 4.1 — 63,9% versus 57% — and on the offline OSWorld-2.1 subset: 83,9% versus 77,6%. It also beats Hydrogen on Terminal-Bench-Science. Google notes that it took some Sonnet scores from public rankings rather than obtaining them in its own runs.
The Artificial Analysis index shows another important factor — the balance between quality and task cost. At high, Hydrogen scored 51 points at about $1,90 per task; at xhigh, it scored 54 points at about $3,20. In the comparison cited by the source, GPT-6.1 Terra reaches about 51 points for less than a dollar, while Sonnet 5.5 scores 54 points at about $10. The cost values on the chart are approximate readings, not exact labels.
What to change when migrating from Gemini 3.8 Flash
Hydrogen has the same general API design as Gemini 4 Carbon and Argon, but requests have a few sneaky differences. First, change gemini-3.8-flash to gemini-4-hydrogen. Then check the reasoning level: Hydrogen’s default is high, while 3.8 Flash defaulted to medium. xhighis also available, but minimal causes an error.
Hydrogen doesn’t support explicit context caching, so Google recommends removing the cached_content field and calls to caches.createfrom the integration. Instead, it supports implicit caching for prompts of 4096 tokens or more; input tokens that land in the cache get a 95% discount. The server ignores the temperature, top_p і top_k parameters, so don’t leave them in requests in the hope of keeping the old behavior.
There are also generation limits. Input, reasoning, and response share a window of 1 048 576 tokens. In one synchronous step, the model can spend up to 65 536 tokens on reasoning and response combined. For a longer result, the documentation requires raising max_output_tokens above 65 536 and enabling background: true or implementing continuation on the client side.
Tools must be declared through function calling, and the structured response format must be specified through structured outputs. If you instead imitate tool calls with JSON text in the system prompt, the request may fail with MALFORMED_FUNCTION_CALL. In that case, Vasyl isn’t just swapping out the pig-config: he’s checking whether the tool descriptions match the format the API expects.
Google recommends testing your own tasks at all four reasoning levels and choosing the lowest one that delivers the required quality. The xhigh level can increase latency and token use, and make the model reason longer than necessary on simple requests. On Terminal-Bench 4.0, according to Google’s chart, switching from high to xhigh didn’t improve Hydrogen’s score, even though it increased the cost.
Orchestrator distributes work between two models
In the Antigravity development environment, Hydrogen is available to paid Google AI Pro and Ultra subscribers. Google has also added Orchestrator for Ultra and Gemini for business users. Unlike a router that picks one model for the entire task, this mode can hand work between models while the task is running.
For example, according to Google, Carbon can read dependencies and make a plan, after which Hydrogen changes the code, updates packages, and runs tests. If a problem comes up, control returns to Carbon. Google says this mode nearly matches Carbon’s success rate while using an average of 24% less quota and completing tasks 19% faster. The company’s materials disagree on the benchmark version: one post calls it Terminal-Bench 4.0, another calls it 4.1.
You can also put together a similar setup through the API: the models switch between turns in a single session using previous_interaction_id. Planning turns can be routed to gemini-4-carbon, and execution turns to gemini-4-hydrogen. To manage roles, Google offers the Antigravity SDK; in Managed Agents, the Antigravity agent now runs on Hydrogen by default.
Safety and choosing a practical reasoning level
Google says that compared with Gemini 3.8 Flash, Hydrogen is up to 81% less likely to go off task in agent mode and up to 79% less likely to underperform. The company also reports a twelvefold reduction in actions that don’t match the specified goals and constraints or bypass requirements in coding and tool-use tasks. On the Gray Swan indirect prompt-injection test, Google says Hydrogen is more than 2,3 times more robust. The company promised to publish a detailed safety report later.
At xhigh, the model scored 54 points on the Artificial Analysis card and ranks 16th among 78 models. At the same time, while completing the index it used 304 million output tokens versus a median of 72,8 million, and the average task cost was $3,16. So a practical starting point for Vasyl is high or medium, and he should raise the level only when the quality isn’t good enough. The oink is simple: the bill depends not on how loud the model’s name is, but on the amount of work and the chosen reasoning level.









