早鸟价(12 月 25 日截止),订阅期间一直锁定:Go $10/月(原价 $20),Plus 用 Opus 5.5 只要 $30/月(原价 $50)立即订阅 →
文本对话1M 上下文

Gemini 4 Hydrogen

在线与 Gemini 4 Hydrogen 对话,或通过兼容 OpenAI 的 API 进行调用。这是 Google 面向编程和智能体任务打造的高速 Gemini 4 模型,支持 1M token 上下文。

价格 / 100 万 token省 70%
官方AIReiter
输入$1.50$0.45
输出$7.50$2.25
缓存读$0.075$0.0225
缓存创建$0.00
说明文档
输入
限制回复长度。推理模型也会把思考计入其中。
gemini-4-hydrogen
输出

A codebase you don't know is a risk, not a hurdle. The plan should burn down that risk in order: understand, run, trace, spike, then make the change small enough that "production-ready" is a property you can demonstrate, not a hope.

Here are the first five steps, with the evidence you collect at each.

Step 1 — Get it building and the baseline green (half day)
Read the README, the manifest(s), the CI config, and any architecture docs. Boot the app locally, run the full test suite, run the linter/typechecker.
Evidence: The exact commands that reproduce a clean build and a passing test suite from a fresh checkout (recorded output, not memory of it). A one-page map you wrote yourself: where the entry points are, the layers, the build/test toolchain, and the main risks to your feature (e.g. "this touches cron jobs and payments").

Step 2 — Trace the smallest end-to-end slice that resembles your feature (half day)
Don't start with your feature. Pick a neighboring one that already works and follow it from entry to persistence. Note the conventions along the way: how errors surface, how config is injected, how logging is done, how tests are written.
Evidence: An annotated trace — file → function → what it does — for that slice. A written list of "conventions I must follow" (not intuitions; things you observed in real code). A named shortlist of the 3–5 files you will actually touch. If you can't produce this trace, you're not ready to write code.

Step 3 — Spike the core path (day 2)
Build the ugly version: hardcoded values, no error handling, no tests. The purpose is to confirm the path you traced in step 2 is real and to surface what you didn't know you didn't know.
Evidence: A working spike demonstrating the feature's central data path, alongside a list of every assumption the spike broke and what you corrected. That correction list is the most valuable document in this whole plan.

Step 4 — Write the contract before the code (half of day 2 / day 3)
Once the spike proves the path, pin down what production needs: the inputs/outputs, the error cases, where it sits in the conventions from step 2. Then write the tests — they'll be red, but they're the specification.
Evidence: A one-to-two-page design doc, an agreed interface/API shape (with the team if there is one), and a red test suite that encodes intended behavior. If you can't write the contract without consulting the code, you haven't finished step 2.

Step 5 — Implement in small, verified increments (days 3–4)
Replace the spike with the real thing in small commits, each one keeping the suite green, leaning on the existing patterns. Run lint/tests/typecheck per commit — CI, not just locally — and exercise the actual path against a real instance (staging or a local environment that isn't stubbed).
Evidence: A branch with progressive commits, each green in CI; coverage on the new code; something that proves it works against reality (a test result, a log trace, a screenshot); and a review by at least one person who knows the codebase. The review counts as evidence — an unfamiliar codebase has tribal knowledge you cannot extract from the files alone.

Steps 6+ would be the things that actually make it "shipped": a migration plan and its rollback, feature flagging, observability, the release and post-release verification. But the first five get you to a reviewed, green, working slice in staging — which is the point at which you can say "this will work in production" with evidence behind it, instead of a guess.

生成耗时42.7s
输入 Token134
输出 Token2,354
token / 秒55.13
TTFT-

在本页直接运行,需要登录并有积分。

模型详情

在 Playground、API 请求和内部工作流中使用相同的模型 key。

模型 ID
gemini-4-hydrogen
供应商
Google
协议
OpenAI Chat Completions
上下文窗口
1,048,576 Token
最大输出
65,536 Token
输入 Token
45 credits / 1M Token
输出 Token
225 credits / 1M Token
缓存读取
2.25 credits / 1M Token
缓存写入
0 credits / 1M Token

什么是 Gemini 4 Hydrogen

Gemini 4 Hydrogen 是 Google 默认的通用型 Gemini 4 模型,基于 Gemini 4 Carbon 针对速度与效率进行了优化适配。Google 专为日常编程和智能体工作流打造该模型,并推荐将其作为 Gemini 3.8 Flash 的升级替代方案。

开发者

Google

发布日期

2026 年 11 月 12 日

上下文窗口

1,048,576 tokens,输入、思考与输出共享

最大输出

单次请求 65,536 tokens

思考级别

low、medium、high 和 xhigh;Google 默认设为 high

知识截止时间

2026 年 3 月

API 模型 ID

gemini-4-hydrogen

Gemini 4 Hydrogen 擅长什么

Google 将 Hydrogen 定位为快速、严谨的执行型模型,既可独立使用,也可配合更大模型担任执行助手。以下要点摘自 Google 官方文档与模型卡片。

日常编程

适用于代码仓库迭代开发、调试、Web 开发和快速原型设计。Google 表示,Hydrogen 编写的代码比 Gemini 3.8 Flash 更简洁,现已成为其日常编程的默认模型。

更少的编造回答

据 Google 报告,其虚构内容比 Gemini 3.8 Flash 减少了 5 倍以上。当缺少上下文信息时,经过调优的 Hydrogen 会如实说明,而不是凭空猜测。

工具调用智能体

Hydrogen 能够并行批处理读取和搜索类工具调用,并在工具调用失败时具备更强的恢复能力。Google 已将其设为旗下 Antigravity 智能体的默认模型。

作为更大模型的执行助手

由 Gemini 4 Carbon 负责规划接口或攻克棘手难题,再将代码编辑、并行子任务和测试运行交给 Hydrogen 执行,从而降低延迟并节省 token 消耗。

Gemini 4 Hydrogen 基准测试

Google 于 2026 年 11 月在 Gemini 4 Hydrogen 模型卡中公布的成绩,并与 Claude Sonnet 5.5 和 GPT-6.1 Terra 并列对比。以上为厂商公布数据,非独立第三方测试结果。

知识型工作

Agents' Last Exam v1.1:71.6%,领先于 Claude Sonnet 5.5 的 60.4% 和 GPT-6.1 Terra 的 69.8%。AutomationBench-AA:76.1%,对比两者的 71.8% 和 60.2%。

Agent 编程

Terminal-Bench 4.1:57.0%,低于 Claude Sonnet 5.5 的 63.9%。SWE-sweep:13.5%,对比 Sonnet 5.5 的 3.1% 和 GPT-6.1 Terra 的 5.8%。

计算机操作

OSWorld-2.1 离线子集:77.6%。Claude Sonnet 5.5 得分为 83.9%,GPT-6.1 Terra 为 74.2%。

推理与图表

HLE-Diamond:58.8%,对比 53.3% 和 47.3%。图表理解测试 Chartography:66.6%,对比 61.6% 和 63.2%。

Hydrogen、Carbon 还是 Neon?

这三款均为具备 1M token 上下文窗口的 Gemini 4 模型。以下是 Google 对各自适用场景的建议:

使用 Hydrogen 处理

日常编程、交互式 Web 应用、调用工具的智能体、文档与图表处理,以及并行运行多个子任务。它响应更快,且每轮消耗的 token 更少。

升级至 Carbon 处理

复杂架构设计与调试、科学难题以及安全验证——在这些场景下,更深度的推理和对答案的二次校验值得等待。

考虑使用 Neon 处理

复杂软件工程、知识工作以及科学研究工作流——需要前沿级的智能水平,同时仍需端到端快速完成。

在代码中调用 Gemini 4 Hydrogen

管理 API 密钥 →

只需修改 Base URL,即可在现有的 OpenAI 客户端中使用您的 AIReiter 密钥。上方的 API 标签页中提供可直接运行的请求示例。

01模型 ID

gemini-4-hydrogen

02接口端点

https://aireiter.com/api/v1/chat/completions,兼容 OpenAI Chat Completions 协议。

03Base URL 与密钥

将 base URL 设置为 https://aireiter.com/api/v1 并使用您的 AIReiter API key。修改 base URL 后,官方 OpenAI SDK 即可直接使用。

04为思考过程预留空间

Hydrogen 会在作答前进行思考。思考 token 按输出计费并与正式回复共用 max_tokens,因此在执行多步编程任务时请调高 max_tokens。

用 3 步试用 Gemini 4 Hydrogen

  1. 01

    尝试真实任务

    直接粘贴您需要处理的实际任务,例如未通过的测试及其上下文代码,或要构建的小型应用。Hydrogen 响应迅速,您可以直接在 Playground 中反复调试提示词。

  2. 02

    合理设置 max_tokens

    思考过程会计入 max_tokens。普通对话可保持适中数值,而在进行多文件修改或需要长篇回复时请适当调高,以免推理结束后正式回复被截断。

  3. 03

    复制 API 调用代码

    将相同的请求迁移到您的代码中,在 OpenAI 兼容端点上使用模型 ID gemini-4-hydrogen。每次回复的 token 用量都会显示在响应下方。

常见疑问

01什么是 Gemini 4 Hydrogen?

Gemini 4 Hydrogen 是 Google 推出的快速、高效的 Gemini 4 模型,专为日常编程与智能体工作流打造。Google 于 2026 年 11 月 12 日发布该模型,它基于 Gemini 4 Carbon 调优而来,并被官方推荐用于替代 Gemini 3.8 Flash 以及更早的 Gemini 3 和 2.5 模型。

02Hydrogen 与 Gemini 4 Carbon 有何不同?

Carbon 是 Google 能力最强的 Gemini 4 推理模型,会在难题上投入更多时间与 token。Hydrogen 则针对快速执行进行了调优:响应更快,每轮成本更低。Google 建议由 Carbon 负责规划或攻克难点,再由 Hydrogen 执行具体编辑和子任务。

03我应该传入哪个模型 ID?

请传入 gemini-4-hydrogen,这与 Google 在 Gemini API 中使用的 ID 一致。将您的 OpenAI 客户端指向 https://aireiter.com/api/v1,使用您的 AIReiter API 密钥,并像调用 AIReiter 上的其他模型一样调用 Chat Completions 接口即可。

04单次响应最长可以有多少?

每次请求最多可输出 65,536 个 tokens。输入、思考过程与输出共享一个 1,048,576 tokens 的上下文窗口,因此过长的提示词会减少留给回答的空间。如果回复提前截断,请先调高 max_tokens,再尝试缩短提示词。

05我需要 Google 账号或 Gemini API key 吗?

不需要。请配合 AIReiter 端点使用您的 AIReiter 密钥。如果想在编写代码前试用该模型,可以使用本页的 Playground,其运行的模型与您通过 API 调用的完全一致。

06基准测试数据是独立的吗?

不是。本页中的评分来自 Google 的 Gemini 4 Hydrogen 模型卡,并将其与 Claude Sonnet 5.5 和 GPT-6.1 Terra 进行了对比。Hydrogen 在多项知识工作测试中表现领先,但在 Terminal-Bench 和 OSWorld 上落后于 Sonnet 5.5,因此请先在您自己的任务上进行测试。

07在哪里可以查看价格?

本页顶部的实时价格表展示了当前每 1M tokens 的输入、输出和缓存输入价格。计费依据每次响应返回的用量数据,其中思考 tokens 按输出计费。