Skip to content

视频生音效

OpenAPI Specification

yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /kling/v1/audio/video-to-audio:
    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:
                video_id:
                  type: string
                  description: 通过可灵AI生成的视频的ID  仅支持30天内生成并且长度在3.0秒-20.0秒的视频
                video_url:
                  type: string
                  description: >-
                    所上传视频的获取链接 与video_id参数二选一填写,不能同时为空,也不能同时有值 
                    视频格式仅支持MP4/MOV,文件大小≤100M, 视频长度在3.0秒-20.0秒
                sound_effect_prompt:
                  type: string
                  description: 音效生成提示词
                bgm_prompt:
                  type: string
                  description: 配乐生成提示词
                asmr_mode:
                  type: boolean
                  description: 是否开启ASMR模式;该模式会增强细节音效, 适合高沉浸内容场景 true表示开启,false表示关闭(默认值)
                external_task_id:
                  type: string
                callback_url:
                  type: string
              x-apifox-orders:
                - video_id
                - video_url
                - sound_effect_prompt
                - bgm_prompt
                - asmr_mode
                - external_task_id
                - callback_url
            example:
              video_id: '825406034503692376'
              video_url: ''
              sound_effect_prompt: 符合视频的人的声音
              bgm_prompt: ''
              asmr_mode: false
              external_task_id: ''
              callback_url: ''
      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-386338588-run
components:
  schemas: {}
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
servers:
  - url: https://www.anyapi.vip
    description: 正式环境
security:
  - bearer: []

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