Gemini 4 Hydrogen 是 Google Gemini 4 系列中主打高效率的模型,2026 年 11 月 12 日正式發布。
- 輸入
- 文字 圖像 音訊 影片 $1.5/M
- 輸出
- 文字 $7.5/M
- 快取讀取
- $0.075/M
- 音訊輸入
- $1.5/M
- 音訊快取讀取
- $0.075/M
- 上下文
- 1M
- 相較 GPT-4o
- 便宜約 70%
- 知識截止
- 2026-03
依輸入長度分級的價格
整次請求依輸入長度所在級距計費。價格單位為美元/百萬 token。
| 輸入 token 數 | 輸入 | 輸出 | 思考模式輸入 |
|---|
Benchmark 成績
Gemini 4 Hydrogen:公布了 10 項,但每一項都沒有夠多其他模型的成績,無法比較。
供應商公布: Google
價格在同類中的位置
價格在 79 個同類模型中的位置
這條線標出這個模型的價格,在 Synthorai 的同類模型裡落在什麼位置;兩端分別是最便宜和最貴的模型。這裡列的是基礎價,批次、區域和快取寫入的折扣請見價格頁。
規格與限制
Token
| 上下文視窗(供應商規格) | 1,048,576 |
|---|---|
| 最大輸出(供應商規格) | 65,536 |
| 知識截止 | 2026-03 |
提示詞快取
| 快取方式 | 自動 |
|---|---|
| 最小前綴 | 4,096 |
思考
| 供應商參數 | thinking_level |
|---|---|
| 可接受的值 | low · medium · high · xhigh; "minimal" and thinking_budget return 400 |
| 預設值 | high 請求未指定時生效 |
| 可關閉 | 不支援 |
| 思考行為 | There is no off setting and no numeric thinking budget. Custom temperature, top_p and top_k values are ignored. |
| 參數 | reasoning_effort |
| 參數值 | minimal · low · medium · high 這是閘道的參數,實際以上方的供應商對應為準 |
模型
| 模態 | 文字 + 圖像 + 音訊 + 影片 → 文字 |
|---|
- Google's high-efficiency Gemini 4 model for everyday coding and agentic workflows
- Google's migration guide names it the upgrade from Gemini 3.8 Flash. The output price includes thinking tokens, and the default thinking level is high. Caching is implicit only
- Google says that from 12 January 2027 it adds cache control with a configurable lifetime and bills cache writes at 1.25x the input price by default
依據 模型規格來源 ↗
一段提示詞,經閘道實測
Gemini 4 Hydrogen 通過 · 3 sentences
When reasoning is enabled, the AI generates extensive hidden "thinking" tokens to verify its logic step-by-step before delivering a final answer. Because vendors bill us for every token produced—meaning we pay full output-token rates for this invisible internal work—our billable consumption doubled even though the user-facing responses stayed the same length. To protect our margins, we should restrict reasoning mode strictly to complex, high-value tasks and route routine queries back to standard models.
輸出 1236 tok (+1136 思考) 延遲 9.0 s
是否照指令做(剛好三句,數得出來)、語氣是否貼合對象(寫給 CFO 看),以及下方 token 計量顯示出的隱藏思考計費落差。
Gemini 4 Hydrogen 通過 · 8/8 cases
```python def longest_run(xs): if not xs: return 0 best = 1 cur = 1 for i in range(1, len(xs)): if xs[i] == xs[i - 1]: cur += 1 best = max(best, cur) else: cur = 1 return best ``` The bug is that `best` and `cur` were initialized (and `cur` was reset) to `0` instead of `1`, causing the loop to count matching adjacent transitions rather than the number of elements in a run. As a result, any non-empty input was off by one—returning `0` on single-element lists where the loop doesn't execute at all, and undercounting every run (including runs ending at the last index) by 1. Returning `0` early for empty inputs and starting/resetting the run length at `1` ensures each element is counted accurately while still updating `best` on the final iteration when a run ends at the last index.
輸出 1489 tok (+1247 思考) 延遲 10.8 s
修正是否真的正確(跑得起來)、說明的資訊密度,以及在範圍明確的任務上的 token 效率。
Gemini 4 Hydrogen 通過 · 5/5 fields, guidance "withheld pending the Q4 close"
```json { "company": "Meridian Robotics", "quarter": "September quarter", "revenue_usd_m": null, "growth_pct": null, "guidance": "withheld pending the Q4 close" } ```
輸出 3165 tok (+3100 思考) 延遲 21.2 s
是否遵守 schema(不自創欄位)、面對幻覺誘因的表現(題目明確不給 guidance),以及結構化輸出路徑的差異。
Gemini 4 Hydrogen 通過 · 120 words, 0 banned, 1 question
Introducing unified prompt caching, the newest capability in our enterprise API gateway. Are you tired of paying repeatedly for identical prompts sent across different AI providers? Our gateway now caches prompts across major AI providers within a unified, shared memory layer. When an application submits a matching query, the gateway intercepts the request and returns the saved output in milliseconds, completely bypassing external inference fees. Engineering teams gain predictable latency and substantial cost reductions without modifying any existing application code. Managing cache policies at the infrastructure edge helps your organization prevent provider dependency while maintaining strict data privacy standards. Enable unified prompt caching in your dashboard today to build faster, more economical artificial intelligence applications across your entire technology stack.
輸出 3710 tok (+3574 思考) 延遲 24.1 s
是否遵守限制(字數上限、禁用詞清單、只能有一句問句)、文字風格的特徵,以及長度控制。
30 秒上手 Gemini 4 Hydrogen
相容 OpenAI:換掉 base_url,SDK 不用換。POST /v1/chat/completions
from openai import OpenAI
client = OpenAI(
base_url="https://synthorai.io/v1",
api_key="sk-syn-...",
)
resp = client.chat.completions.create(
model="gemini-4-hydrogen",
messages=[{"role": "user", "content": "Summarize this diff"}],
reasoning_effort="medium",
)
print(resp.choices[0].message.content)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://synthorai.io/v1",
apiKey: "sk-syn-...",
});
const resp = await client.chat.completions.create({
model: "gemini-4-hydrogen",
messages: [{ role: "user", content: "Summarize this diff" }],
reasoning_effort: "medium",
});
console.log(resp.choices[0].message.content);curl https://synthorai.io/v1/chat/completions \
-H "Authorization: Bearer sk-syn-..." \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-4-hydrogen",
"messages": [{"role": "user", "content": "Hello"}],
"reasoning_effort": "medium"
}'package main
import (
"context"
"fmt"
"github.com/openai/openai-go/v3"
"github.com/openai/openai-go/v3/option"
)
func main() {
client := openai.NewClient(
option.WithBaseURL("https://synthorai.io/v1"),
option.WithAPIKey("sk-syn-..."),
)
resp, _ := client.Chat.Completions.New(context.TODO(), openai.ChatCompletionNewParams{
Model: "gemini-4-hydrogen",
Messages: []openai.ChatCompletionMessageParamUnion{
openai.UserMessage("Summarize this diff"),
},
ReasoningEffort: openai.ReasoningEffortMedium,
})
fmt.Println(resp.Choices[0].Message.Content)
}import com.openai.client.OpenAIClient;
import com.openai.client.okhttp.OpenAIOkHttpClient;
import com.openai.models.chat.completions.*;
import com.openai.models.ReasoningEffort;
OpenAIClient client = OpenAIOkHttpClient.builder()
.baseUrl("https://synthorai.io/v1")
.apiKey("sk-syn-...")
.build();
ChatCompletion resp = client.chat().completions().create(
ChatCompletionCreateParams.builder()
.model("gemini-4-hydrogen")
.addUserMessage("Summarize this diff")
.reasoningEffort(ReasoningEffort.MEDIUM)
.build());
System.out.println(resp.choices().get(0).message().content().orElse(""));關於 Gemini 4 Hydrogen
- 官方模型頁稱它以更快的速度和更高的效率,把前沿智慧帶進日常程式開發和企業智慧體工作流程;Google 的遷移指南把它列為 Gemini 3.8 Flash 及更早的 Gemini 3 Flash 模型的升級型號。
- 它接受文字、圖像、音訊、影片和 PDF 輸入並回傳文字。
- 上下文視窗是輸入與輸出共用的一個 1,048,576 token 上限;單次請求最多回傳 65,536 個輸出 token,串流與非串流相同。
- 思考有 low、medium、high(預設)和面向深度推理的 xhigh 四個檔位,沒有關閉選項,也沒有數值型思考預算,因此透過 Synthorai 發出的要求最少推理的請求會以 low 執行,要求最多推理的請求會以 xhigh 執行。
- Google 文件還說明,自訂的 temperature、top_p 和 top_k 值會被忽略。
- Google 公布的標準價目表為每百萬輸入 token $1.50、每百萬輸出 token $7.50,文字、圖像、影片和音訊共用一個輸入價,也不按上下文長度分檔。
- 輸出價含思考 token,而預設檔位是 high,設定最大輸出 token 時要把這一點算進去。
- 快取只有隱式快取,提示詞至少 4,096 token 才會快取,快取輸入每百萬 token $0.075。
- Google 表示,從 2027 年 1 月 12 日起 Hydrogen 支援可設定有效期的快取控制,快取寫入預設按輸入價的 1.25 倍計費。
- Synthorai 透過 OpenAI 相容的 chat completions 端點提供該模型,接進既有整合無需換用 Google 專用用戶端。
常見問題
Gemini 4 Hydrogen API 可以免費試用嗎?
可以,新帳號有 10 次試用呼叫和最高 $1 的免費額度,免綁卡。以輸入價 $1.5/M 計算,光是這筆額度就夠你對 Gemini 4 Hydrogen 發出約 83 次請求,每次約 8K token。
Gemini 4 Hydrogen 最擅長什麼?
面向程式開發與智慧體的高效 Gemini 4、四檔思考,從 low 到 xhigh、輸入輸出共用 1M token 上限。完整介紹請見「關於」一節,內容取自供應商官方的發布說明。
Gemini 4 Hydrogen 的價格是多少?
在 Synthorai 上,Gemini 4 Hydrogen 的輸入價是每百萬 token $1.5,輸出價是每百萬 token $7.5。這就是供應商官網價,平台不加價。 音訊輸入: $1.5/百萬 token · 音訊快取讀取: $0.075/百萬 token快取命中的輸入 token 以 $0.075/M 計費。
Gemini 4 Hydrogen 的上下文長度是多少?
Gemini 4 Hydrogen 的上下文長度(上下文視窗)是 1M token。單次回覆最多輸出 65,536 個 token。
Gemini 4 Hydrogen 支援提示詞快取(prompt caching)嗎?
支援,而且全自動:由 Google 處理的提示詞會自動快取,不用改程式碼。快取命中的輸入 token 以 $0.075/M 計費(未命中為 $1.5/M);提示詞要有 4,096 個 token 以上的穩定前綴,才能命中快取。 提示詞快取指南 →
如何開通 Gemini 4 Hydrogen?
把現有 OpenAI SDK 的 base_url 指向 "https://synthorai.io/v1",model 設為 "gemini-4-hydrogen" 就可以了。一把 API 金鑰就能呼叫閘道上的所有模型。
Gemini 4 Hydrogen 的知識截止日期是什麼時候?
Gemini 4 Hydrogen 的知識截止日期為 2026-03,依據供應商官方文件(查核日期:2026-11-13)。
相關模型
比較
規格與廠商 benchmark 均附來源連結。閘道支援情況說明的是 Synthorai 的實際實作。封存範例是單次閘道請求,不代表模型的一般效能保證。價格來自公開價格介面或建置時使用的快照。