Newshot
Account

Gemini 4 Hydrogen 现已上线 AI Gateway

AI summary

Google 的 Gemini 4 Hydrogen 现已在 AI Gateway 上可用。它接替 Gemini 3.8 Flash,在保持同等延迟水平的同时提升了智能体编程、知识工作和工具使用能力。该模型能处理更长的工程任务,并在更少的智能体步骤内产出研究更充分的文档、表格和演示文稿。

Translation(model translation, not the source's own text)

Gemini 4 Hydrogen 现已在 AI Gateway 上线

来自 Google 的 Gemini 4 Hydrogen 现已在 AI Gateway 上线。

Gemini 4 Hydrogen 接替 Gemini 3.8 Flash,在保持同一延迟水平的同时,提升了智能体编程、知识工作和工具使用能力。它能处理更长的工程任务,并以更少的智能体步骤产出研究更充分的文档、电子表格和演示文稿。

Hydrogen 更严格地遵循系统指令、格式要求和任务边界,在长对话中实现更可靠的工具编排。视觉推理和技术问题解决能力的提升支持多模态工作流,而更强的 grounding 减少了搜索支持的答案中缺乏依据的说法,以及编程报告中虚构的工具或测试结果。

使用 google/gemini-4-hydrogen 作为模型名称:


        import { streamText } from 'ai';
const result = streamText({  model: 'google/gemini-4-hydrogen',  prompt: 'Write a TypeScript retry helper with exponential backoff and jitter.',});
for await (const text of result.textStream) {  process.stdout.write(text);}
      

要在 Claude Code、Codex、Cursor 等工具中使用它,请安装最新的 Vercel CLI 并运行 setup:


        npx vercel ai-gateway setup
      

然后在智能体中选择 google/gemini-4-hydrogen。详情请参阅 coding agents 指南。

在 model playground 中试用 Gemini 4 Hydrogen。

AI Gateway 提供统一的 API,用于调用模型、跟踪用量和成本,并配置重试、故障转移和性能优化,以实现高于提供商自身的正常运行时间。它包含内置的自定义报告、Zero Data Retention 支持、API 密钥预算、路由规则等。

AI Gateway 反映提供商的定价且不收取加价,也不对推理收取平台费用,包括 Bring Your Own Key (BYOK) 请求。

你可以查看 AI Gateway 上所有可用的语言模型。

The translation is machine-generated and individual terms may be off. Nothing is rewritten or cut; the original is authoritative.

Published by Vercel Blog
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗