Newshot

Hy4 Flash 现已上线 AI Gateway,享 5 折优惠

AI summary

腾讯的 Hy4 Flash 现已上线 AI Gateway,输入、缓存输入和输出 token 均可享受 5 折的 introductory 折扣,优惠持续至 2026 年 11 月 29 日。Hy4 Flash 是 Hy4 系列中成本更低的新模型,以约十分之一的每 token 价格保留了 Hy4 的完整功能,包括保留思考的推理、工具调用、结构化输出、提示缓存和图像输入,同样支持 100 万 token 上下文窗口。对于不需要推理的请求,可以关闭推理功能,这适合高并发的编程、代理和文档工作负载。

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

文章标题:Hy4 Flash 现已在 AI Gateway 上线,享 5 折优惠

正文: 来自 Tencent 的 Hy4 Flash 现已在 AI Gateway 上线,输入、缓存输入和输出 token 可享 introductory 50% 折扣,有效期至 2026 年 11 月 29 日。

Hy4 Flash 是 Hy4 系列中新增的低成本模型。它以大约每 token 十分之一的价格保留了完整的 Hy4 功能集:跨轮次保留思考过程的推理、工具调用、结构化输出、提示缓存和图像输入,并具有相同的 1M-token 上下文窗口。对于不需要推理的请求,可以关闭推理,这适合高并发的编码、agent 和文档工作负载。

使用 tencent/hy4-flash 作为模型名称:


        import { streamText } from 'ai';
const result = streamText({  model: 'tencent/hy4-flash',  prompt: 'Summarize the tradeoffs of server-side rendering in three sentences.',});
for await (const text of result.textStream) {  process.stdout.write(text);}
      

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


        npx vercel ai-gateway setup
      

然后在 agent 中选择 tencent/hy4-flash。详情请参阅 coding agents 指南。

在模型 playground 中试用 Hy4 Flash。

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

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

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

参考架构

选择一个技术栈,并梳理其背后的决策,配合精选的文档、指南、模板和课程来帮助你构建。

  • Agent 技术栈:使用模型、工具和持久工作流构建和运营 agent。
  • Web 应用:选择渲染、数据、身份验证和缓存方案。
  • 后端:选择运行时、连接服务并运行后台工作。

浏览所有技术栈

使用提示词构建

使用可直接用于你的编码 agent 的提示词来构建应用、扩展 agent 或改进你的项目。

浏览提示词库 · 阅读 Markdown 索引

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 ↗