Gemini 4 Hydrogen API Guide (2026): $1.50 Input, 1M Context, and When to Pick It

Google made Gemini 4 Hydrogen (gemini-4-hydrogen) generally available on November 12, 2026. The Gemini API changelog lists it on the free tier and at paid pricing of $1.50 per 1M input tokens and $7.50 per 1M output tokens. Google also made it the default model for the Antigravity agent in Gemini Managed Agents. That default says a lot about the intended use: everyday coding and multi-step agent work, not the hardest reasoning jobs.

Below is what matters if you're deciding whether to route traffic to it. I checked the pricing page, the model page, and the changelog before writing this.

Key takeaways
  • Gemini 4 Hydrogen (gemini-4-hydrogen) became generally available on November 12, 2026.
  • Paid pricing is $1.50 per 1M input tokens and $7.50 per 1M output tokens. Thinking tokens bill at the output rate.
  • The model has a unified 1,048,576-token context window for input and output, with 65,536 tokens of default synchronous output.
  • Implicit context caching costs $0.075 per 1M tokens. Explicit caching is not supported.
  • Hydrogen costs less than Gemini 4 Carbon on both input and output, and it has a free tier that Carbon does not.

What Changed in This Release

Three details stand out. Hydrogen is the default model for the Antigravity agent. It adds an xhigh thinking level beside low, medium, and the default high. Google also published a "What's new" document covering API changes and migration from Gemini 3.8 Flash. If you're already on 3.8 Flash, read that document before you swap model strings.

Pricing at a Glance

ModelInput (per 1M tokens)Output, incl. thinking (per 1M tokens)Context windowFree tier
gemini-4-hydrogen$1.50$7.501,048,576 tokensYes
gemini-4-carbon$2.00 through Nov 30, 2026; $4.00 from Dec 1, 2026$10.00 through Nov 30, 2026; $20.00 from Dec 1, 20261,048,576 tokensNo

Carbon's prices double on December 1, so the gap between the two models widens after that date.

Hydrogen vs Carbon

AttributeGemini 4 HydrogenGemini 4 Carbon
PositioningEveryday coding and agentic workflows, with an emphasis on speed and efficiencyGoogle's most capable reasoning model, for complex software engineering, math, science, and autonomous multi-step agents
Context window1,048,576 tokens1,048,576 tokens
Default max output65,536 tokens; up to 1,048,576 with long decode65,536 tokens; up to 1,048,576 with long decode
Free tierYesNo
Key limitationGoogle Search grounding costs $14 per 1,000 requests after 5,000 free requests per month, shared across Gemini 3 and newer modelsPaid only; input and output prices double on December 1, 2026

What a Monthly Workload Costs

Take a workload of 10M input tokens and 2M output tokens per month, with no caching or grounding. Hydrogen comes to $30: $15 for input and $15 for output. Carbon costs $40 until December 1 and $80 after that.

Thinking tokens count as output, so a reasoning-heavy workload will bill more output than its visible text suggests. Run a sample of real requests and read the usage_metadata counts before you trust a projection. The API cost calculator helps with the arithmetic.

Calling the API

Set the model string to gemini-4-hydrogen and keep the rest of your Gemini request format unchanged. Here is a plain request in curl:

curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-4-hydrogen:generateContent"   -H "x-goog-api-key: $GEMINI_API_KEY"   -H "Content-Type: application/json"   -d '{"contents":[{"parts":[{"text":"Write a Python function that validates an ISO 8601 date string."}]}]}'

The Python SDK version:

from google import genai

client = genai.Client()  # reads GEMINI_API_KEY from the environment
resp = client.models.generate_content(
    model="gemini-4-hydrogen",
    contents="Write a Python function that validates an ISO 8601 date string.",
)
print(resp.text)
print(resp.usage_metadata)

And Node.js:

import { GoogleGenAI } from "@google/genai";

const ai = new GoogleGenAI({});  // reads GEMINI_API_KEY from the environment
const res = await ai.models.generateContent({
  model: "gemini-4-hydrogen",
  contents: "Write a Python function that validates an ISO 8601 date string.",
});
console.log(res.text);

Implicit caching only helps when the stable part of your prompt comes first. Put system instructions, tool schemas, and reference documents at the start of the request, and put the user's question at the end. Otherwise the cache sees a different prefix on every call and misses.

Where Hydrogen Fits

Agent loops make the output price matter most. An agent that calls tools dozens of times per task produces output on every step, and each million of those tokens costs $7.50. Make Hydrogen your default, and move a task to Carbon only when your own evals show Hydrogen failing. I didn't find an independent benchmark in the sources I checked, so vendor claims shouldn't decide this for you.

If you already use several providers, KissAPI gives you one OpenAI-compatible endpoint, so you can compare models without rewriting client code. Check the model list at api.kissapi.ai before you assume a specific Gemini model is routed there.

Test Hydrogen Against Your Current Model

Create a free account at api.kissapi.ai/register and run your own prompts side by side before you move production traffic.

Start Free

Frequently Asked Questions

How much does Gemini 4 Hydrogen cost per million tokens?

On the paid tier, Gemini 4 Hydrogen costs $1.50 per 1M input tokens and $7.50 per 1M output tokens. Thinking tokens bill at the output rate. A free tier is also available.

What is the Gemini 4 Hydrogen context window?

The context window is 1,048,576 tokens, a unified limit for input and output. Default synchronous output is 65,536 tokens, and long-decode output can reach 1,048,576 tokens.

When did Gemini 4 Hydrogen become generally available?

Google made Gemini 4 Hydrogen generally available on November 12, 2026, according to the Gemini API changelog.