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

# Kling Avatar 2.0 Standard

> 使用 Kling Avatar 2.0 Standard 创建说话的数字人，结合角色图片与音频表演，可选文本引导。

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

使用 Kling Avatar 2.0 Standard 创建说话的数字人，结合角色图片与音频表演，可选文本引导。

## 模型

* **kwaivgi/kling-video/ai-avatar/v2/standard** - 用驱动音频让角色图片动起来。

## 功能

* 用驱动音频让角色图片动起来。
* `image_urls` 中恰好接受 1 张图片。

## 时长选项

* **驱动音频：2-60 秒** - 服务会检测 `audio_url` 的时长。
* 音频必须可通过 HTTP(S) 公开访问，且不超过 **5 MiB**。

## 高级参数

`model` 和可选的 `callback_url` 放在请求根级。所有工作流程参数（包括输出选项）都放在 `input` 中。

只发送该工作流程支持的 input 字段。不支持的 `input` 字段会在扣除积分前被拒绝。输入 URL 必须使用 HTTP(S)、包含主机名，且不含内嵌凭据。图像输入也接受图片 Data URI 或原始 Base64。图像转换和媒体校验在扣除积分前完成。

### 图像 URL

* `image_urls`：必填。恰好提供 1 项。每一项可以是公开的 HTTP(S) URL、图片 Data URI 或原始 Base64。图片顺序保持不变。

### 音频 URL

* `audio_url`：必填。提供输入音频 URL。使用公开可访问的 HTTP(S) URL。

### 提示词

* `prompt`：可选。描述场景和期望的动作。去除首尾空白后最多 **2500 个字符**。
* 首尾空白会被去除。省略、null、空字符串和仅含空白的值都视为省略。

## 价格

用量按检测到的驱动音频时长计算，向上取整到整秒。

当前费率请查看 Vidgo 仪表盘。

提交时扣除积分，任务失败时退还。


## OpenAPI

````yaml zh/api-manual/video-series/kwaivgi-kling-video-ai-avatar-v2-standard.json POST /api/generate/submit
openapi: 3.0.0
info:
  title: Vidgo API - Kling Avatar 2.0 Standard
  description: 使用 Kling Avatar 2.0 Standard 创建说话的数字人，结合角色图片与音频表演，可选文本引导。
  version: 1.0.0
servers:
  - url: https://api.vidgo.ai
security:
  - BearerAuth: []
paths:
  /api/generate/submit:
    post:
      tags:
        - Video Series
      summary: Kling Avatar 2.0 Standard
      description: >-
        只发送该工作流程列出的字段。其他工作流程的参数会在扣除积分前被拒绝。


        可选的提示词字符串会去除首尾空白；null、空字符串和仅含空白的提示词视为省略。恰好提供一张图片，可以是公开的 HTTP(S) URL、图片
        Data URI 或原始 Base64。音频需要使用不含内嵌凭据的公开 HTTP(S) URL。Base64 转换和媒体校验在扣除积分前完成。


        驱动音频时长必须在两秒到六十秒之间。用量按检测到的时长计算，向上取整到整秒。


        驱动音频必须是可公开访问的 HTTP(S) 文件，大小不超过 5 MiB（5,242,880 字节）。
      operationId: submit_kwaivgi_kling_video_ai_avatar_v2_standard
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - model
                - input
              additionalProperties: true
              description: model 和 callback_url 放在根级。未知的根级字段会被忽略；不支持的 input 字段会被拒绝。
              properties:
                model:
                  type: string
                  example: kwaivgi/kling-video/ai-avatar/v2/standard
                input:
                  type: object
                  required:
                    - audio_url
                    - image_urls
                  properties:
                    image_urls:
                      type: array
                      items:
                        type: string
                        minLength: 1
                        description: 图像 URL。
                      minItems: 1
                      maxItems: 1
                      description: >-
                        恰好一张图片：公开的 HTTP(S) URL、图片 Data URI 或原始 Base64。Base64
                        会在提交前转换为 URL。
                    audio_url:
                      type: string
                      format: uri
                      description: 公开的 HTTP(S) 驱动音频 URL。时长必须在 2–60 秒之间（含端点）；文件大小不得超过 5 MiB。
                    prompt:
                      type: string
                      nullable: true
                      maxLength: 2500
                      description: 可选提示词，最多 2500 个字符。首尾空白会被去除；null、空字符串或仅含空白的值视为省略。
                  additionalProperties: false
                callback_url:
                  type: string
                  nullable: true
                  description: >-
                    可选的公开 HTTP(S) 接口，用于接收任务完成通知。建议使用 HTTPS。省略、传 null
                    或空字符串即可禁用回调。
            examples:
              basic:
                summary: 基础工作流程
                value:
                  model: kwaivgi/kling-video/ai-avatar/v2/standard
                  input:
                    audio_url: https://example.com/audio.mp3
                    image_urls:
                      - https://example.com/image.png
              callback:
                summary: 接收完成回调
                value:
                  model: kwaivgi/kling-video/ai-avatar/v2/standard
                  input:
                    audio_url: https://example.com/audio.mp3
                    image_urls:
                      - https://example.com/image.png
                  callback_url: https://your-domain.com/callback
      responses:
        '200':
          description: 任务已提交
          content:
            application/json:
              schema:
                type: object
                required:
                  - code
                  - data
                properties:
                  code:
                    type: integer
                    enum:
                      - 200
                  data:
                    type: object
                    required:
                      - task_id
                      - status
                      - created_time
                    properties:
                      task_id:
                        type: string
                      status:
                        type: string
                        enum:
                          - not_started
                          - running
                          - finished
                          - failed
                      created_time:
                        type: string
                        format: date-time
              example:
                code: 200
                data:
                  task_id: task-unified-example
                  status: running
                  created_time: '2026-09-10T08:00:00'
        '400':
          description: 输入无效、档位不受支持、媒体无法访问或积分不足
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '401':
          description: 凭据无效
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '403':
          description: 拒绝访问
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '404':
          description: 模型未知或已停用
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '408':
          description: 请求超时
          content:
            text/plain:
              schema:
                type: string
              example: Request timeout
        '422':
          description: JSON 无效或请求体不是对象
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '429':
          description: 超出请求频率或 API Key 积分限额
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '500':
          description: 内部错误
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '502':
          description: 无法创建上游生成任务
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
        '503':
          description: 所请求的模型暂时不可用
          content:
            application/json:
              schema:
                type: object
                required:
                  - detail
                properties:
                  detail:
                    oneOf:
                      - type: string
                      - type: object
                        additionalProperties: true
                      - type: array
                        items: {}
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: 使用 VIDGO_API_KEY。

````

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