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

# Seed Audio 1.5 按视频配音

> > 🚧 **该模型暂未开放，敬请期待**

- 根据视频画面生成与动作对齐的对白、旁白、音效与配乐；可用参考音频指定音色，可同时返回配好声音的视频
- 视频时长 `4` ~ `360` 秒，生成的音频与视频等长
- 提示词必须包含要念出来的台词，不支持只有音效或配乐的音频
- 异步处理模式，使用返回的任务ID [进行查询](/cn/api-manual/task-management/get-task-detail)，提交后不支持取消
- 生成的链接有效期为 7 天，请尽快保存

**计费说明：**
- 按生成音频的时长计费（与视频时长相同），按秒计，不足 1 秒按 1 秒计
- 提交时按视频时长预扣积分（`usage.credits_reserved`），完成后按实际时长结算，多退少补；失败全额退还

**任务结果（`status` 为 `completed` 时）：**

| 字段 | 说明 |
|---|---|
| `results[0]` / `result_data[0].audio_url` | 音频链接 |
| `result_data[0].duration` | 音频时长（秒） |
| `result_data[0].video_url` | 配好声音的视频链接，`return_video` 为 `true` 时返回 |
| `result_data[0].subtitles` | 字幕，`[{"format": "srt", "content": "…"}, {"format": "jsonl", "content": "…"}]`；jsonl 每行一个词及起止时间（秒） |
| `usage.billed_seconds` / `usage.credits_used` | 计费秒数 / 实际消耗积分 |



## OpenAPI

````yaml cn/api-manual/audio-series/seed-audio-1.5/seed-audio-1.5-video-to-audio.json POST /v1/audios/generations
openapi: 3.1.0
info:
  title: Seed Audio 1.5 按视频配音接口
  description: Seed Audio 1.5 按视频配音接口。根据视频画面生成与动作对齐的对白、旁白、音效与配乐，可指定参考音色，并可取回配好声音的视频。
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.evolink.ai
    description: 生产环境
security:
  - bearerAuth: []
tags:
  - name: 音频生成
    description: Seed Audio 1.5 音频生成相关接口
paths:
  /v1/audios/generations:
    post:
      tags:
        - 音频生成
      summary: Seed Audio 1.5 按视频配音
      description: >-
        > 🚧 **该模型暂未开放，敬请期待**


        - 根据视频画面生成与动作对齐的对白、旁白、音效与配乐；可用参考音频指定音色，可同时返回配好声音的视频

        - 视频时长 `4` ~ `360` 秒，生成的音频与视频等长

        - 提示词必须包含要念出来的台词，不支持只有音效或配乐的音频

        - 异步处理模式，使用返回的任务ID
        [进行查询](/cn/api-manual/task-management/get-task-detail)，提交后不支持取消

        - 生成的链接有效期为 7 天，请尽快保存


        **计费说明：**

        - 按生成音频的时长计费（与视频时长相同），按秒计，不足 1 秒按 1 秒计

        - 提交时按视频时长预扣积分（`usage.credits_reserved`），完成后按实际时长结算，多退少补；失败全额退还


        **任务结果（`status` 为 `completed` 时）：**


        | 字段 | 说明 |

        |---|---|

        | `results[0]` / `result_data[0].audio_url` | 音频链接 |

        | `result_data[0].duration` | 音频时长（秒） |

        | `result_data[0].video_url` | 配好声音的视频链接，`return_video` 为 `true` 时返回 |

        | `result_data[0].subtitles` | 字幕，`[{"format": "srt", "content": "…"},
        {"format": "jsonl", "content": "…"}]`；jsonl 每行一个词及起止时间（秒） |

        | `usage.billed_seconds` / `usage.credits_used` | 计费秒数 / 实际消耗积分 |
      operationId: createSeedAudio15VideoToAudio
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SeedAudio15Request'
            examples:
              basic:
                summary: 按画面配音并返回视频
                value:
                  model: seed-audio-1.5-video-to-audio
                  prompt: >-
                    按画面对齐声音：金色光带扫过玻璃时响起一声清脆的玻璃叮声。最后两秒，一位低沉的男声用英语轻声说：“Pure by
                    design.” 只读引号内的台词。
                  video_urls:
                    - https://example.com/product.mp4
                  return_video: true
                  format: mp3
              with_voice:
                summary: 指定旁白音色
                value:
                  model: seed-audio-1.5-video-to-audio
                  prompt: 按画面对齐声音：门打开时响一声门铃，随后用参考音频1的音色轻声说：“欢迎回来。”配乐在对白期间降低音量。
                  video_urls:
                    - https://example.com/door.mp4
                  audio_urls:
                    - https://example.com/narrator.wav
                  return_video: true
      responses:
        '200':
          description: 音频生成任务创建成功
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SeedAudioResponse'
        '400':
          description: 请求参数错误
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: unsupported_parameter
                  message: >-
                    speech_rate is not supported for
                    seed-audio-1.5-video-to-audio
                  type: invalid_request_error
        '401':
          description: 未认证、Token无效或过期
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: unauthorized
                  message: Invalid or expired token
                  type: authentication_error
        '402':
          description: 配额不足、需要充值
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: insufficient_quota
                  message: Insufficient quota. Please top up your account.
                  type: insufficient_quota
        '403':
          description: 无权限访问
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: model_access_denied
                  message: >-
                    Token does not have access to model:
                    seed-audio-1.5-video-to-audio
                  type: invalid_request_error
        '429':
          description: 请求频率超限
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: rate_limit_exceeded
                  message: Too many requests, please try again later
                  type: rate_limit_error
        '500':
          description: 服务器内部错误
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: internal_error
                  message: Internal server error
                  type: api_error
components:
  schemas:
    SeedAudio15Request:
      type: object
      required:
        - model
        - prompt
        - video_urls
      properties:
        model:
          type: string
          description: 模型名称
          enum:
            - seed-audio-1.5-video-to-audio
          default: seed-audio-1.5-video-to-audio
          example: seed-audio-1.5-video-to-audio
        prompt:
          type: string
          description: |-
            描述要配上的声音，并写明要念出来的台词

            - 按画面描述声音出现的时机，例如「门打开时响一声门铃」
            - 台词写出全文并加引号，标明说话人与语种；使用参考音频时写明每段对应哪个角色
          example: 按画面对齐声音：门打开时响一声门铃，随后用参考音频1的音色轻声说：“欢迎回来。”配乐在对白期间降低音量。
        video_urls:
          type: array
          description: >-
            要配音的视频


            - 只支持 `1` 个


            **视频要求：**

            - 只支持公网可访问的链接，不支持 base64

            - 时长 `4` ~ `360` 秒，帧率 `12` ~ `60` fps

            - 格式：`mp4` / `mov`，大小 ≤ `200 MB`

            - 宽、高各 `300` ~ `6000` 像素，宽高比 `0.4` ~ `2.5`，宽×高 `407,696` ~
            `2,086,876`（`1280×720`、`1920×1080` 都可以；`640×480` 太小，`4K` 太大）
          items:
            type: string
            format: uri
          minItems: 1
          maxItems: 1
          example:
            - https://example.com/clip.mp4
        audio_urls:
          type: array
          description: >-
            参考音频，用来指定旁白或角色的音色（可选）


            - 最多 `6` 段，按数组顺序编号为参考音频1、参考音频2……

            - 在 `prompt` 中写明每段参考音频对应哪个角色，例如「参考音频1是主持人，参考音频2是嘉宾」


            **每段参考音频的要求：**

            - 公网可访问的链接，或 base64（写成 `data:audio/mp3;base64,…` 或
            `data:audio/wav;base64,…`）

            - 时长 `2` ~ `30` 秒，所有参考音频合计 ≤ `180` 秒

            - 格式：`wav` / `mp3`，大小 ≤ `15 MB`
          items:
            type: string
          maxItems: 6
          example:
            - https://example.com/host.wav
        return_video:
          type: boolean
          description: |-
            是否同时返回配好声音的视频

            - `true`：返回，链接在任务结果的 `result_data[0].video_url`
            - `false`：不返回（默认），只返回音频
          default: false
          example: false
        format:
          type: string
          description: |-
            输出音频格式

            - `wav`（默认）
            - `mp3`
            - `ogg_opus`：只支持 `48000` 采样率
            - `pcm`：不带文件头的原始音频数据（16 位），普通播放器无法直接播放，需要自行处理
          enum:
            - wav
            - mp3
            - pcm
            - ogg_opus
          default: wav
          example: mp3
        sample_rate:
          type: integer
          description: |-
            输出采样率（Hz）

            - `wav` / `mp3` / `pcm` 可选下列任一值，默认 `44100`
            - `ogg_opus` 只能为 `48000`，不传时自动使用 `48000`
          enum:
            - 8000
            - 16000
            - 24000
            - 32000
            - 44100
            - 48000
          default: 44100
          example: 24000
        speech_rate:
          type: integer
          description: |-
            语速调节（整数）

            - `0`：正常语速（默认）
            - `100`：约 2 倍速
            - `-50`：约半速

            取值范围 `-50` ~ `100`
          minimum: -50
          maximum: 100
          default: 0
          example: 10
        loudness_rate:
          type: integer
          description: |-
            音量调节（整数）

            - `0`：正常音量（默认）
            - `100`：约 2 倍音量
            - `-50`：约一半音量

            取值范围 `-50` ~ `100`
          minimum: -50
          maximum: 100
          default: 0
          example: 0
        pitch_rate:
          type: integer
          description: |-
            音调调节，单位为**半音**

            - `0`：默认音调（不调整）
            - **正值升高音调**：`12` 为升高一个八度
            - **负值降低音调**：`-12` 为降低一个八度

            取值范围 `-12` ~ `12`
          minimum: -12
          maximum: 12
          default: 0
          example: 0
        subtitles:
          type: boolean
          description: |-
            是否返回字幕

            - `true`：任务结果里同时返回 `srt` 和 `jsonl` 两种字幕的文字内容
            - `false`：不返回（默认）
          default: false
          example: true
        callback_url:
          type: string
          description: |-
            任务完成后的HTTPS回调地址

            **回调时机：**
            - 任务完成（completed）、失败（failed）或取消（cancelled）时触发
            - 在计费确认完成后发送

            **安全限制：**
            - 仅支持HTTPS协议
            - 禁止回调到内网IP地址（127.0.0.1、10.x.x.x、172.16-31.x.x、192.168.x.x等）
            - URL长度不超过`2048`字符

            **回调机制：**
            - 超时时间：`10`秒
            - 失败后最多重试`3`次（会分别在失败的`1`秒/`2`秒/`4`秒后进行重试）
            - 回调响应体格式与任务查询接口返回的格式一致
            - 回调地址若返回2xx状态码视为成功，其他状态码会触发重试
          format: uri
          example: https://your-domain.com/webhooks/audio-completed
    SeedAudioResponse:
      type: object
      properties:
        created:
          type: integer
          description: 任务创建时间戳
          example: 1795776000
        id:
          type: string
          description: 任务ID
          example: task-unified-1795776000-abcd1234
        model:
          type: string
          description: 实际使用的模型名称
          example: seed-audio-1.5-video-to-audio
        object:
          type: string
          enum:
            - audio.generation.task
          description: 任务的具体类型
        progress:
          type: integer
          description: 任务进度百分比 (0-100)
          minimum: 0
          maximum: 100
          example: 0
        status:
          type: string
          description: 任务状态
          enum:
            - pending
            - processing
            - completed
            - failed
          example: processing
        task_info:
          $ref: '#/components/schemas/AudioTaskInfo'
          description: 音频任务详细信息
        type:
          type: string
          enum:
            - audio
          description: 任务的输出类型
          example: audio
        usage:
          $ref: '#/components/schemas/AudioUsage'
          description: 使用量和计费信息
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: 错误代码标识符
            message:
              type: string
              description: 错误描述信息
            type:
              type: string
              description: 错误类型
    AudioTaskInfo:
      type: object
      properties:
        can_cancel:
          type: boolean
          description: 任务是否可以取消（本模型提交后不支持取消）
          example: false
        estimated_time:
          type: integer
          description: 预估完成时间(秒)
          minimum: 0
          example: 20
        audio_type:
          type: string
          description: 音频任务类型
          example: video_to_audio
    AudioUsage:
      type: object
      description: 使用量信息
      properties:
        credits_reserved:
          type: number
          description: 预扣积分数（按视频时长估算，任务完成后按实际时长结算，多退少补）
          minimum: 0
          example: 7.14
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: |-
        ##所有接口均需要使用Bearer Token进行认证##

        **获取 API Key：**

        访问 [API Key 管理页面](https://evolink.ai/dashboard/keys) 获取您的 API Key

        **使用时在请求头中添加：**
        ```
        Authorization: Bearer YOUR_API_KEY
        ```

````

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