LLM API Guide

Gemini 4 Hydrogen API: Access, Pricing and OpenRouter Setup

Call the Gemini 4 Hydrogen API via OpenRouter or Google AI Studio at $1.50/$7.50 per 1M tokens as of 2026-11-13, with Flex, Batch, EU routing, code, and Carbon comparisons.

Summary

  1. Call google/gemini-4-hydrogen and google/gemini-4-hydrogen:batch live on OpenRouter, Google AI Studio, Vertex AI, and Devin AI CLI.
  2. Compare OpenRouter channel rates from $0.75/$3.75 (Flex and Batch) to $1.50/$7.50 (Standard) and $1.65/$8.25 (EU in-region routing) as of 2026-11-13.
  3. Configure reasoning effort tiers (low, medium, high).

Unlike Gemini 4 Carbon, which remains locked behind Google's restricted preview for cyber defenders, Gemini 4 Hydrogen is open and callable right now. You can route requests to google/gemini-4-hydrogen and the asynchronous batch endpoint google/gemini-4-hydrogen:batch on OpenRouter today, or call gemini-4-hydrogen directly through Google AI Studio and Vertex AI using google-genai >= 2.34.0.

According to the Google DeepMind Model Card, Hydrogen is distilled and adapted from Gemini 4 Carbon to serve as the high-throughput coding and agent workhorse of the Gemini 4 family. It exposes four configurable reasoning tiers (low, medium, high, and xhigh) across a 1,048,576-token unified context window, with a knowledge cutoff of March 2026. If you try to pick Hydrogen in the free consumer Gemini web app, Google's backend router dynamically assigns models and will not let you pin it, so calling the API or OpenRouter is the only way to lock the model ID for every turn.

Third-party coding harnesses have already wired up the endpoint. Running Gemini 4 Hydrogen at xHigh reasoning inside the Devin AI CLI on a single-prompt 3D Amalfi coast and Positano water-rendering animation finished in 17 minutes. Running that exact same prompt at xHigh on Qwen 4 Max Preview inside Qoder took 42 minutes, consumed 29 plan credits, and spent a large part of the session stuck testing inside the built-in browser, while Hydrogen produced noticeably cleaner water textures in full screen. On heavier multi-step frontend tasks, pushing google/gemini-4-hydrogen to xhigh to generate a pure Three.js scene where a pot shatters into 71 closed 3D Voronoi shards with 2000Hz rigid-body collision and Fresnel reflections took 31 minutes and cost $6.21 across 121 API calls, with the model using its own multimodal vision pass to fix inverted normals and depth-of-field focus bugs before finishing.

On this page

OpenRouter Channel Pricing, Flex Tiers, and EU In-Region Routing

Prices in this section are as of 2026-11-13.

Google priced Gemini 4 Hydrogen at a flat $1.50 per 1M input tokens and $7.50 per 1M output tokens across the entire 1M context window. Unlike older Gemini Pro models or flagship tiers that double your token rate once a prompt crosses 200K tokens (which we break down in our Gemini API pricing guide), a 900K-token repository dump on Hydrogen costs the exact same per token as a 4K-token prompt.

When you call google/gemini-4-hydrogen on OpenRouter, your cost, latency, and throughput depend on which upstream Google provider and service tier handles the request.

Channel / Mode Upstream Provider Input (/1M) Output (/1M) Cache Read (/1M) P50 Latency Throughput Notes & Routing Rules
Standard Google AI Studio $1.50 $7.50 $0.0750 2.60s 164 tok/s Fastest standard synchronous route
Standard Google Vertex $1.50 $7.50 $0.0750 3.25s 104 tok/s Production Vertex route
Flex Google AI Studio Flex $0.75 $3.75 $0.0375 2.22s 182 tok/s 50% off using off-peak capacity (as of 2026-11-13)
Batch Google Vertex Batch $0.75 $3.75 $0.0375 Async Async Call google/gemini-4-hydrogen:batch
Priority Google AI Studio Priority $2.70 $13.50 $0.1350 1.62s 153 tok/s Lowest time-to-first-token queue
Priority Google Vertex Priority $2.70 $13.50 $0.1350 5.25s 97 tok/s Dedicated high-concurrency route
EU In-Region Google Vertex (EU) $1.65 $8.25 $0.0825 2.65s 134 tok/s Requires Business plan + eu.openrouter.ai
US In-Region Google Vertex (US) $1.65 $8.25 $0.0825 2.41s 95 tok/s Locked to US-only Vertex regions

Audio cache reads match the standard cache read rate on every tier ($0.0750/1M on Standard, $0.0375/1M on Flex and Batch, and $0.1350/1M on Priority). In live generation tests at the default high reasoning tier, Google AI Studio routes average 161 to 190 tokens per second and peak around 216 tokens per second.

If your team operates under GDPR or strict EEA data residency rules, standard OpenRouter routing will not keep your prompts inside Europe. To enforce EU in-region routing for Gemini 4 Hydrogen, you need an OpenRouter Business or Enterprise plan (the Business tier is self-serve and has no monthly minimum spend) and you must point your client's base URL to https://eu.openrouter.ai/api/v1. Requests sent to the EU endpoint are decrypted inside the European Union and routed exclusively to Google Vertex (EU) nodes at $1.65 per 1M input tokens and $8.25 per 1M output tokens.

Minimal Runnable OpenRouter Setup (Python and cURL)

OpenRouter maps Gemini 4 Hydrogen's four thinking levels to the standard reasoning.effort parameter (low, medium, high, and xhigh), so you do not need to install Google's native SDK just to toggle thinking depth. You can use the standard OpenAI Python client and pass reasoning inside extra_body:

python
import os
from openai import OpenAI

# Use https://eu.openrouter.ai/api/v1 if you require EU in-region routing
client = OpenAI(
    base_url="https://openrouter.ai/api/v1",
    api_key=os.environ.get("OPENROUTER_API_KEY"),
)

response = client.chat.completions.create(
    model="google/gemini-4-hydrogen",
    messages=[
        {"role": "system", "content": "You are a senior backend engineer."},
        {"role": "user", "content": "Write a bounded asyncio worker pool in Python with graceful SIGTERM shutdown."}
    ],
    extra_body={
        "reasoning": {
            "effort": "high"  # Options: "low", "medium", "high" (default), "xhigh"
        }
    }
)

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

For quick terminal sanity checks or streaming verification, hit the /v1/chat/completions endpoint directly with curl:

bash
curl -N https://openrouter.ai/api/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -d '{
    "model": "google/gemini-4-hydrogen",
    "stream": true,
    "reasoning": {"effort": "medium"},
    "messages": [
      {"role": "user", "content": "List the breaking changes when migrating a FastAPI app to Pydantic v2."}
    ]
  }'

If you are wiring google/gemini-4-hydrogen into local coding agents like Codex CLI or Claude Code through SeedRouter or OpenRouter and want to avoid hand-editing config files, you can use our open-source LLM API Config GUI. We built it for Windows and macOS so you can swap Base URLs, API keys, and model IDs in one window, export profiles straight to CC Switch, and run built-in connection diagnostics when an upstream gateway throws a 401, 403, 404, 429, or timeout.

Gemini 4 Hydrogen vs. Gemini 4 Carbon and Argon

Prices in this section are as of 2026-11-13.

The Gemini 4 lineup splits workloads by reasoning horizon rather than just parameter count. Google's developer announcement highlights this in Google Antigravity's new Orchestrator mode, which puts Gemini 4 Carbon in charge of top-level architecture planning while delegating parallel file edits and test verification to Gemini 4 Hydrogen sub-agents. On Google's internal Terminal-Bench 4.0 evaluations, pairing Carbon with Hydrogen matched standalone Carbon task success rates while cutting quota usage by 24% and wall-clock completion time by 19%.

Feature / Metric Gemini 4 Hydrogen Gemini 4 Carbon Gemini 4 Argon
Primary Role High-speed coding & sub-agent execution Frontier architecture & deep bug analysis Long-horizon multi-step research & state
OpenRouter Model ID google/gemini-4-hydrogen google/gemini-4-carbon Not listed under a standalone 4-argon slug
Current API Access Open to all tiers (AI Studio, Vertex, OpenRouter) Restricted preview (Cyber Defenders cohort) Open on paid Google Cloud & AI Studio tiers
Standard Input / Output Price $1.50 / $7.50 per 1M tokens $2.00 / $10.00 per 1M tokens Higher (flagship tiered pricing)
Batch / Flex Pricing $0.75 / $3.75 per 1M tokens Not published Not published
Context Window 1,048,576 unified input + output tokens 1,048,576 tokens 1,048,576+ tokens
Max Output Tokens 65,536 sync / up to 1M via long decode 65,536 tokens 65,536 tokens
AA Intelligence Index 51 (high) / 54 (xhigh) Pending independent public run 50
Real-World Output Speed 160–216 tok/s (190 tok/s benchmarked) ~80–110 tok/s ~70–95 tok/s

Despite costing 25% less per token than Carbon, Hydrogen outscores Gemini 4 Argon (50) on the Artificial Analysis Intelligence Index, hitting 51 at high and 54 at xhigh. On DeepMind's model card benchmarks, Hydrogen posts 13.5% on SWE-sweep (compared to 3.1% for Claude Sonnet 5.5 and 5.8% for GPT-6.1 Terra), 71.6% on Agents' Last Exam v1.1, 58.8% on HLE-Diamond, and $14,549 on Vending-Bench 2, while cutting fabricated claims by more than 80% compared to Gemini 3.8 Flash. Where Hydrogen still trails Claude Sonnet 5.5 is raw terminal and OS manipulation: Sonnet 5.5 leads on Terminal-Bench 4.1 (63.9% vs. Hydrogen's 57.0%) and OSWorld-2.1 offline computer use (83.9% vs. 77.6%).

One operational detail to watch on your bill is reasoning verbosity at xhigh. Because output tokens include hidden thinking tokens billed at $7.50/1M, turning effort up to xhigh causes Hydrogen to generate huge reasoning chains—304M tokens across the full Intelligence Index suite, more than four times the 72.8M-token industry median. That extra thinking pushes average time-to-first-answer-token to 37.77 seconds and brings the average cost per complex benchmark task to $3.16. Keep low or medium set for routine repo searches and reserve xhigh for single-shot architectural generation or physics and shader math.

What Google Has Not Officially Confirmed Yet

Prices in this section are as of 2026-11-13.

While the endpoints respond today, three production details have not yet been formally documented by Google. First, Google has not published a formal General Availability (GA) date with binding enterprise SLA terms for direct AI Studio and Vertex AI calls; the launch posts describe the release as rolling out across tiers today, whereas OpenRouter already exposes live uptime metrics per upstream provider. Second, neither the DeepMind model card nor the Google Cloud enterprise guide specifies the exact buffer truncation boundary when a non-streaming request feeds more than 900K input tokens into the 1,048,576 unified input-plus-output window. We know synchronous calls cap output at 65,536 tokens and background long-decode continuation can chain outputs up to the full 1,048,576 limit via previous_interaction_id and continuation_token, but Google has not documented whether a 990K input prompt silently clamps max_output_tokens or throws an HTTP 400. Third, while OpenRouter already prices cache reads at $0.075 per 1M tokens (a 95% discount off standard input), Google Cloud's master pricing table has not yet broken out standalone cache write (creation) and hourly cache storage rates specifically for gemini-4-hydrogen.

Sources and checks

  1. google/gemini-4-hydrogen
  2. Google DeepMind Model Card
  3. Google's developer announcement