Gemini 4 Hydrogen vs 3.8 Flash vs Argon: Pricing, API and Benchmarks

Gemini 4 Hydrogen vs 3.8 Flash vs Argon: benchmarks, API pricing and which model to pick for your task.
Large glass Gemini logo on a pedestal labelled Gemini 4 Hydrogen, with the AI/ML API robot driving a toy race car on a neon track around it

Google has a new fast model, Gemini 4 Hydrogen, and it's meant to take over from Gemini 3.8 Flash for everyday coding. We wanted to see whether it's worth the switch, so we compared it with 3.8 Flash and Gemini 4 Argon on published benchmarks and on three coding tasks of our own. Gemini 4 Carbon, the strongest model in the family, joined two of the tasks.

Hydrogen costs $1.50 per million input tokens on AI/ML API. That's twice as much as 3.8 Flash and 25% less than Argon, and one AI/ML API key runs all four models.

Every model passed our Python checks and built a working game. Hydrogen finished the game and the black hole page first, and it was the only one to draw a dark center on the black hole.

On an independent intelligence index, Hydrogen scores a point above Argon and 20 points above 3.8 Flash. Below you'll find the prices, our test results, the benchmarks and our advice on which model to use.

What is Gemini 4 Hydrogen?

The Gemini 4 Hydrogen model is the fast member of Google's Gemini 4 family. Google says it's built for speed in everyday coding and agent work, and its docs call it the upgrade from Gemini 3.8 Flash. Hydrogen is adapted from Gemini 4 Carbon, and Google already runs it in Search, the Gemini app, Antigravity and Android Studio.

What is Gemini 4 Hydrogen?
SpecificationGemini 4 Hydrogen
DeveloperGoogle DeepMind
InputText, images, video, audio and PDF
OutputText
Context window1M tokens
Max output65,536 tokens per request on AI/ML API
Thinking levelslow, medium and high on AI/ML API; xhigh in Google's API
Default thinking levelhigh
Knowledge cutoffMarch 2026

Hydrogen has the same 1M-token context window as Argon and Carbon, so a long document or a large part of a codebase fits into one request. Input, thinking and output all count toward that limit, and you choose how long the model thinks with the thinking level.

What is the Gemini 4 Hydrogen price?

On price, Hydrogen sits between 3.8 Flash and the other two Gemini 4 models. The Gemini 4 Hydrogen API price on AI/ML API matches Google's, with no higher rate for long prompts, and you pay for Hydrogen, 3.8 Flash, Gemini 4 Argon and Gemini 4 Carbon from one balance.

Price per 1M tokens on AI/ML API
Price per 1M tokens on AI/ML APIGemini 4 HydrogenGemini 3.8 FlashGemini 4 ArgonGemini 4 Carbon
Input$1.50$0.75$2$2
Cached input$0.075$0.075$0.10$0.10
Output, thinking included$7.50$3.75$10$10

Two things can change this picture. First, Google sells 3.8 Flash, Argon and Carbon at early prices that double later: Argon and Carbon from December 1, and 3.8 Flash from January 1, 2027. AI/ML API's model pages don't list prices after those dates yet. Second, the token price isn't the whole bill: thinking tokens are paid as output, so a model that thinks longer can cost more per task even with cheaper tokens. Our tests below show how that worked out. We checked all prices on November 12, 2026.

How did Gemini 4 Hydrogen do in our tests?

To see how Hydrogen handles real work, we gave it three coding tasks of our own: a Python bug fix, a small 3D game and a 3D black hole page. Hydrogen, 3.8 Flash and Argon ran all three through AI/ML API, and Carbon ran the bug fix and the game.

Every model got the same prompt for each task. We ran most of the tests on November 12, 2026, and reused three runs from November 10 with the same prompts: Argon's bug fix and black hole, and Carbon's bug fix. In the tables, time is the length of the whole request, and cost is what AI/ML API charged for it, taken from our account log. Carbon ran the game at medium, its default thinking level, and the other models ran at high.

Bug fix in Python

The first task was to fix a Python file with three small functions. Among other bugs, it counted a day as 12 hours and merged time intervals wrong. We ran 22 checks on each fix.

Bug fix in Python
ModelThinkingOutput limitResultTimeCost
Gemini 4 Hydrogenhigh64,000All passed43 s$0.05
Gemini 3.8 Flashhigh64,000All passed170 s$0.10
Gemini 4 Argonhigh32,000All passed42 s$0.03
Gemini 4 Carbonhigh64,000All passed307 s$0.26

All four fixes passed, and the difference was in how long each model thought first. Hydrogen thought for about 6,000 tokens before it answered, and 3.8 Flash for almost 25,000. That's why 3.8 Flash took four times as long and cost twice as much here, even with its lower token price.

3D racing game

The second task was a small game in one HTML file with three.js: a car on an endless neon road that dodges obstacles and picks up coins.

Write a single self-contained HTML file with a playable 3D game. Use three.js loaded only from https://unpkg.com/three@0.170.0/build/three.module.js (an import map is fine). No other libraries, images, fonts or network requests. The player drives a small car along an endless three-lane neon road at night. The left and right arrow keys (and A and D) move the car one lane left or right. Obstacles and coins appear ahead and move toward the player. Hitting an obstacle ends the game; picking up a coin adds 10 points, and the score also grows with distance. The speed slowly increases over time. Show the score in the top-left corner. When the game ends, show a Game Over screen with the final score and a Restart button; pressing Space or clicking Restart starts a new game. Return only the HTML in one code block.

We played each game ourselves and checked seven things from the prompt: the road and car, lane switching, crashes, coins, the score, the end screen and restarting.

3D racing game
ModelThinkingOutput limitChecks passedTimeCost
Gemini 4 Hydrogenhigh64,000All passed62 s$0.07
Gemini 3.8 Flashhigh64,000All passed108 s$0.07
Gemini 4 Argonhigh64,000All passed233 s$0.14
Gemini 4 Carbonmedium64,000All passed304 s$0.29
Screenshots of the four racing games: Gemini 4 Hydrogen, Gemini 3.8 Flash, Gemini 4 Argon and Gemini 4 Carbon

All four games are playable. Hydrogen finished first with the plainest scene, a road with purple posts under a pink sun. Carbon took about five minutes and added a city skyline along the road, with twice as much code as Hydrogen. 3.8 Flash called its end screen Crashed instead of Game Over.

3D black hole page

The third task was a 3D black hole page in three.js. It's the prompt from our Carbon review, where Carbon at medium drew a bright ball in the center.

Write a single self-contained HTML file with a full-window 3D scene. Use three.js loaded only from https://unpkg.com/three@0.170.0/build/three.module.js (an import map is fine). No other libraries, images, fonts or network requests. Render a realistic black hole with gravitational lensing: a glowing accretion disk that bends over and under the black hole, a bright photon ring, and a star field that is visibly distorted near it. The disk rotates and the camera slowly moves around the black hole. Add a slider in the top-left corner that changes the camera's tilt. Return only the HTML in one code block.

We checked four things on every page: a dark center, a thin bright ring around it, a disk that bends over and under the hole, and a tilt slider.

3D black hole page
ModelThinkingOutput limitResultTimeCost
Gemini 4 Hydrogenhigh64,0004 of 4106 s$0.13
Gemini 3.8 Flashhigh64,0002 of 4: white ball in the center, no ring192 s$0.11
Gemini 4 Argonhigh32,0002 of 4: bright ball in the center, no ring211 s$0.16
Black hole pages from Gemini 4 Hydrogen, Gemini 3.8 Flash and Gemini 4 Argon: only Hydrogen has a dark center

A real black hole has a dark shadow in the middle. Hydrogen was the only model that drew one, with a thin ring around it and stars bent into arcs near the hole. 3.8 Flash and Argon put a bright ball in the center instead.

Added up, the three tasks took Hydrogen about 3.5 minutes and $0.26. 3.8 Flash needed about 8 minutes and $0.28, and Argon about 8 minutes and $0.33.

What are the Gemini 4 Hydrogen benchmark results?

Our three tasks are a small sample, so we also looked at larger benchmarks. Hydrogen has scores from two sources: the independent Artificial Analysis index and Google's own table.

Artificial Analysis Intelligence Index

The Artificial Analysis Intelligence Index combines many reasoning, coding and agent tests into one score. Hydrogen at high thinking, its default, scores 51, and at xhigh it scores 54.

Artificial Analysis Intelligence Index: Gemini 4 Carbon at high thinking scores 60, Gemini 4 Hydrogen 54 at xhigh and 51 at high, Gemini 4 Argon 50, Gemini 3.8 Flash 31

Artificial Analysis also reports what one index task cost each model at each setting. It counts Google's current prices, including the early prices of 3.8 Flash, Argon and Carbon.

Artificial Analysis Intelligence Index
Model and settingIndex scoreCost per index task
Gemini 4 Carbon, high thinking60$5.48
Gemini 4 Carbon, medium thinking58$4.68
Gemini 4 Hydrogen, xhigh thinking54$3.16
Gemini 4 Hydrogen, high thinking51$1.87
Gemini 4 Argon, high thinking50$4.97
Gemini 3.8 Flash, high thinking31$7.77

3.8 Flash has the lowest token price of the four, but its index tasks cost the most. Hydrogen at high has the lowest cost per task in the table, at less than half of Argon's.

Google's benchmarks: Gemini 4 Hydrogen vs Sonnet 5.5 and GPT-6.1 Terra

Google's table compares Hydrogen with two rivals, Claude Sonnet 5.5 and GPT-6.1 Terra. Hydrogen ran at xhigh, except on Terminal-Bench 4.1, where it ran at high. Most rival scores come from public leaderboards, and Google ran three of them itself.

Google's benchmarks: Gemini 4 Hydrogen vs Sonnet 5.5 and GPT-6.1 Terra
BenchmarkWhat it checksGemini 4 HydrogenClaude Sonnet 5.5GPT-6.1 Terra
SWE-sweepAgentic coding13.5%3.1%5.8%
Terminal-Bench 4.1Agentic coding57.0%63.9%Not listed
Agents' Last Exam v1.1Knowledge work71.6%60.4%69.8%
AutomationBench-AAKnowledge work76.1%71.8%60.2%
Vending-Bench 2Knowledge work, final bank balance$14,549$11,165$9,107
OSWorld-2.1, offline setComputer use77.6%83.9%74.2%
MKAMultimodal understanding53.4%52.0%43.8%
ChartographyMultimodal understanding66.6%61.6%63.2%
Terminal-Bench-Science 0.1Science and math51.4%59.9%58.3%
HLE-DiamondReasoning58.8%53.3%47.3%

Hydrogen scores higher than Sonnet 5.5 on 7 of the 10 tests and higher than Terra on 8 of the 9 tests Terra has. Sonnet 5.5 leads on both Terminal-Bench tests and on OSWorld-2.1. Hydrogen's other nine scores are at xhigh, and at high, the top level on AI/ML API, they may be lower.

Gemini 4 Hydrogen speed

On output speed, Hydrogen leads the group. Artificial Analysis measures 170 output tokens per second for Hydrogen at high thinking, against 112 for 3.8 Flash, 75 for Carbon and 64 for Argon.

Output speed at high thinking: Gemini 4 Hydrogen 170 tokens per second, Gemini 3.8 Flash 112, Gemini 4 Carbon 75, Gemini 4 Argon 64

Google says Hydrogen finishes tasks 2.5 times faster than 3.8 Flash at high, but it doesn't say how it measured that. On the Artificial Analysis index, a task takes Hydrogen 8.3 minutes on average and 3.8 Flash 14.8, both at high. At high, Hydrogen's first answer token arrives after about 19 seconds.

Taken together, the Artificial Analysis numbers put Hydrogen close to Argon, well ahead of 3.8 Flash and behind Carbon, and it's the fastest of the four.

Gemini 4 Hydrogen vs 3.8 Flash, Argon and Carbon

In code, you switch between these models by changing the model name. Here's how we'd choose.

Start with Hydrogen. It scores about the same as Argon on the index for 25% less per token and 20 points more than 3.8 Flash. In our tests, it was faster than both on the game and the black hole.

Keep 3.8 Flash only if your app already runs on it and its answers pass your checks. Its tokens cost half as much, but it thinks longer. 3.8 Flash still works in the API, and Google hasn't announced a shutdown date. If you switch, note that Hydrogen doesn't accept reasoning_effort set to none.

Move a task to Carbon when Hydrogen fails your checks. Carbon scores nine points higher on the index and its tokens cost a third more. Each Carbon run in our tests took about five minutes.

If you're not sure, run one of your own prompts on Hydrogen and on the model you use now. The Playground below lets you do that side by side.

How to use the Gemini 4 Hydrogen API

You can try Gemini 4 Hydrogen in the browser first and then call it from code. To start, sign up on AI/ML API and add funds to your balance.

Option 1: Test Gemini 4 Hydrogen in the Playground

Open the AI/ML API Playground with Gemini 4 Hydrogen and Gemini 3.8 Flash side by side. Type one prompt and compare the two answers before you write any code.

Option 2: Call Gemini 4 Hydrogen through the API

Create a Gemini 4 Hydrogen API key in your AI/ML API account. AI/ML API works with the OpenAI SDK, so you only need a different base URL and model name. The code needs Python 3.10 or newer and the openai package (pip install openai).

from openai import OpenAI

client = OpenAI(
    base_url="https://api.aimlapi.com/v1",
    api_key="YOUR_AIMLAPI_KEY",
    timeout=600,
)

response = client.chat.completions.create(
    model="google/gemini-4-hydrogen",  # or google/gemini-3.8-flash, google/gemini-4-argon, google/gemini-4-carbon
    reasoning_effort="high",
    max_tokens=65536,
    messages=[{"role": "user", "content": "Find the cause of this bug and fix it: ..."}],
)

print(response.choices[0].message.content)

reasoning_effort picks the thinking level: low, medium or high. We tested at high. On the Artificial Analysis index, Hydrogen scores 41 at medium and 27 at low, and a medium task costs less than half of a high one. For routine edits, try a lower level and keep the lowest one that passes your checks. The Gemini 4 Hydrogen API docs list every other setting.

FAQ

Is Gemini 4 Hydrogen good for coding?

For everyday tasks, yes. On Terminal-Bench 4.1, Google measured 57.0% for Hydrogen against 18.2% for 3.8 Flash. In our tests, it fixed the Python bug and built a working game in about a minute each.

How much does the Gemini 4 Hydrogen API cost?

On AI/ML API, it's $1.50 per million input tokens and $7.50 per million output tokens, and thinking tokens count as output. Cached input costs $0.075. Each of our three test tasks cost between $0.05 and $0.13.

How do I get a Gemini 4 Hydrogen API key?

Sign up on AI/ML API, add funds and create a key on the API keys page. The same key works for 3.8 Flash, Argon, Carbon and the rest of the catalog.

Is Gemini 4 Hydrogen better than 3.1 Pro?

We can't compare them on data yet: we didn't test 3.1 Pro, and Artificial Analysis has no current index score for it. Hydrogen is cheaper on AI/ML API, where Gemini 3.1 Pro costs $2 per million input tokens and $12 per million output tokens. 3.1 Pro is still a preview model, and Hydrogen is generally available.

What's the difference between Gemini 4 Hydrogen, Argon and Carbon?

They're three Gemini 4 models. Argon came first, Carbon followed as the strongest model in the family, and Hydrogen is the fast one, adapted from Carbon. On AI/ML API, Argon and Carbon cost the same per token, and Hydrogen costs 25% less than both.

‍

Share with friends

Ready to get started? Get Your API Key Now!

Get API Key