返回模型调用 API 参考
POST/kling/v1/videos/avatar/image2video

数字人

API Key application/json

请求示例

curl -X POST https://top.qingyuntop.ai/kling/v1/videos/avatar/image2video \
  -H "Authorization: Bearer ${QINGYUN_TOP_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "image": "https://h2.inkwai.com/bs2/upload-ylab-stunt/se/ai_portal_queue_mmu_image_upscale_aiweb/3214b798-e1b4-4b00-b7af-72b5b0417420_raw_image_0.jpg",
    "audio_id": "825455158141661278",
    "sound_file": "",
    "prompt": "",
    "mode": "std",
    "callback_url": "",
    "external_task_id": ""
}'

请求参数

参数位置类型必填说明示例
Content-TypeHeaderstring-application/json
AuthorizationHeaderstring-Bearer {{YOUR_API_KEY}}
imageJSON bodystring数字人参考图支持传入图片Base64编码或图片URL(确保可访问)图片格式支持.jpg / .jpeg / .png图片文件大小不能超过10MB,图片宽高尺寸不小于300px,图片宽高比介于1:2.5 ~ 2.5:1之间-
audio_idJSON bodystring通过试听接口生成的音频的ID仅支持使用30天内生成的、时长不短于2秒切不超过300秒的音频audio_id、sound_file参数二选一,不能同时为空,也不能同时有值-
sound_fileJSON bodystring音频文件;支持传入音频Base64编码或图音频URL(确保可访问);音频文件支持.mp3/.wav/.m4a/.aac,文件大小不超过5MB,格式不匹配或文件过大会返回错误码等信息;仅支持使用时长不短于2秒且不长于300秒的音频;audio_id、sound_file参数二选一,不能同时为空,也不能同时有;系统会校验音频内容,如有问题会返回错误码等信息-
promptJSON bodystring正向文本提示词-
modeJSON bodystring生成视频的模式-
callback_urlJSON bodystring--
external_task_idJSON bodystring--

返回响应 (200)

此部分没有定义参数。

来源原始接口定义(用于追溯)

以下内容来自 Apifox 快照,可能包含兼容层字段或旧示例;公开调用请以本页的协议说明和当前模型列表为准。

{
  "id": 495899809,
  "name": "数字人",
  "type": "http",
  "serverId": "",
  "preProcessors": [],
  "postProcessors": [],
  "inheritPreProcessors": {},
  "inheritPostProcessors": {},
  "description": "",
  "operationId": "",
  "sourceUrl": "",
  "method": "post",
  "path": "/kling/v1/videos/avatar/image2video",
  "tags": [],
  "status": -1,
  "requestBody": {
    "type": "application/json",
    "parameters": [],
    "jsonSchema": {
      "type": "object",
      "properties": {
        "image": {
          "type": "string",
          "description": "数字人参考图支持传入图片Base64编码或图片URL(确保可访问)图片格式支持.jpg / .jpeg / .png图片文件大小不能超过10MB,图片宽高尺寸不小于300px,图片宽高比介于1:2.5 ~ 2.5:1之间"
        },
        "audio_id": {
          "type": "string",
          "description": "通过试听接口生成的音频的ID仅支持使用30天内生成的、时长不短于2秒切不超过300秒的音频audio_id、sound_file参数二选一,不能同时为空,也不能同时有值"
        },
        "sound_file": {
          "type": "string",
          "description": "音频文件;支持传入音频Base64编码或图音频URL(确保可访问);音频文件支持.mp3/.wav/.m4a/.aac,文件大小不超过5MB,格式不匹配或文件过大会返回错误码等信息;仅支持使用时长不短于2秒且不长于300秒的音频;audio_id、sound_file参数二选一,不能同时为空,也不能同时有;系统会校验音频内容,如有问题会返回错误码等信息"
        },
        "prompt": {
          "type": "string",
          "description": "正向文本提示词"
        },
        "mode": {
          "type": "string",
          "description": "生成视频的模式"
        },
        "callback_url": {
          "type": "string"
        },
        "external_task_id": {
          "type": "string"
        }
      },
      "required": [
        "image",
        "audio_id",
        "sound_file",
        "prompt",
        "mode",
        "callback_url",
        "external_task_id"
      ],
      "x-apifox-orders": [
        "image",
        "audio_id",
        "sound_file",
        "prompt",
        "mode",
        "callback_url",
        "external_task_id"
      ]
    },
    "examples": [
      {
        "mediaType": "application/json",
        "value": "{\r\n    \"image\": \"https://h2.inkwai.com/bs2/upload-ylab-stunt/se/ai_portal_queue_mmu_image_upscale_aiweb/3214b798-e1b4-4b00-b7af-72b5b0417420_raw_image_0.jpg\",\r\n    \"audio_id\": \"825455158141661278\",\r\n    \"sound_file\": \"\",\r\n    \"prompt\": \"\",\r\n    \"mode\": \"std\",\r\n    \"callback_url\": \"\",\r\n    \"external_task_id\": \"\"\r\n}"
      }
    ],
    "mediaType": "",
    "oasExtensions": "",
    "required": true,
    "additionalContentTypes": []
  },
  "parameters": {
    "path": [],
    "query": [],
    "cookie": [],
    "header": [
      {
        "id": "eJWUthLjcG",
        "name": "Content-Type",
        "required": false,
        "enable": true,
        "description": "",
        "type": "string",
        "sampleValue": "application/json"
      },
      {
        "id": "X0bD0NOEJr",
        "name": "Authorization",
        "required": false,
        "enable": true,
        "description": "",
        "type": "string",
        "sampleValue": "Bearer {{YOUR_API_KEY}}"
      }
    ]
  },
  "commonParameters": {
    "query": [],
    "body": [],
    "cookie": [],
    "header": []
  },
  "auth": {},
  "responses": [
    {
      "id": 140152934,
      "name": "成功",
      "code": 200,
      "contentType": "json",
      "jsonSchema": {
        "type": "object",
        "properties": {},
        "x-apifox-orders": []
      },
      "itemSchema": {},
      "description": "",
      "mediaType": "",
      "headers": []
    }
  ],
  "responseExamples": [],
  "codeSamples": [],
  "projectId": 8662722,
  "moduleId": 8310462,
  "folderId": 92436151,
  "ordering": 0,
  "responsibleId": 0,
  "commonResponseStatus": {},
  "advancedSettings": {
    "disabledSystemHeaders": {}
  },
  "customApiFields": {},
  "oasExtensions": "",
  "mockScript": {},
  "createdAt": "2026-08-02T03:53:34.000Z",
  "updatedAt": "2026-08-06T12:15:55.000Z",
  "creatorId": 2863449,
  "editorId": 2863449,
  "creatorUserId": 2863449,
  "editorUserId": 2863449,
  "responseChildren": [],
  "visibility": "INHERITED",
  "securityScheme": {},
  "callbacks": ""
}