Skip to content

文生音效

OpenAPI Specification

yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /kling/v1/audio/text-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:
                prompt:
                  type: string
                  description: 文本提示词
                duration:
                  type: string
                  description: 生成音频的时长取值范围: ​​3.0秒至10.0秒​​,支持小数点后一位精度
                external_task_id:
                  type: string
                callback_url:
                  type: string
              required:
                - prompt
                - duration
              x-apifox-orders:
                - prompt
                - duration
                - external_task_id
                - callback_url
            example:
              prompt: 描述风景的音频
              duration: 5
              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-386322140-run
components:
  schemas: {}
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
servers:
  - url: https://www.anyapi.vip
    description: 正式环境
security:
  - bearer: []

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