HeyGen Avatar 6 在线试用
输入
Public URL of the speech audio (2–60 seconds, maximum 15 MB). Video length follows the audio. Billing rounds the audio duration up to whole seconds.
Optional direction for the avatar's gestures, expression and posture.
Public URL of an animated or illustrated character video, at least 2 seconds long and up to 50 MB. Providing videoUrl selects video-to-video mode. The output follows the video's aspect ratio.
Public URL of one portrait image, required when videoUrl is omitted. In image-to-video mode the output follows the portrait's aspect ratio. With videoUrl, you may supply an image of the same character.
运行费用将从您的余额中扣除。
输出

输出将显示在此处。
填写参数、确认费用并运行模型,结果将在此处显示。在浏览器中试用无需单独创建 API 密钥。
HeyGen Avatar 6 API 价格
| 选项 | 每秒价格 |
|---|---|
| 1080p | $0.15 |
| 2K | $0.21 |
快速开始
完整 API 参考 →1curl -X POST https://api.api-stock.com/api/v1/generation/create \2 -H "Authorization: Bearer $API_STOCK_KEY" \3 -H "Content-Type: application/json" \4 -d '{5 "model": "heygen-avatar-6",6 "input": {7 "audioUrl": "https://example.com/speech.mp3",8 "resolution": "1080p",9 "imageUrls": [10 "https://example.com/portrait.jpg"11 ]12 }13 }'
参数
| 名称 | 类型 | 必填 | 默认值 | 描述 |
|---|---|---|---|---|
audioUrl | string | 是 | — | Public URL of the speech audio (2–60 seconds, maximum 15 MB). Video length follows the audio. Billing rounds the audio duration up to whole seconds. |
resolution | string | 否 | 1080p | Output resolution以下之一:1080p, 2K |
prompt | string | 否 | — | Optional direction for the avatar's gestures, expression and posture. |
videoUrl | string | 否 | — | Public URL of an animated or illustrated character video, at least 2 seconds long and up to 50 MB. Providing videoUrl selects video-to-video mode. The output follows the video's aspect ratio. |
imageUrls | string[] | 否 | — | Public URL of one portrait image, required when videoUrl is omitted. In image-to-video mode the output follows the portrait's aspect ratio. With videoUrl, you may supply an image of the same character. |
常见问题
HeyGen Avatar 6 的费用是多少?
HeyGen Avatar 6 通过 API Stock API 的起价为 $0.15 每秒输出。您按使用量从单个预付余额中支付——无需订阅——最终价格会根据分辨率或时长等参数浮动。
如何获取 HeyGen Avatar 6 的 API 密钥?
注册 API Stock 账号,使用可用的付款方式充值,然后在控制台创建 API 密钥即可,整个过程只需几分钟,无需签订合同。同一个密钥可调用目录中的所有模型,因此无需为 HeyGen Avatar 6 单独申请密钥。
如何调用 HeyGen Avatar 6 API?
向 https://api.api-stock.com/api/v1/generation/create 发送 POST 请求,并附上您的 API 密钥和模型 ID "heygen-avatar-6"。请求会返回一个任务 ID,您可以轮询该 ID;或者在结果准备就绪时通过 webhook 回调通知。上方的快速开始部分提供了一个可直接运行的示例。
HeyGen Avatar 6 接受哪些输入参数?
HeyGen Avatar 6 接受 5 个输入参数, 包括必填字段 audioUrl。参数表中列出了它们的类型、默认值和允许值。
如果 HeyGen Avatar 6 请求失败,会发生什么?
API Stock 会自动通过备用提供商重试请求。如果所有提供商均失败,费用将退还至您的余额。
我可以使用与其他模型相同的 API 密钥来调用 HeyGen Avatar 6 吗?
可以。API Stock 上的每个模型——视频、图像、音乐和聊天——共享一个 API 密钥和一个预付余额,因此您无需新的凭据即可切换到 HeyGen Avatar 6。