> ## 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.

# Sync Lipsync 3 视频转视频

> Sync Lipsync 3 视频转视频 API 为最长 300 秒的视频重新生成口型以匹配新音频，提供五种同步模式处理时长不一致。

> [!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)接口获取结果。

Sync Lipsync 3 是 Sync Labs 的 sync-3 口型同步模型。Sync Lipsync 3 视频转视频保留视频中的原有表演，只重新生成口型，使其匹配新的音轨。适用于视觉配音、台词替换、本地化广告和多语言创作者视频。Sync Labs 公布 sync-3 支持 95 种以上语言。

如需让一张静态人像开口说话，请使用 [Sync Lipsync 3 图生视频](https://docs.vidgo.ai/zh/api-manual/video-series/sync-lipsync-3-image-to-video.md)。

## 模型

* **sync/lipsync-3/video-to-video** — 视频 + 新音频，生成口型重新同步的视频。

## 功能

* 在已有素材上做口型同步，保留其余表演。
* 视频和音频各最长 300 秒。
* 五种 `sync_mode` 处理视频与音频时长不同的情况。

## 必填参数

* `video_url` (string)：需要重新同步的视频，最长 300 秒、最大 200 MB，须为可公开访问的 HTTP(S) 地址。
* `audio_url` (string)：新音频，最长 300 秒、最大 50 MB，须为可公开访问的 HTTP(S) 地址。

## 可选参数

* `sync_mode` (string)：`cut_off`、`loop`、`bounce`、`silence` 或 `remap`，默认 `cut_off`。

## 时长

输出时长取决于 `sync_mode`：

| sync\_mode | 输出时长 |
| - | - |
| `cut_off`（默认） | 视频和音频中较短的一方 |
| `loop` | 两者中较长的一方，视频循环 |
| `bounce` | 两者中较长的一方，视频往返播放 |
| `silence` | 两者中较长的一方，音频补静音 |
| `remap` | 音频时长 |

## 输出

* [查询任务状态](https://docs.vidgo.ai/zh/api-manual/task-management/status.md)和回调内容的 `files` 数组中返回一个 MP4 视频。

## 示例

* **为片段配音**：采访视频配一句翻译后的台词，`sync_mode: cut_off`。
* **按音频时长**：主持人片段配更长的旁白，`sync_mode: remap`，并附 `callback_url`。

## 注意事项

* 说话人的嘴部保持可见且在画面中足够大，同步最精确。
* 提交时会测量两个文件；无法下载或读取、或超过 300 秒的媒体返回 400。
* `model` 和 `callback_url` 放在请求根级，与 `input` 并列。`input` 只接受上述字段，其他字段返回 400。
* 提交时按预计输出时长（见[时长](#时长)）每秒扣除积分，向上取整到秒。任务失败会全额退还积分。当前价格见[定价页](https://vidgo.ai/apis/api-pricing)。


## OpenAPI

````yaml zh/api-manual/video-series/sync-lipsync-3-video-to-video.json POST /api/generate/submit
openapi: 3.0.0
info:
  title: Vidgo API - Sync Lipsync 3 视频转视频
  description: Sync Lipsync 3 视频转视频 API 为最长 300 秒的视频重新生成口型以匹配新音频，提供五种同步模式处理时长不一致。
  version: 1.0.0
servers:
  - url: https://api.vidgo.ai
    description: 生产环境服务器
security:
  - BearerAuth: []
paths:
  /api/generate/submit:
    post:
      tags:
        - Sync Lipsync 3 Video to Video
      summary: 提交 Sync Lipsync 3 视频转视频 任务
      operationId: submitSyncLipsync3VideoToVideoTask
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubmitRequest'
            examples:
              dub:
                summary: 为片段配音（cut_off）
                value:
                  model: sync/lipsync-3/video-to-video
                  input:
                    video_url: https://example.com/interview.mp4
                    audio_url: https://example.com/dubbed-line.mp3
                    sync_mode: cut_off
              remap:
                summary: 按音频时长（remap）
                value:
                  model: sync/lipsync-3/video-to-video
                  input:
                    video_url: https://example.com/presenter.mp4
                    audio_url: https://example.com/longer-voiceover.mp3
                    sync_mode: remap
                  callback_url: https://your-domain.com/callback
      responses:
        '200':
          description: 任务提交结果。task_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: sync/lipsync-3/video-to-video
        callback_url:
          type: string
          format: uri
          description: 可选的 Webhook 地址，任务完成或失败时接收通知。
          example: https://your-domain.com/callback
        input:
          type: object
          required:
            - video_url
            - audio_url
          additionalProperties: false
          properties:
            video_url:
              type: string
              format: uri
              description: |-
                需要重新生成口型的视频，最长 300 秒、最大 200 MB。

                请使用可公开访问的 HTTP(S) 下载地址。
            audio_url:
              type: string
              format: uri
              description: |-
                口型要匹配的新音频，最长 300 秒、最大 50 MB。

                请使用可公开访问的 HTTP(S) 下载地址。
            sync_mode:
              type: string
              enum:
                - cut_off
                - loop
                - bounce
                - silence
                - remap
              default: cut_off
              description: >-
                视频和音频时长不一致时的处理方式。`cut_off` 按较短的输入结束；`loop` 循环视频、`bounce`
                往返播放视频、`silence` 为音频补静音，这三种按较长的输入输出；`remap` 按音频时长输出。
    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-25T10:30:00'
    ErrorResponse:
      type: object
      required:
        - detail
      properties:
        detail:
          type: string
          description: 错误信息，参见[错误码](/zh/api-manual/error-codes)。
          example: audio_url is required
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        使用 `Authorization: Bearer VIDGO_API_KEY`。在 **仪表盘 → API
        密钥**（https://vidgo.ai/apis/dashboard/api-key）创建密钥。

````

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