How Much To Run AI
Hosted API

Gemini 4 Hydrogen: API Pricing and Everyday Agent Work

Gemini 4 Hydrogen is Google’s execution-focused model for everyday coding, tool use and multimodal document work. Use it through the Gemini API or AI Studio, or pair it with Carbon in Antigravity. Standard paid API usage costs $1.50 per million input tokens and $7.50 per million output tokens, including thinking. Its one-million-token window is shared by input, thinking and output.

Content reviewed:

Gemini 4 Hydrogen rates from $0.75 to $2.70 per million input tokens across Standard, Batch, Flex and Priority, a bounded task at $0.30 on Standard or $0.186 with 80% cache hits, and effort-level results from 54.3% at $5.59 per task down to 27.9% at $0.28.
Original diagram of the published rates and measured effort trade-offs; the 1,048,576-token window covers input, thinking and output together.

Use this model

Online access and trials

API docs and console

Use cases

  • Implement a bounded repository change, run its tests and inspect the resulting diff.
  • Extract and reconcile information from PDFs, charts, recordings and spreadsheets.
  • Use Hydrogen for execution while Carbon handles architectural decisions and difficult debugging.

Choose an API, AI Studio or Antigravity workflow

The stable Gemini Developer API model ID is gemini-4-hydrogen. AI Studio offers an interactive way to try a prompt before integrating it into an application. The model is available on free and paid API tiers; their limits and data-use terms differ. Paid-tier data is not used to improve Google products, while the free tier permits that use.

Antigravity is a coding environment with its own tools and subscription quota. At launch, Hydrogen is available in Antigravity to paid Google AI Pro and Ultra subscribers. Gemini app and Search access are separate product routes: free app users can receive Hydrogen through automatic model selection. An app subscription does not pay your separate Developer API bill.

Cursor also offers Hydrogen in its model picker and recommends high effort for agentic coding. Its model page lists 200K default context and up to 1M maximum context. Hydrogen uses Cursor’s third-party model billing: prepaid credit on The X Subscription, or the Other Models pool on legacy plans. Use Cursor’s allowance and usage records when budgeting that route.

Send a first Hydrogen API request

Set GEMINI_API_KEY in your local shell using a key for the intended Google project. The following REST request uses the Interactions API and an explicit medium thinking level. Read the returned text and usage, then run any generated code in your own development environment. The request returns code; it does not grant access to your repository or run a test suite.

For a repository agent, connect the model through a client that supplies file, shell and test tools. Give it one issue and a concrete acceptance test. Include the tool results in subsequent turns and inspect the final diff. Tool declarations, repeated source files, retries and reasoning all affect the complete session’s usage.

REST request: paid-tier usage incurs token charges
curl "https://generativelanguage.googleapis.com/v1beta/interactions" \
  -H "x-goog-api-key: $GEMINI_API_KEY" \
  -H 'Content-Type: application/json' \
  -X POST \
  -d '{
    "model": "gemini-4-hydrogen",
    "input": "Write a Python function that parses a UTC ISO 8601 timestamp and tests for valid, invalid and timezone-free inputs.",
    "generation_config": {"thinking_level": "medium"}
  }'

Gemini 4 Hydrogen API pricing and task budgets

Checked November 13, 2026, these are Gemini Developer API USD rates per million tokens. The standard input/output rate remains flat across the supported context window. Output includes billed thinking tokens. Cached input uses implicit caching only; explicit cache creation is unsupported. Batch and Flex cost less per token but serve different latency and scheduling needs.

For an illustrative task totaling 100,000 fresh input tokens and 20,000 billed output tokens across all turns, Standard costs $0.15 + $0.15 = $0.30. The same token totals cost $0.15 on Batch or Flex and $0.54 on Priority. These totals exclude paid tool services and assume every input token is fresh.

If 80,000 of those input tokens qualify for Standard cache-hit pricing, the example becomes $0.03 fresh input + $0.006 cached input + $0.15 output = $0.186. Use the response usage breakdown to apply the cache rate, rather than assuming that every repeated prompt is a cache hit.

API consumption optionInput / 1M tokensOutput / 1M tokensCached input / 1M tokens
Standard$1.50$7.50$0.075
Batch$0.75$3.75$0.0375
Flex$0.75$3.75$0.0375
Priority$2.70$13.50$0.135

Add grounding and external tool charges

Google Search grounding includes 5,000 free search requests per month shared across Gemini 3 and newer models, then costs $14 per 1,000 queries, subject to the listed daily cap of 1,500 requests. One user request can cause several queries. Google Maps has its own listed allowance and query charge. Browser services, sandboxes and other tools supplied by your application can add costs outside the model’s token bill.

For a simple budget, add model tokens, billable grounding queries and the runtime used by tools. At $14 per 1,000 queries, 100 billable Search queries add $1.40. Keep failed attempts in the task total when deciding whether a cheaper thinking level saves money.

Choose low, medium, high or xhigh thinking

High is the default. Google recommends it for complex coding and multi-step work. Medium targets interactive coding and latency-sensitive tool calls; low minimizes reasoning overhead for simpler work. Xhigh spends more tokens and time on difficult problems and can overthink a simple prompt.

Compare levels on a task with a checkable result. A short response that needs three repairs can cost more than one successful high-effort attempt. Record total input, billed output, tool calls and elapsed time, then choose the lowest level that reaches your acceptance criterion. The max_output_tokens setting bounds thinking plus final output, so an overly small cap can truncate the answer.

Fit input, thinking and output into the same 1M window

The documented unified window is 1,048,576 tokens, shared across input, thinking and output. Synchronous responses allow up to 65,536 tokens per hop. Longer generation uses background execution or continuation, within the remaining shared window. Loading almost a million tokens of source material leaves less room for reasoning and the result.

Hydrogen accepts text, images, video, audio and PDFs and returns text. Function calling, structured output, code execution and computer use are supported; image generation, audio generation and the Live API are not. Choose a generative media model when the output itself must be an image or speech recording.

When migrating from Gemini 3.8 Flash, check the combined context budget and output limits as well as the model name. Preserve the API’s required conversation state when using tools, and test the complete client workflow rather than substituting an isolated text response for an agent run.

Pair Hydrogen with Carbon through Orchestrator

Orchestrator in Antigravity switches between Carbon and Hydrogen within a session. Carbon can plan or investigate a difficult blocker, while Hydrogen implements and verifies changes. This is useful when a task alternates between deep reasoning and routine execution. A direct Hydrogen API call does not automatically enable Antigravity’s orchestration. At launch, Ultra subscribers can choose Orchestrator (Carbon) or Orchestrator (Argon); paid Pro subscribers get Orchestrator (Argon).

Google reports near-Carbon task success in its Terminal-Bench evaluation with 24% less quota and 19% faster completion on average. Those are publisher evaluation results for the combined workflow. Quota savings describe Antigravity’s allowance, not a measured percentage reduction in your API invoice.

Gemini 4 Hydrogen vs Argon and Carbon

Start with Hydrogen for rapid edits, debugging and repeated tool calls. Compare Carbon for difficult engineering or scientific reasoning, and Argon for frontier reasoning with lower token spend per turn than Carbon. Antigravity Orchestrator can combine these roles; direct API requests let you choose the model for each step.

For the same 100,000 fresh input tokens and 20,000 billed output tokens, Hydrogen Standard costs $0.30. Carbon or Argon costs $0.40 through November 30, 2026 and $0.80 from December 1. Hydrogen is therefore 25% cheaper at equal token volumes during the introductory period and 62.5% cheaper afterward. This calculation excludes cache and tools; different reasoning and retry usage can change the task total.

Artificial Analysis results read November 14, 2026 list Hydrogen high at 51 on its Intelligence Index and 8.3 minutes per task, against Argon high at 50 and 29.2 minutes. Hydrogen xhigh reaches 54 at 14.5 minutes; medium scores 41 and low 27. The index combines several task types, so the one-point high-effort lead is a reason for a representative trial rather than a prediction for every coding task.

Read Hydrogen’s coding results with their conditions

Google reports 57% on Terminal-Bench 4.1 against 18.2% for Gemini 3.8 Flash, alongside 2.5 times faster completion at Hydrogen’s default high setting. This standalone comparison evaluates Hydrogen itself; the Orchestrator result above evaluates a multi-model workflow. Neither result predicts the runtime of a particular repository task.

Use the benchmark as a reason to test the model on your workflow. Hold the repository revision, tool permissions, client and acceptance tests constant, and compare completed tasks alongside total spend. Deep architectural decisions can still justify Carbon or Argon even when Hydrogen is a better fit for rapid edits.

Compare effort and task cost in CursorBench

CursorBench 4.0 evaluates agents on ambiguous, multi-file tasks drawn from Cursor sessions. Its Hydrogen results checked November 13, 2026 show a quality and cost tradeoff across three effort levels:

Cursor calculates average task cost by applying published token rates to measured usage, including cache reads, cache writes and output. These are Cursor-run benchmark averages, not a flat price for a coding task or a prediction of your Cursor invoice. Use the same repository task and acceptance test when choosing an effort level for your own work.

Hydrogen effortCursorBench scoreAverage modeled task cost
High54.3%$5.59
Medium46.7%$1.76
Low27.9%$0.28

Before you use it

  • The context budget covers input, thinking and output together; long decode requires the corresponding execution mode.
  • Agent tool execution requires a client or environment that supplies and controls those tools.

How to get started

Try one bounded task in AI Studio or the API, measure complete-task usage, then choose a thinking level and tool environment for repeated work.

Sources

Sources (11)

Calculators