Tencent Hunyuan · 模型提供商SandBase 上的 Tencent Hunyuan AI 模型
用于语言和视觉生成任务的 Hunyuan 模型。
最常用的 Tencent Hunyuan 模型
Tencent Hunyuan 模型目录
语言模型
聊天、推理、编码和工具使用。
4 个模型Hy3
tencent/hy3- 价格
- 每 100 万 tokens $0.132 / $0.528
- 上下文
- 262K 个 token
Hy4 preview
tencent/hy4-preview- 价格
- 每 100 万 tokens $0.834 / $2.5
- 上下文
- 1.0M 个 token
Hy4 flash
tencent/hy4-flash- 价格
- 每 100 万 tokens $0.07 / $0.281
- 上下文
- 1.0M 个 token
Hy4
tencent/hy4- 价格
- 每 100 万 tokens $0.834 / $2.5
- 上下文
- 1.0M 个 token
图像模型
生成和编辑图像。
2 个模型视频模型
基于文本、图像或参考内容创建、编辑和扩展视频。
1 个模型3D 模型
来自图片或文本的网格和纹理。
21 个模型Hunyuan 3D 3.1 Pro Image to 3D
tencent/hunyuan-3d/3.1/pro/image-to-3d- 价格
- 起价 $0.375 / 次运行
Hunyuan 3D 3.0 Image to 3D
tencent/hunyuan-3d/3.0/image-to-3d- 价格
- 起价 $0.63 / 次运行
Hunyuan 3D 3.1 Pro Text to 3D
tencent/hunyuan-3d/3.1/pro/text-to-3d- 价格
- 起价 $0.375 / 次运行
Hunyuan3D 2.0
tencent/hunyuan-3d/v2- 价格
- 起价 $0.16 / 次运行
Hunyuan3D 2.0 Multi-View
tencent/hunyuan-3d/v2/multi-view- 价格
- 起价 $0.16 / 次运行
Hunyuan 3D 3.1 Rapid Image to 3D
tencent/hunyuan-3d/3.1/rapid/image-to-3d- 价格
- 起价 $0.27 / 次运行
Hunyuan 3D 3.1 Rapid Text to 3D
tencent/hunyuan-3d/3.1/rapid/text-to-3d- 价格
- 起价 $0.27 / 次运行
Hunyuan 3D 3.0 Text to 3D
tencent/hunyuan-3d/v3/text-to-3d- 价格
- 起价 $0.63 / 次运行
Hunyuan 3D 3.1 Smart Topology
tencent/hunyuan-3d/3.1/smart-topology- 价格
- 起价 $0.75 / 次运行
Hunyuan3D 2.0 Mini Turbo
tencent/hunyuan-3d/v2/mini-turbo- 价格
- 起价 $0.08 / 次运行
Hunyuan3D 2.0 Mini
tencent/hunyuan-3d/v2/mini- 价格
- 起价 $0.1 / 次运行
Hunyuan3D 2.0 Turbo
tencent/hunyuan3d/v2/turbo- 价格
- 起价 $0.14 / 次运行
Hunyuan3D 2.0 Multi-View Turbo
tencent/hunyuan-3d/v2/multi-view-turbo- 价格
- 起价 $0.14 / 次运行
Hunyuan 3D 3.1 Part Splitter
tencent/hunyuan-3d/3.1/part- 价格
- 起价 $0.45 / 次运行
Hunyuan 3D 3.6 Image to 3D
tencent/hunyuan-3d/3.6/image-to-3d- 价格
- 起价 $1.4 / 次运行
Hunyuan 3D 3.6 Text to 3D
tencent/hunyuan-3d/3.6/text-to-3d- 价格
- 起价 $2 / 次运行
Miora 3D 1.2 Image to 3D
tencent/miora-3d/1.2/image-to-3d- 价格
- 起价 $0.343 / 次运行
Miora 3D 1.2 Text to 3D
tencent/miora-3d/1.2/text-to-3d- 价格
- 起价 $0.429 / 次运行
Miora 3D Multi-View to 3D
tencent/miora-3d/multi-view-to-3d- 价格
- 起价 $0.343 / 次运行
Miora 3D T1 Image to 3D
tencent/miora-3d/t1/image-to-3d- 价格
- 起价 $0.257 / 次运行
Miora 3D T1 Text to 3D
tencent/miora-3d/t1/text-to-3d- 价格
- 起价 $0.343 / 次运行
tokens 价格按每 100 万输入 / 输出 tokens 计算;媒体价格为每次运行的基础价格。模型页面会显示实时价格和请求字段。
通过一个 API 调用腾讯 Hunyuan 模型
Tencent Hunyuan 是腾讯的 AI 模型系列。在 SandBase 上,您可以通过一个 SandBase API key 调用其语言模型(Hy4、Hy4 flash、Hy4 preview 和 Hy3)、用于文生图和编辑的 Hunyuan Image 3.0、用于文生视频的 Hunyuan Video 1.5,以及用于图生 3D、文生 3D、重拓扑和部件拆分的 Hunyuan 3D 和 Miora 3D 模型。
语言模型使用与 OpenAI 兼容的 chat completions endpoint,因此只要更改 base URL 和 model 名称,现有的 OpenAI SDK 就能直接使用。对于图像、视频和 3D 模型,每个模型页面都会显示其请求 schema 和示例。
from openai import OpenAI
client = OpenAI(base_url="https://api.sandbase.ai/v1", api_key="YOUR_SANDBASE_API_KEY")
reply = client.chat.completions.create(
model="tencent/hy4-flash",
messages=[{"role": "user", "content": "Summarize the benefits of prefix caching in two sentences."}],
)
print(reply.choices[0].message.content)Tencent Hunyuan API 问答
SandBase 上的 Hunyuan API 是什么?
这是通过 SandBase 的 API 访问 Tencent Hunyuan 模型。您可以使用一个 SandBase API key 调用所有模型,例如 tencent/hy4-flash 或 tencent/hy3。
我可以使用哪些 Hunyuan 模型?
语言模型 Hy4、Hy4 flash、Hy4 preview 和 Hy3;Hunyuan Image 3.0 和 Image 3.0 Edit;Hunyuan Video 1.5 文生视频;以及用于 3D 生成、重拓扑和部件拆分的 Hunyuan 3D 和 Miora 3D 模型。上面的目录列出了当前可用的全部模型。
如何在代码中调用 Hy3 或 Hy4?
将 OpenAI SDK 指向 https://api.sandbase.ai/v1,使用您的 SandBase key,并将 model 设置为目录中的某个 id,例如 tencent/hy4-flash。上面的示例就是一个完整请求。
Hunyuan 语言模型支持推理、工具调用和结构化输出吗?
每个模型页面都会列出该模型支持的功能。在基于某个功能开发之前,请先查看您计划使用的模型页面。
Hunyuan 的用量如何计费?
每个模型页面都会显示其当前价格和计费单位。
