> ## 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 让参考视频中的动画或插画角色说出 2–60 秒的语音，分辨率 1080p 或 2K。

> [!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 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-image-to-video.md) / [HeyGen Avatar 6 Turbo 公共形象生视频](https://docs.vidgo.ai/zh/api-manual/video-series/heygen-avatar-6-turbo-identity-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-ref-video-to-video.md)。

## 模型

* **heygen/avatar-6-turbo/ref-video-to-video** — 动画角色参考视频 + 语音音频生成说话视频，1080p 或 2K。

## 功能

* 以参考视频驱动卡通和插画角色。
* 可选同一角色的参考图。
* 视频时长跟随音频，2–60 秒。
* `1080p` 或 `2K` 输出，保持参考视频的宽高比。

## 必填参数

* `video_url` (string)：动画或插画角色的视频，至少 2 秒，最大 50 MB，使用公开可访问的 HTTP(S) URL。
* `audio_url` (string)：语音音频，时长 2–60 秒，最大 15 MB，使用公开可访问的 HTTP(S) URL。视频时长跟随音频。

## 可选参数

* `image_urls` (string\[])：同一角色的一张参考图。
* `prompt` (string)：对手势、表情和姿态的引导，最多 1,200 个字符。
* `resolution` (string)：`1080p` 或 `2K`。默认 `1080p`。

## 输出

* 一个口型同步的 MP4 视频。
* 视频时长跟随语音，可能比音频短约十分之一秒。

## 示例

* **参考视频 + 参考图**：卡通角色视频加同一角色的静态图，`2K`。
* **仅参考视频**：带一句动作引导。

## 注意事项

* 参考视频需至少 2 秒、最大 50 MB 且可下载，其他视频返回 400。此模式面向动画和插画角色；任务失败会全额退还积分。
* 提交时会检测音频：需为 2–60 秒、最大 15 MB 且可下载，其他音频返回 400。
* `model` 和 `callback_url` 放在请求根级，与 `input` 并列。`input` 接收上文列出的本模式字段，其他字段返回 400。
* 按秒计费，单价取决于 `resolution`。提交时按音频时长（向上取整到整秒）扣费。任务失败会全额退还。当前费率见[定价页](https://vidgo.ai/apis/api-pricing)。


## OpenAPI

````yaml zh/api-manual/video-series/heygen-avatar-6-turbo-ref-video-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 让参考视频中的动画或插画角色说出 2–60 秒的语音，分辨率 1080p 或 2K。
  version: 1.0.0
servers:
  - url: https://api.vidgo.ai
    description: 生产环境服务器
security:
  - BearerAuth: []
paths:
  /api/generate/submit:
    post:
      tags:
        - HeyGen Avatar 6 Turbo Reference Video to Video
      summary: 提交 HeyGen Avatar 6 Turbo 参考视频生视频 任务
      operationId: submitHeyGenAvatar6TurboReferenceVideoToVideoTask
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubmitRequest'
            examples:
              reference-video:
                summary: 参考视频 + 参考图
                value:
                  model: heygen/avatar-6-turbo/ref-video-to-video
                  input:
                    video_url: https://cdn.vidgo.ai/temp/cartoon-character.mp4
                    image_urls:
                      - https://cdn.vidgo.ai/temp/cartoon-character.png
                    audio_url: https://cdn.vidgo.ai/temp/speech.mp3
                    resolution: 2K
              reference-video-only:
                summary: 仅参考视频
                value:
                  model: heygen/avatar-6-turbo/ref-video-to-video
                  input:
                    video_url: https://cdn.vidgo.ai/temp/cartoon-character.mp4
                    audio_url: https://cdn.vidgo.ai/temp/speech.mp3
                    prompt: Bounce lightly and wave at the end.
      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/ref-video-to-video
        callback_url:
          type: string
          format: uri
          description: 可选的 Webhook URL，用于接收完成或失败通知。
          example: https://your-domain.com/callback
        input:
          type: object
          required:
            - video_url
            - audio_url
          additionalProperties: false
          properties:
            video_url:
              type: string
              format: uri
              description: |-
                动画或插画角色的视频，至少 2 秒，最大 50 MB。真人请使用照片模式（image-to-video）。

                使用公开可访问的 HTTP(S) 下载链接。
            image_urls:
              type: array
              minItems: 1
              maxItems: 1
              items:
                type: string
                format: uri
                description: 使用公开可访问的 HTTP(S) 下载链接。
              description: 可选：恰好一张同一角色的参考图。
            audio_url:
              type: string
              format: uri
              description: |-
                语音音频，时长 2–60 秒，最大 15 MB。视频时长跟随音频。

                使用公开可访问的 HTTP(S) 下载链接。
            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: video_url is required
  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.