Google · gemini-4-hydrogen
Gemini 4 Hydrogen API
Google's fast model for everyday coding and agent workflows. On AnyAIGC it costs about 36% of Google's list price.
Google positions it as bringing frontier intelligence to everyone: Carbon and Argon take the hardest deep reasoning, Hydrogen handles fast execution. gemini-4-hydrogen costs $0.5360 per 1M input tokens and $2.6800 per 1M output tokens, and works with both the native Gemini API and the OpenAI-compatible API.
- Model ID gemini-4-hydrogen
- Context 1M tokens
- Price 64% off Google's list price
- Concurrency Unlimited
- Enterprise Self-service invoices
The fast-execution model in the Gemini 4 generation
Google released Gemini 4 Hydrogen on . The model card says Gemini 4 Carbon and Argon are frontier models for deep, long-horizon reasoning on the hardest problems, while Hydrogen is built for fast execution across agent workflows. It is adapted from Gemini 4 Carbon and natively accepts text, images, audio, video and PDF input.
Google lists these improvements: cleaner code; it flags missing context instead of guessing, and fabricates less than a fifth as often as Gemini 3.8 Flash; it batches read and search tool calls in parallel and recovers better when a tool call fails. It can handle coding and agent tasks on its own, or run as a sub-agent alongside Carbon and Argon for parallel execution and verification. The Antigravity agent in Google's hosted agent service now defaults to Hydrogen.
On AnyAIGC, gemini-4-hydrogen works with both the native /v1beta/models/gemini-4-hydrogen:generateContent endpoint and the OpenAI-compatible /v1/chat/completions. You don't need a Google Cloud account, and the same key calls 300+ other models on the platform.
- Context window
- 1,048,576Shared by input, thinking, output
- Max output per request
- 65,536Default for synchronous requests
- Knowledge cutoff
- March 2026
- Input
- Text, images, audio, video, PDF
- Thinking levels
- low / medium / high / xhighDefault high
- Released
- 2026-11-12Stable
What Gemini 4 Hydrogen can do
Everyday coding and debugging
Built for repeated repository-level edits and debugging, plus web development and everyday prototyping. Google reports 13.5% on SWE-sweep, against 3.1% for Claude Sonnet 5.5 and 5.8% for GPT-6.1 Terra.
Fast-executing agents
Function calling, code execution, computer use, Google Search and Maps grounding are all supported. It scores 76.1% on AutomationBench-AA and 71.6% on Agents' Last Exam v1.1.
A sub-agent in multi-model setups
Google suggests letting Carbon design the interface and handle the hard parts, then handing code changes, parallel subtasks and tests to Hydrogen, for lower latency and fewer tokens.
1M-token context
The 1,048,576-token window holds a full codebase or a large document set. Synchronous output is capped at 65,536 tokens by default; long output can extend to about 1M tokens through background execution.
Multimodal knowledge work
Read spreadsheets, charts, dense PDFs, images, audio and video, and inspect specific frames in a video the way an agent would. Chartography chart understanding is 66.6%, and MKA is 53.4%.
Four thinking levels
low, medium, high and xhigh let you trade latency, cost and reasoning depth. It scores 58.8% on the HLE-Diamond reasoning benchmark.
Gemini 4 Hydrogen API pricing
Pay per token at a fixed rate, with no subscription or monthly fee. Input, output and cache hits each cost about 36% of Google's paid-tier list price.
- Per tokenInput, output and cache billed separately
- 64% offCompared with Google's paid-tier list price
- UnlimitedConcurrency for every account
- USDOne balance for 300+ models
| Item | Model | AnyAIGC | Google list | You save |
|---|---|---|---|---|
| InputPer 1M tokens | gemini-4-hydrogen | $0.5360 | $1.50 | ~64% |
| OutputPer 1M tokens, incl. thinking | gemini-4-hydrogen | $2.6800 | $7.50 | ~64% |
| Cache hitPer 1M tokens | gemini-4-hydrogen | $0.0268 | $0.075 | ~64% |
Prices are in US dollars and billed on the tokens you actually use. Output includes thinking tokens. Google's price is Hydrogen's standard paid-tier rate, one rate across the whole 1M context, with no promotional end date. Caching is implicit and applies automatically once a prompt reaches 4,096 tokens. Google prices come from the Gemini API pricing page. The AnyAIGC model catalog always shows the live price.
Cost examples
Estimates for common workloads. The struck-through figure is Google's list price for the same usage.
-
One code review
50K input tokens + 5,000 output tokens
$0.0402
Google
$0.1125 -
A 20-turn agent session
Per turn: 20K cached + 5,000 input + 2,000 output tokens
$0.1715
Google
$0.48 -
1M in + 1M out
1M input tokens + 1M output tokens
$3.216
Google
$9.00
How Gemini 4 Hydrogen performs
Scores published on the Google DeepMind model card (as of November 2026), compared with Claude Sonnet 5.5 and GPT-6.1 Terra. Hydrogen leads on agent coding, knowledge work and reasoning, and trails Sonnet 5.5 on terminal coding, computer use and science.
AutomationBench-AA · Business process automation
Coding, knowledge work, computer use, multimodal and reasoning
| Benchmark | Gemini 4 Hydrogen | Claude Sonnet 5.5 | GPT-6.1 Terra |
|---|---|---|---|
| SWE-sweepAgent coding | 13.5% | 3.1% | 5.8% |
| Terminal-Bench 4.1Terminal coding, cheating-adjusted | 57.0% | 63.9% | — |
| Agents' Last Exam v1.1Agent tasks | 71.6% | 60.4% | 69.8% |
| AutomationBench-AABusiness process automation | 76.1% | 71.8% | 60.2% |
| Vending-Bench 2Long-running business sim, ending balance | $14,549 | $11,165 | $9,107 |
| OSWorld-2.1Computer use, offline subset | 77.6% | 83.9% | 74.2% |
| MKAMultimodal, Climb WSR accuracy | 53.4% | 52.0% | 43.8% |
| ChartographyChart understanding | 66.6% | 61.6% | 63.2% |
| Terminal-Bench-Science 0.1Scientific computing | 51.4% | 59.9% | 58.3% |
| HLE-DiamondReasoning | 58.8% | 53.3% | 47.3% |
Source: Google DeepMind Gemini 4 Hydrogen model card; see the card for methodology. "—" means the model card does not report that score. Guides for the comparison models: Claude Sonnet 5.5, GPT-6.1 Terra.
What to build with Gemini 4 Hydrogen
- 01 · Coding
Everyday development and debugging
Fix bugs, write tests, and build web pages and interactive prototypes, then run another pass right away. Drop the thinking level to medium when you want faster responses, and keep the default high for harder changes.
- 02 · Multi-model
Carbon plans, Hydrogen executes
Let Gemini 4 Carbon design the interface and handle the hard parts, and hand code changes, parallel subtasks and tests to Hydrogen. On AnyAIGC both share one key with unlimited concurrency, so sub-agents can run at the same time.
- 03 · Agents
Tool-calling business workflows
Combine function calling, code execution, Google Search and URL context to chain retrieval, calculation and write-back steps. Google says it batches read and search tool calls in parallel.
- 04 · Multimodal
Documents, charts and video
Send scanned PDFs, dense spreadsheets and meeting recordings directly to extract key points and check figures. Cache hits cost $0.0268 per 1M tokens, so re-reading the same material is cheaper.
Call the Gemini 4 Hydrogen API in three steps
- Sign up and top up: create an account at anyaigc.ai. Your balance works across every model on the platform.
- Create an API key: create a token in the console, copy the key that starts with
sk-, and store it in theANYAIGC_API_KEYenvironment variable. - Send a request: call the native endpoint
https://anyaigc.ai/v1beta/models/gemini-4-hydrogen:generateContent, or the OpenAI-compatiblehttps://anyaigc.ai/v1/chat/completionswithmodelset togemini-4-hydrogen. Both authenticate withAuthorization: Bearer.
curl https://anyaigc.ai/v1beta/models/gemini-4-hydrogen:generateContent \
-H "Authorization: Bearer $ANYAIGC_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"systemInstruction": {
"parts": [{"text": "You are a frontend engineer. Reply with complete, runnable code."}]
},
"contents": [
{"role": "user", "parts": [{"text": "Write a single-file HTML token-bucket rate limiter simulator, with sliders for burst capacity and request rate."}]}
],
"generationConfig": {
"thinkingConfig": {"thinkingLevel": "medium"}
}
}'
import os
from openai import OpenAI
client = OpenAI(
base_url="https://anyaigc.ai/v1",
api_key=os.environ["ANYAIGC_API_KEY"],
timeout=600,
)
resp = client.chat.completions.create(
model="gemini-4-hydrogen",
messages=[
{"role": "user", "content": "This Python function crashes on an empty list. Fix it and add unit tests:\ndef avg(xs):\n return sum(xs) / len(xs)"},
],
)
print(resp.choices[0].message.content)
print(resp.usage)
curl https://anyaigc.ai/v1beta/models/gemini-4-hydrogen:generateContent \
-H "Authorization: Bearer $ANYAIGC_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contents": [
{"role": "user", "parts": [{"text": "Check the shipping status of orders A-1024 and A-1025."}]}
],
"tools": [{
"functionDeclarations": [{
"name": "get_shipping_status",
"description": "Look up the shipping status by order ID",
"parameters": {
"type": "object",
"properties": {
"order_id": {"type": "string", "description": "Order ID, e.g. A-1024"}
},
"required": ["order_id"]
}
}]
}]
}'
import os
from openai import OpenAI
client = OpenAI(base_url="https://anyaigc.ai/v1", api_key=os.environ["ANYAIGC_API_KEY"], timeout=600)
stream = client.chat.completions.create(
model="gemini-4-hydrogen",
messages=[{"role": "user", "content": "Give 5 bullet points on when REST fits better than gRPC, and when the reverse is true."}],
stream=True,
)
for chunk in stream:
if chunk.choices and chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="", flush=True)
print()
Parameter notes: Gemini 4 Hydrogen uses thinkingLevel (low / medium / high / xhigh), defaulting to high. Sending minimal returns an error, and temperature, topP and topK are ignored. maxOutputTokens caps both thinking and the answer; Google suggests not pinning it to a low ceiling like 8,192 and leaving the 65,536 default in place. To spend fewer tokens, lower the thinking level instead. Explicit caching (cachedContents) is not supported. For native streaming, call :streamGenerateContent?alt=sse.
For every parameter, see the native Gemini API docs and the Chat Completions docs. Replace the model name in the examples with gemini-4-hydrogen.
Gemini 4 Hydrogen API for teams and enterprises
Top up, issue invoices yourself, and work with a dedicated support and technical contact.
- Invoices
Issue them yourself
Issue an invoice in the console for the amount you actually topped up, whenever you need one.
- Dedicated support
Account and technical contacts
Work with a dedicated support contact and technical engineer for onboarding, migration and troubleshooting.
- WeChat Pay
- Alipay
- USDT
- Credit card
Why teams trust AnyAIGC
Trial credit, top-ups, refunds, data handling and billing, spelled out up front.
5M free tokens to start
New accounts get trial credit, so you can test before you top up.
Top up from $1, refundable
Top up from $1. Unused balance can be refunded with no fee.
Official channels, real models
Requests go to official model channels, never cheaper or reverse-engineered substitutes.
No retention, no training
Unless the law requires it, your prompts and outputs are not persistently stored or used for training. See the privacy policy.
Transparent billing, spend caps
See tokens and cost for every request in the console, and set a quota on each API key.
24/7 support
Contact support any time about integration, billing or incidents.
Other Gemini models
One API key calls every Gemini model below. Pick by task difficulty and budget.
- LatestGemini 4 HydrogenFast-execution model for everyday coding and agents · $0.5360 / 1M input
- Gemini 4 CarbonGemini 4 frontier model for long-horizon agents · $0.7147 / 1M input
- Gemini 4 ArgonGoogle's flagship reasoning model · $0.4200 / 1M input
- Gemini 3.8 FlashGoogle's most intelligent Flash: fast and low cost · $0.1575 / 1M input
- Gemini 3.8 Flash TTSText to speech, 30 voices, two speakers · $3.2163 / 1M audio output
- Gemini 3.1 ProGemini 3 Pro, in preview · $0.1985 / 1M input
Specs and how to choose it
Google's docs describe Gemini 4 Hydrogen as the model for everyday coding and agentic workflows, with speed and efficiency.
The context window is 1,048,576 tokens (input and output combined), max output is 65,536 tokens by default and up to 1,048,576 with long decode; input can be text, image, video, audio and PDF, and output is text.
This page lists Input at $0.5360, Output at $2.6800, Cache hit at $0.0268, matching the pricing table above.
Compared with gemini-4-argon: Google positions Argon as the stronger efficient reasoning model, so choose it for complex coding, math and science tasks.
Specs come from the vendor's official documentation (aistudio.google.com). The table on this page is the price, and the model catalog is authoritative for live rates.
Gemini 4 Hydrogen API FAQ
How much does the Gemini 4 Hydrogen API cost?
On AnyAIGC, gemini-4-hydrogen is billed per token: $0.5360 per 1M input tokens, $2.6800 per 1M output tokens and $0.0268 per 1M cached tokens. Google's paid-tier list price is $1.50 input, $7.50 output and $0.075 cache, so AnyAIGC costs about 36% of Google's list price, 64% off. Output includes thinking tokens.
What is the Gemini 4 Hydrogen model ID? Is it generally available?
The model ID is gemini-4-hydrogen. Google released it on November 12, 2026, and the model page marks it Stable, not a preview. The native endpoint puts the model name in the URL (/v1beta/models/gemini-4-hydrogen:generateContent); the OpenAI-compatible endpoint takes it in the model field.
What are the context window and maximum output?
Google lists a 1,048,576-token context window shared by input, thinking and output. A synchronous request returns up to 65,536 output tokens by default; output beyond 64K (up to about 1M tokens) runs through Google's background execution feature or client-side continuation.
How do I set the thinking level?
Gemini 4 Hydrogen supports four thinking levels, low, medium, high and xhigh, with high as the default. That differs from Argon and Carbon, which default to medium. On the native endpoint, set generationConfig.thinkingConfig.thinkingLevel. Google suggests starting most tasks at high and reserving xhigh for multi-step problems that high cannot solve; sending minimal returns an error, and temperature, top_p and top_k are ignored.
Should I use the native Gemini endpoint or the OpenAI-compatible one?
Either works. The native endpoint is POST https://anyaigc.ai/v1beta/models/gemini-4-hydrogen:generateContent with the same request body as the Google Gemini API, so you can use contents, systemInstruction, tools and thinkingConfig. The OpenAI-compatible endpoint is POST https://anyaigc.ai/v1/chat/completions; with the official OpenAI SDK, set base_url to https://anyaigc.ai/v1. Both use Authorization: Bearer.
Gemini 4 Hydrogen vs Argon, Carbon and 3.8 Flash: which should I use?
Google's positioning: Hydrogen handles fast execution, for everyday coding, interactive web apps, tool-calling agents, multimodal document work and parallel sub-agents. Argon and Carbon handle deep, long-horizon reasoning, and Carbon thinks the most. Google recommends upgrading from Gemini 3.8 Flash to Hydrogen, and having Carbon plan while Hydrogen makes code changes and runs tests. On Google's list price, Hydrogen costs less than Argon and Carbon. On AnyAIGC, Hydrogen is $0.5360 input and $2.6800 output, Argon is $0.4200 input and $2.1000 output, and Carbon is $0.7147 input and $3.5740 output. All three share one key; switch by changing the model name.
How is caching billed?
Gemini 4 Hydrogen supports implicit caching only, not explicit caching (cachedContents). Per Google, prompts of 4,096 tokens or more are automatically eligible for caching, and cached tokens cost $0.0268 per 1M on AnyAIGC, 5% of the input price.
Are there concurrency or rate limits?
AnyAIGC sets no concurrency limit on gemini-4-hydrogen. Every account gets this by default, which suits batch jobs and several sub-agents running in parallel.
Do I need a Google Cloud account?
No. You only need an AnyAIGC account. Requests go to https://anyaigc.ai, billing is in US dollars, and you can pay by card, WeChat Pay, Alipay or USDT.
How do I get a Gemini 4 Hydrogen API key?
Sign up at anyaigc.ai, top up, and create a token in the console. The same key works for Gemini 4 Hydrogen and 300+ other models on the platform, with no Google Cloud account required.
Can I get an invoice from AnyAIGC?
Yes. You can issue invoices yourself in the console, for the amount you actually topped up.
Which payment methods are supported?
You can top up with WeChat Pay, Alipay, USDT or a credit card. Your balance is in USD and works across every model on the platform. Invoices can be issued in the console for the amount you topped up.
Is there free trial credit for new users?
Yes. New accounts get 5 million tokens of trial credit, so you can test before deciding to top up. Top-ups start at $1.
Can I get a refund on my balance?
Yes. Unused balance can be refunded with no fee. Contact support to start a refund.
Are these the real models? Is my data safe?
Requests go to official model channels, never cheaper or reverse-engineered substitutes. Unless the law requires it, we do not persistently store your prompts or outputs or use them for training, and the console shows tokens and cost for every request.
Is my data used for training?
No. Unless the law requires it, AnyAIGC does not persistently store your prompts or outputs or use them for training, and requests are encrypted in transit over HTTPS. See the AnyAIGC Privacy Policy for details. The model's own data policy is governed by Google's official terms.
Run Gemini 4 Hydrogen at 64% off Google's list price
Sign up, create an API key and call gemini-4-hydrogen from your code in minutes, using the native API or the OpenAI SDK.