- Text
- 1.05M context
- Reasoning
Gemini 4 Hydrogen API: pricing, capabilities and setup
Gemini 4 Hydrogen API: Google's fast model for everyday coding and agents, the recommended upgrade from Gemini 3.8 Flash, with a 1M-token context window. Available with one llmbox API key.
pay as you go · no subscription · key right after sign-up
How much Gemini 4 Hydrogen costs
- Input$0.344per 1M tokens
$1.50−77% - Output$1.72per 1M tokens
$7.50−77% - Cache read$0.0344per 1M tokens
- Cache write$0.43per 1M tokens
Cost calculator
20 M tokens
75%
The rest is output
- Direct from the provider
$60- With llmbox
- $14
- Savings
- $46
What a typical task costs
| Task | Tokens (input / output) | With llmbox | Direct |
|---|---|---|---|
| Short chat | 2 000 / 500 | $0.00155 | $0.00675 |
| Code review | 20 000 / 2 000 | $0.01032 | $0.045 |
| Document summary | 40 000 / 2 000 | $0.0172 | $0.075 |
| Agent session | 600 000 / 30 000 | $0.258 | $1.125 |
Specs
- Context1.05Mtokens
- Max output66Ktokens
- Inputtext, images
Capabilities
- Tool calling
- JSON schema output
- Reasoning
- Streaming
- Prompt caching
- Image input
Endpoints
/v1/chat/completions/v1/responses/v1/messages
Setup in three steps
- 01Get a key
Sign up and create an API key in the dashboard.
Get a key → - 02Set the base URL
In any OpenAI-compatible client, point the API address to:
- 03Pass the model id
Put this identifier in the model field:
import os
from openai import OpenAI
client = OpenAI(
base_url="https://llmbox.cc/v1",
api_key=os.environ["LLMBOX_API_KEY"],
)
resp = client.chat.completions.create(
model="google/gemini-4-hydrogen",
messages=[{"role": "user", "content": "Hi! Tell me about yourself in two sentences."}],
)
print(resp.choices[0].message.content)What Gemini 4 Hydrogen is good for
Gemini 4 Hydrogen is a Gemini 4 generation model from Google for everyday software development and agentic work. Google calls it the daily driver for agentic workflows: it is built for fast execution, unlike the larger Gemini 4 Argon, which reasons deeper and longer. According to Google's documentation, it has a 1,048,576-token context window shared by the request, the reasoning and the answer, and a single response returns up to 65,536 tokens by default. Through llmbox the model accepts text and images and responds with text. You call it with the model ID google/gemini-4-hydrogen and an llmbox API key — no Google AI Studio key needed.
What it's good for
Hydrogen is built for the part of an agent's work there is most of: short steps that need to happen quickly. Picking and calling the right function, editing a file to a ready plan, assembling an answer to a JSON schema, reading a screenshot of an error — on steps like these, response time and cost matter more than maximum reasoning depth. That makes it a good default model in Codex CLI, Cursor or OpenCode, with the larger model reserved for hard tasks.
Google also suggests pairing models: a larger model such as Argon breaks the task down and makes a plan, and Hydrogen quickly carries out the individual steps. One llmbox key opens both models, so you can build this setup within a single agent.
Reasoning depth is set in the request. Per Google's documentation, the model has four levels: low, medium, high and xhigh. The low level suits choosing a function and short answers; xhigh suits planning and working through hard bugs.
For projects on Gemini 3.8 Flash, Google recommends Hydrogen as the next step. 3.8 Flash remains a stable model, so you can test the switch on your own tasks and compare the spend in the request log.
When it's not the right fit
- Long planning, hard math, architecture decisions across a large codebase — Gemini 4 Argon is stronger here, and Hydrogen is better kept as the executor.
- A large stream of repetitive requests where the per-token rate matters more than the new generation — Gemini 3.8 Flash costs less, and for the simplest labeling there is Gemini 3.1 Flash Lite.
- You need images as output — that's what Gemini 3.1 Flash Image is for.
How to connect
The model is available in two formats: Chat Completions for Cursor, OpenCode and the OpenAI SDK, and the Responses API for Codex CLI. You don't need a separate AI Studio key or a Google Cloud project: an llmbox key and the base URL from the Quickstart are enough, and tool setup is collected in Integrations. To compare Hydrogen with 3.8 Flash or Argon, just switch the model — the key and base URL stay the same.
Gemini 4 Hydrogen API pricing
The rates per 1M input, output and cache-read tokens are on this page. A long repeated prompt prefix — a system prompt, tool descriptions — can be served from the cache. Reasoning tokens count as output, so the reasoning level you choose shows up directly in an agent's bill. You pay from a prepaid balance as you go, with no subscription. Spend by day and model is collected in the Usage section of the dashboard, and every request with its cost is in the request log.
Typical tasks
- Everyday development in Codex CLI, Cursor and OpenCode
- Executing steps in an agent led by a larger model
- Support and sales agents that call your functions
- Moving from Gemini 3.8 Flash to the new generation
Gemini 4 Hydrogen or Gemini 3.8 Flash?
| Model | Input · 1M | Output · 1M |
|---|---|---|
| Gemini 4 Hydrogen | $0.344 | $1.72 |
| Gemini 3.8 Flash | $0.225 | $1.125 |
Gemini 4 Hydrogen vs neighbours
| Model | Input · 1M | Output · 1M |
|---|---|---|
| Gemini 4 Hydrogen | $0.344 | $1.72 |
| Gemini 3.6 Flash | $0.25 | $1.215 |
| Gemini 3.1 Pro Preview | $0.30 | $1.70 |
| Gemini 4 Argon | $0.459 | $2.295 |
| Gemini 3.1 Pro | $0.60 | $2.45 |
| Qwen3.8 Max Qwen | $0.225 | $0.7875 |
Other Google models
Articles about the model

How much does 1M tokens cost: GPT, Gemini, DeepSeek, Qwen
Current per-million-token rates for GPT, Gemini, DeepSeek and Qwen models: what input, output, cache and reasoning mean, and how to estimate a project's usage.

Gemini 4 Hydrogen is now in the llmbox catalog
Gemini 4 Hydrogen, Google's fast model for code and agents with a 1M-token context window, is now in the catalog. Use it with the same llmbox key as every other model.

How to get a Gemini API key
Two ways to get a Gemini API key: directly in Google AI Studio, or with one llmbox key for all models, including a ready-to-run Python request example.
FAQ
How is Gemini 4 Hydrogen different from Gemini 3.8 Flash?
Hydrogen is a Gemini 4 generation model that Google recommends as the upgrade from 3.8 Flash for agents and code. It has four reasoning levels instead of three — xhigh is new. Both have a 1M-token context window and the same connection formats; the rates are on each model's page.
How is Gemini 4 Hydrogen different from Gemini 4 Argon?
Argon is Google's flagship for deep, long-horizon reasoning, where the quality of the solution matters more than speed and price. Google describes Hydrogen as a fast model for everyday work and as an executor alongside the larger models: Argon plans, Hydrogen carries out the steps.
Do I need a Gemini API key or a Google Cloud project?
No. Requests use an llmbox key that you create in the API keys section of your dashboard. The same key works with every other model in the catalog, including other vendors.
Can I use Gemini 4 Hydrogen in Codex CLI, Cursor or OpenCode?
Yes. The model is available in the Responses API for Codex CLI and in Chat Completions for Cursor and OpenCode. Ready-made settings are in the Integrations section of the docs.
What reasoning levels does Gemini 4 Hydrogen have?
Per Google's documentation, low, medium, high and xhigh; Gemini 4 models do not support the minimal level. The higher the level, the longer the model thinks and the more output tokens it spends.
How is Gemini 4 Hydrogen billed? Is it a subscription?
No subscription: you pay from a prepaid balance as you go, per input, output and cache-read token at the per-1M-token rates on this page. Reasoning tokens count as output, so the reasoning level noticeably affects spend: the same task usually costs more at xhigh than at low.