早鳥價(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
README
輸入
限制回覆長度。推理模型也會計入思考內容。
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 請求與內部工作流程中使用相同的模型鍵。

模型 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 的技術文件與模型卡。

日常程式設計

適用於儲存庫的迭代開發、除錯、網頁開發與快速原型製作。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%。

Agentic coding

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 的情境

日常程式開發、互動式網頁應用程式、呼叫工具的 Agent、文件與圖表處理,以及平行執行大量子任務。它能更快回應,且每輪消耗更少的 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 專為日常程式開發與 Agent 工作流程打造的快速、高效率 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 會以輸出計費。