Gemini 4 Hydrogen

发布于 2026-11-12

chat图像理解代码工具调用推理提示词缓存

Gemini 4 Hydrogen 是谷歌 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

Benchmark 成绩

Gemini 4 Hydrogen:公布了 10 项成绩,但每一项测过的其他模型都太少,没法比较。

Gemini 4 Hydrogen 其他参测模型 同类均值 ★ 没有模型得分更高
SWE-sweep Hydrogen: Antigravity CLI 1.4.8. Peers: official leaderboard
13.5%
OSWorld 2.1 82 offline tasks, partial score. Hydrogen and Sonnet: best of 3. Terra: system card
77.6%
Agents’ Last Exam v1.1 Oct 17 task set. Hydrogen: Antigravity CLI. Sonnet: ALE-Claw. Terra: official leaderboard
71.6%
HLE-Diamond Artificial Analysis leaderboard, November report
58.8%
Vending-Bench 2 (USD) Andon Labs leaderboard, Hydrogen report · 9107-14549
14549
Chartography No tools. Hydrogen and Terra: Google evaluation. Sonnet: system card
66.6%

供应商公布: Google

价格在同类中的位置

价格在 79 个同类模型中的位置

输入$1.5/M
$0.1 · Claude Haiku 5.5 GPT-5.4 Pro · $30
输出$7.5/M
$0.275 · DeepSeek V4 Flash GPT-5.4 Pro · $180
缓存读取$0.075/M
$0.006 · DeepSeek V4.1 Flash Claude Fable 5 · $1

这条线标出该模型的价格在 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

依据 模型规格来源 ↗

一条提示词,经网关实测

提示词 Explain to a CFO, in exactly three sentences, why our LLM bill doubled after we enabled reasoning. 检查 恰好 3 句

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 计数暴露出的隐藏思考计费差额。

提示词 This function is supposed to return the longest run of consecutive equal items, but callers report it is off by one on single-element inputs and misses runs that end at the last index. Fix it and explain the bug in one paragraph. 检查 修复通过测试

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 效率。

提示词 Extract a JSON object with fields {company, quarter, revenue_usd_m, growth_pct, guidance} from this text. Use null for anything not stated; add no other fields. 检查 合法 JSON,严格符合 schema

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),以及结构化输出路径的差异。

提示词 Write a 120-word product announcement for an API gateway feature that caches prompts across providers. Forbidden words: "seamless", "unlock", "game-changer", "revolutionize", "empower". Exactly one sentence must be a question. 检查 120 词,0 个禁用词

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)

关于 Gemini 4 Hydrogen

  • 官方模型页称它以更快的速度和更高的效率,把前沿智能带到日常编程和企业智能体工作流中;谷歌的迁移指南把它列为 Gemini 3.8 Flash 及更早的 Gemini 3 Flash 模型的升级型号。
  • 它接受文本、图像、音频、视频和 PDF 输入并返回文本。
  • 上下文窗口是输入与输出共用的一个 1,048,576 token 上限;单次请求最多返回 65,536 个输出 token,流式和非流式相同。
  • 思考有 low、medium、high(默认)和面向深度推理的 xhigh 四个档位,没有关闭选项,也没有数值型思考预算,因此通过 Synthorai 发出的要求最少推理的请求会按 low 运行,要求最多推理的请求会按 xhigh 运行。
  • 谷歌文档还说明,自定义的 temperature、top_p 和 top_k 取值会被忽略。
  • 谷歌公布的标准价目表为每百万输入 token $1.50、每百万输出 token $7.50,文本、图像、视频和音频共用一个输入价,也不按上下文长度分档。
  • 输出价含思考 token,而默认档位是 high,设置最大输出 token 时要把这一点算进去。
  • 缓存只有隐式缓存,提示词至少 4,096 token 才会缓存,缓存输入每百万 token $0.075。
  • 谷歌表示,从 2027 年 1 月 12 日起 Hydrogen 支持可配置有效期的缓存控制,缓存写入默认按输入价的 1.25 倍计费。
  • Synthorai 通过 OpenAI 兼容的 chat completions 端点提供该模型,接进现有集成无需换用谷歌专用客户端。

常见问题

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 的输入价为 $1.5/百万 token,输出价为 $7.5/百万 token。这就是供应商官网价,平台不加价。 音频输入: $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 key 就能调用网关上的全部模型。

Gemini 4 Hydrogen 的知识截止日期是什么时候?

Gemini 4 Hydrogen 的知识截止日期是 2026-03,以供应商官方文档为准(核对于 2026-11-13)。

相关模型

对比

规格与厂商 benchmark 均附来源链接。网关支持情况说明的是 Synthorai 的实际实现。归档示例是单次网关请求,不代表模型的一般性能保证。价格来自公开价格接口或构建时使用的快照。

获取 API key 算算你的成本 →