> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vidgo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# HeyGen Avatar 6 Turbo 公共形象生视频

> HeyGen Avatar 6 Turbo 公共形象生视频 API 让 1,248 个 HeyGen 公共形象之一说出你的音频，或用 HeyGen 声音朗读文本，支持 1080p、2K 和 5 种宽高比。

> [!TIP]
>
> 1. 提交后会返回 `task_id`。如果提供了 `callback_url`，当任务状态变为 `finished` 或 `failed` 时，系统会向 `callback_url` 发送 POST 请求。
> 2. 无论是否提供 `callback_url`，都可以通过统一的[查询任务状态](https://docs.vidgo.ai/zh/api-manual/task-management/status.md)接口获取结果。

HeyGen Avatar 6 Turbo 公共形象生视频使用 HeyGen 现成的 1,248 个公共形象生成说话视频。形象可以说出你的音频，也可以用 HeyGen 声音朗读 `text`。全部形象和声音名称见[形象与声音](https://docs.vidgo.ai/zh/api-manual/video-series/heygen-avatar-6-avatars.md)。

其他模式：[HeyGen Avatar 6 Turbo 图生视频](https://docs.vidgo.ai/zh/api-manual/video-series/heygen-avatar-6-turbo-image-to-video.md) / [HeyGen Avatar 6 Turbo 参考视频生视频](https://docs.vidgo.ai/zh/api-manual/video-series/heygen-avatar-6-turbo-ref-video-to-video.md)。HeyGen Avatar 6 Turbo 是 HeyGen Avatar 6 成本更低的版本，输入和模式完全相同。参见 [HeyGen Avatar 6 公共形象生视频](https://docs.vidgo.ai/zh/api-manual/video-series/heygen-avatar-6-identity-to-video.md)。

## 模型

* **heygen/avatar-6-turbo/identity-to-video** — HeyGen 公共形象 + 语音音频或文本生成说话视频，1080p 或 2K。

## 功能

* 1,248 个公共形象（156 个人物的多种造型）。
* 语音来自你的音频（2–60 秒），或由 HeyGen 声音朗读 `text`（最多 1,000 个字符）。
* 5 种宽高比：`16:9`、`9:16`、`1:1`、`4:5`、`5:4`。
* `1080p` 或 `2K` 输出。

## 输入模式

| 语音来源 | 传入 | 可选 |
| - | - | - |
| 音频 | `avatar`、`audio_url` | `prompt`、`aspect_ratio`、`resolution` |
| 文本 | `avatar`、`text` | `voice`、`prompt`、`aspect_ratio`、`resolution` |

`audio_url` 和 `text` 必须二选一。

## 必填参数

* `avatar` (string)：[形象与声音](https://docs.vidgo.ai/zh/api-manual/video-series/heygen-avatar-6-avatars.md)中的 HeyGen 公共形象名称，例如 `Abigail Sofa Front`。名称匹配忽略大小写和多余空格。
* `audio_url` (string) 或 `text` (string)：二者恰好传一个。`audio_url` 为语音音频，时长 2–60 秒，最大 15 MB；`text` 为形象朗读的文本，最多 1,000 个字符。

## 可选参数

* `voice` (string)：仅与 `text` 一起使用。朗读文本的 HeyGen 声音，见[形象与声音](https://docs.vidgo.ai/zh/api-manual/video-series/heygen-avatar-6-avatars.md#声音)中的 102 个声音。默认 `Warm Pro Narrator`。名称匹配忽略大小写和多余空格。
* `aspect_ratio` (string)：`16:9`、`9:16`、`1:1`、`4:5` 或 `5:4`。默认 `16:9`。
* `prompt` (string)：对手势、表情和姿态的引导，最多 1,200 个字符。
* `resolution` (string)：`1080p` 或 `2K`。默认 `1080p`。

## 输出

* 一个口型同步的 MP4 视频，宽高比为所选 `aspect_ratio`。
* 视频时长跟随语音：`audio_url` 的时长，或形象朗读 `text` 所需的时间。

## 示例

* **文本**：形象用指定声音朗读一段短稿，`16:9`、`1080p`。
* **音频**：形象说出一段 MP3，竖屏 `9:16`。

## 注意事项

* 提交时会按形象列表校验 `avatar`，未匹配到的名称返回 400，并给出最接近的名称。列表外的 HeyGen 声音名称会原样传递；若 HeyGen 拒绝该声音，任务全额退还积分。
* `audio_url` 与 `text` 二选一，`voice` 与 `text` 搭配使用，`text` 最多 1,000 个字符；其他组合返回 400。
* 提交时会检测音频：需为 2–60 秒、最大 15 MB 且可下载，其他音频返回 400。
* `model` 和 `callback_url` 放在请求根级，与 `input` 并列。`input` 接收上文列出的本模式字段，其他字段返回 400。
* 按秒计费，单价取决于 `resolution`。使用 `audio_url` 时，提交时按音频时长（向上取整到整秒）扣费。使用 `text` 时先按文字估算视频秒数（约每秒 14 个拉丁字符、4.5 个中日韩字符或 3 个数字，最少 1 秒），乘以 1.5 并向上取整后在提交时预扣；任务成功后按实际视频时长（向上取整到整秒）结算并退还差额，最终扣费最多为预扣金额。任务失败会全额退还。当前费率见[定价页](https://vidgo.ai/apis/api-pricing)。


## OpenAPI

````yaml zh/api-manual/video-series/heygen-avatar-6-turbo-identity-to-video.json POST /api/generate/submit
openapi: 3.0.0
info:
  title: Vidgo API - HeyGen Avatar 6 Turbo 公共形象生视频
  description: >-
    HeyGen Avatar 6 Turbo 公共形象生视频 API 让 1,248 个 HeyGen 公共形象之一说出你的音频，或用 HeyGen
    声音朗读文本，支持 1080p、2K 和 5 种宽高比。
  version: 1.0.0
servers:
  - url: https://api.vidgo.ai
    description: 生产环境服务器
security:
  - BearerAuth: []
paths:
  /api/generate/submit:
    post:
      tags:
        - HeyGen Avatar 6 Turbo Public Avatar to Video
      summary: 提交 HeyGen Avatar 6 Turbo 公共形象生视频 任务
      operationId: submitHeyGenAvatar6TurboPublicAvatarToVideoTask
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubmitRequest'
            examples:
              avatar-text:
                summary: 公共形象朗读文本
                value:
                  model: heygen/avatar-6-turbo/identity-to-video
                  input:
                    avatar: Abigail Office Front
                    text: >-
                      Hello and welcome. In the next minute I will walk you
                      through our new dashboard.
                    voice: Warm Pro Narrator
                    prompt: Speak with calm confidence and nod slightly at the end.
                    aspect_ratio: '16:9'
                    resolution: 1080p
              avatar-audio:
                summary: 公共形象 + 语音音频
                value:
                  model: heygen/avatar-6-turbo/identity-to-video
                  input:
                    avatar: Abigail Sofa Front
                    audio_url: https://cdn.vidgo.ai/temp/speech.mp3
                    aspect_ratio: '9:16'
      responses:
        '200':
          description: 任务提交结果。任务 ID 标识一项异步任务；生成可能仍在进行中。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubmitResponse'
        '400':
          description: 请求参数无效
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: 未授权
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    SubmitRequest:
      type: object
      required:
        - model
        - input
      additionalProperties: false
      properties:
        model:
          type: string
          example: heygen/avatar-6-turbo/identity-to-video
        callback_url:
          type: string
          format: uri
          description: 可选的 Webhook URL，用于接收完成或失败通知。
          example: https://your-domain.com/callback
        input:
          type: object
          required:
            - avatar
          additionalProperties: false
          properties:
            avatar:
              type: string
              maxLength: 200
              description: >-
                [形象与声音](/zh/api-manual/video-series/heygen-avatar-6-avatars)中
                1,248 个 HeyGen 公共形象之一的名称，例如 `Abigail Sofa
                Front`。名称匹配忽略大小写和多余空格；未匹配到的名称返回 400，并给出最接近的名称。
            audio_url:
              type: string
              format: uri
              description: |-
                语音音频，时长 2–60 秒，最大 15 MB。`audio_url` 与 `text` 二选一。视频时长跟随音频。

                使用公开可访问的 HTTP(S) 下载链接。
            text:
              type: string
              maxLength: 1000
              description: 形象朗读的文本，最多 1,000 个字符。`audio_url` 与 `text` 二选一。
            voice:
              type: string
              default: Warm Pro Narrator
              description: >-
                仅与 `text` 一起使用。朗读文本的 HeyGen
                声音：[形象与声音](/zh/api-manual/video-series/heygen-avatar-6-avatars#声音)中的
                102 个声音之一。名称匹配忽略大小写和多余空格。
            aspect_ratio:
              type: string
              enum:
                - '16:9'
                - '9:16'
                - '1:1'
                - '4:5'
                - '5:4'
              default: '16:9'
              description: 输出宽高比。
            prompt:
              type: string
              maxLength: 1200
              description: 对形象手势、表情和姿态的引导，最多 1,200 个字符。
            resolution:
              type: string
              enum:
                - 1080p
                - 2K
              default: 1080p
              description: 输出分辨率。
    SubmitResponse:
      type: object
      required:
        - code
        - data
      properties:
        code:
          type: integer
          example: 200
        data:
          type: object
          required:
            - task_id
            - status
            - created_time
          properties:
            task_id:
              type: string
              example: task-example-001
            status:
              type: string
              example: not_started
            created_time:
              type: string
              format: date-time
              example: '2026-11-19T10:30:00'
    ErrorResponse:
      type: object
      required:
        - detail
      properties:
        detail:
          type: string
          description: 错误信息。参见[错误码](/zh/api-manual/error-codes)。
          example: avatar mode requires exactly one of audio_url or text
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: '使用 `Authorization: Bearer VIDGO_API_KEY`。'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.