Gemini

Gemini 4 Hydrogen

Google按量收費
Alias:gemini-4-hydrogen

Gemini 4 Hydrogen 是 Google 面向日常程式設計與代理工作流程的高效多模態推理模型,支援四級推理,輸入與輸出共用 1,048,576 個 token,每段輸出最多 65,536 個 token。

textimageaudiovideofilestreamingfunction_callingtoolsreasoningvisioncachingstructured_outputcontext:1048576new
起始價格
輸入 / 輸出 · 1M
上下文
1M
最大輸入窗口
最大輸出
1M
單次回應最大 token 數
模態
→
知識截止
Mar 2026
發佈於
Nov 2026

Pricing by Supplier

比較同一模型在不同供應商的價格與服務表現。

供應商3
USD · 每 1M tokens效能 · Last 24 hours
供應商Discount輸入/M輸出/M緩存讀取/M
Google AI Studio

Google 官方 API

省41.5%
$0.8775$1.5
$4.3875$7.5
$0.043875$0.075
Google Vertex

Google 官方 API

省25%
$1.125$1.5
$5.625$7.5
$0.05625$0.075
Gemini Cli

Gemini CLI 帳號池,適合學習和嘗試 vibe coding

省87%
$0.195$1.5
$0.975$7.5
$0.00975$0.075
刪除線金額為標準價。效能統計涵蓋最近 24 小時,實際表現隨請求變化。

左右滑動表格,查看完整價格與效能。

能力 / 支援的模態

串流輸出函數呼叫工具JSON 模式結構化輸出推理視覺提示詞緩存代碼解釋器網絡搜尋
輸入
輸出

廠商與數據私隱

供應商
Google文件
分詞器
SentencePiece (Gemini)
許可證
Proprietary (commercial)商業閉源
數據保留81 日預設不會用於上游訓練

效能

基準測試

標準化評測得分。百分比越高越好,並展示排名百分位。

指標來源:Artificial Analysis 2026-09-30·Gemini 4 Hydrogen

目前基準快照不包含此模型。

缺少模型或測量值不代表零分。

基準圖表保留來源中的模型選擇和推理設定。缺少模型或測量值不代表零分,基準成本或速度也不是本站的服務承諾。

About Gemini 4 Hydrogen

Gemini 4 Hydrogen 是 Google 面向日常程式設計與代理工作流程的高效多模態推理模型,支援四級推理,輸入與輸出共用 1,048,576 個 token,每段輸出最多 65,536 個 token。

查看介紹原文

Gemini 4 Hydrogen

资料核实日期:2026-11-13。模型 ID:gemini-4-hydrogen,发布于 2026-11-12。

模型介绍

Gemini 4 Hydrogen 是 Google 面向日常编程、智能体与企业工作流的多模态推理模型,侧重速度和效率。支持文本、图片、音频、视频及文档输入,输出文本;知识截止日期为 2026 年 3 月,参数量未公开。

输入与输出共用 1,048,576 token 预算,输出包含思考、函数调用和最终回答。流式与非流式单段输出均最多 65,536 token;官方通过 GenerateContent(v1beta1)或 Interactions API 的续写机制,可将总输出扩展至 1,048,576 token 减去输入用量。元数据中的最大输出记录官方续写总上限;本站普通单次请求与渠道支持范围需另行验证。

模型支持函数调用、结构化输出、代码执行、搜索、URL 上下文、计算机操作和视频理解。官方还支持 PDF、Word、PowerPoint、Excel 与 OpenDocument 文件。相关工具及文件格式能否经由本站调用,取决于具体渠道和接口适配。

思考等级为 LOW、MEDIUM、HIGH(默认)和 XHIGH;thinking_budget 与 MINIMAL 会报 400。自定义 temperature、top_p、top_k 被忽略。支持至少 4,096 token 前缀的隐式缓存,默认开启持久缓存,不支持显式 cached_content。

该模型属于短期 GA 版本,官方承诺至少提前 45 天通知退役;当前没有公布退役日期。

官方参考价格

单位为美元 / 百万 token。以下标准价格覆盖文本、图片、视频和音频输入,输出价格包含思考 token;官方未为 Hydrogen 列出长上下文分档加价。

模式与区域输入输出缓存读取
Standard / Global(本站基础价)1.507.500.075
Standard / Non-global1.658.250.0825
Priority / Global2.7013.500.135
Priority / Non-global2.9714.850.1485
Batch / Global0.753.750.0375
Batch / Non-global0.8254.1250.04125

官方公布 Standard / Global 缓存写入价为 $1.875,2027-01-12 起生效;当前不将该未来价格加入本站计费配置。Priority、Batch 和非 Global 价格仅作参考,本站基础配置采用 Standard / Global,实际费用叠加所选分组倍率。

搜索等工具可能另行收费。官方自 2026-11-13 起,对输出超过 32K token 的长生成,即使最后因客户端或服务端超时失败,仍可能收取可取回的 token 用量费用;这是 Google 的上游计费规则。

官方来源

Use cases and prompting

Starting points for evaluation; supported inputs and options are listed in API access.

Use cases to explore

  • Draft and revise text with explicit audience, tone and format requirements.
  • Summarize supplied documents and compare answers against the original sources.

Practical tips

Separate instructions from source material, describe the desired output and provide an example. Test tool use or structured output only when listed as supported.

Example prompt

Summarize the following document in five bullet points. Separate confirmed facts from open questions, cite the relevant passages and do not invent missing information. Document: [paste your text]

查看使用指南原文

调用指南

绑定支持该模型的渠道后,可以使用本站 Gemini 原生接口。以下示例依据官方参数和本站鉴权方式编写,尚未完成该模型的真实调用验证。

POST /v1beta/models/gemini-4-hydrogen:generateContent
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
{
  "contents": [
    {
      "role": "user",
      "parts": [{ "text": "分析这段程序的边界条件,并给出可验证的改进建议。" }]
    }
  ],
  "generationConfig": {
    "maxOutputTokens": 8192,
    "thinkingConfig": { "thinkingLevel": "MEDIUM" }
  }
}

也可在支持的渠道通过 POST /v1/chat/completions 指定 model: "gemini-4-hydrogen"。不要发送 thinking_budget、MINIMAL 或显式缓存引用;多轮工具调用应保留完整的思考签名与历史内容。Interactions API、长输出自动续写和官方内置工具均须另外确认本站适配与渠道支持。

API access

API 介面文件

呼叫示例

請求POST/v1beta/models/gemini-4-hydrogen:generateContent
請求範例
參數
參數類型預設值 / 範圍說明資訊
temperature
number
=10 ~ 2
採樣溫度;越低越穩定
top_p
number
=10 ~ 1
核採樣累積概率
max_tokens
integer>= 1回應中最大 token 數
frequency_penalty
number
=0-2 ~ 2
懲罰高頻 token 的重複出現
presence_penalty
number
=0-2 ~ 2
鼓勵引入新話題
stop
array—最多 4 個停止生成的字串
seed
integer—盡量保證可復現的採樣種子
n
integer
=1>= 1
生成的候選條數
stream
boolean
=false
透過 SSE 串流返回 token
response_format
object—強制輸出 JSON 物件或符合 Schema 的結果
tools
array—模型可呼叫的工具 / 函數聲明
tool_choice
string
autononerequired
工具選擇策略或具體工具名
logprobs
boolean
=false
返回每個 token 的對數概率
top_logprobs
integer0 ~ 20每個 token 返回的 top 概率數量
logit_bias
object—按 token 的 logit 偏置映射
user
string—用於風險審計的終端用戶標識

替換 <YOUR_API_KEY> 替換為 API 金鑰頁面中的金鑰。

身份驗證

所有請求必須攜帶 Authorization: Bearer <TOKEN> 請求頭。Anthropic 格式的端點也接受 x-api-key 請求頭。

在「令牌」頁面生成 API Key,可以按模型、分組、IP、速率等維度精細化授權。

支援的參數

Generation parameters
參數類型預設值 / 範圍說明資訊
temperature
number
=10 ~ 2
採樣溫度;越低越穩定
top_p
number
=10 ~ 1
核採樣累積概率
max_tokens
integer>= 1回應中最大 token 數
frequency_penalty
number
=0-2 ~ 2
懲罰高頻 token 的重複出現
presence_penalty
number
=0-2 ~ 2
鼓勵引入新話題
stop
array—最多 4 個停止生成的字串
seed
integer—盡量保證可復現的採樣種子
n
integer
=1>= 1
生成的候選條數
stream
boolean
=false
透過 SSE 串流返回 token
response_format
object—強制輸出 JSON 物件或符合 Schema 的結果
tools
array—模型可呼叫的工具 / 函數聲明
tool_choice
string
autononerequired
工具選擇策略或具體工具名
logprobs
boolean
=false
返回每個 token 的對數概率
top_logprobs
integer0 ~ 20每個 token 返回的 top 概率數量
logit_bias
object—按 token 的 logit 偏置映射
user
string—用於風險審計的終端用戶標識

速率限制

供應商RPMTPMRPD
Google AI Studio無限制無限制無限制
Google Vertex無限制無限制無限制
Gemini Cli無限制無限制無限制

無限制

Frequently asked questions about gemini-4-hydrogen

What is gemini-4-hydrogen?

Gemini 4 Hydrogen 是 Google 面向日常程式設計與代理工作流程的高效多模態推理模型,支援四級推理,輸入與輸出共用 1,048,576 個 token,每段輸出最多 65,536 個 token。

How do I call gemini-4-hydrogen?

Create an API key with access to gemini-4-hydrogen, then use the exact model ID and a supported endpoint from the API access section. Request fields depend on the selected endpoint.

How is gemini-4-hydrogen priced?

Pricing depends on the selected provider group and the model billing unit. The current input, output, request, or media prices are shown on this page before sign-up.

What is the context window of gemini-4-hydrogen?

The model catalog lists a context window of 1048576 tokens. Check the selected endpoint for request limits.

What is the maximum output of gemini-4-hydrogen?

The model catalog lists a maximum output of 1048576 tokens. Your request settings may set a lower limit.

How should I evaluate gemini-4-hydrogen for my project?

Separate instructions from source material, describe the desired output and provide an example. Test tool use or structured output only when listed as supported.