Skip to content

数字人

OpenAPI Specification

yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /kling/v1/videos/avatar/image2video:
    post:
      summary: 数字人
      deprecated: false
      description: ''
      tags:
        - 可灵 Kling 平台/数字人
      parameters:
        - name: Content-Type
          in: header
          description: ''
          required: false
          example: application/json
          schema:
            type: string
        - name: Authorization
          in: header
          description: ''
          required: false
          example: Bearer {{YOUR_API_KEY}}
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              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
            example:
              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: ''
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
          headers: {}
          x-apifox-name: 成功
      security:
        - bearer: []
      x-apifox-folder: 可灵 Kling 平台/数字人
      x-apifox-status: testing
      x-run-in-apifox: https://app.apifox.com/web/project/5443236/apis/api-386315766-run
components:
  schemas: {}
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
servers:
  - url: https://www.anyapi.vip
    description: 正式环境
security:
  - bearer: []

AnyAPI — 专业的 AI 接口聚合服务