返回模型调用 API 参考
POST/kling/v1/audio/tts

语音合成

API Key application/json

请求示例

curl -X POST https://top.qingyuntop.ai/kling/v1/audio/tts \
  -H "Authorization: Bearer ${QINGYUN_TOP_API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "描述看到的画面",
    "voice_id": "genshin_vindi2",
    "voice_language": "zh",
    "voice_speed": "1.0"
}'

请求参数

参数位置类型必填说明示例
Content-TypeHeaderstring-application/json
AuthorizationHeaderstring-Bearer {{YOUR_API_KEY}}
textJSON bodystring合成音频的文案;文本内容最大长度1000,内容过长会返回错误码等信息;系统会校验文本内容,如有问题会返回错误码等信息-
voice_idJSON bodystring音色ID 系统提供多种音色可供选择,具体音色效果、音色ID、音色语种对应关系;音色试听不支持自定义文案 音色试听文件命名规范:音色名称#音色ID#音色语种 语音合成目前仅支持官方音色哈,不支持自定义音色-
voice_languageJSON bodystring合成音频的文案;文本内容最大长度1000,内容过长会返回错误码等信息;系统会校验文本内容,如有问题会返回错误码等信息-
voice_speedJSON bodyinteger语速有效范围:0.8~2.0,精确至小数点后1位,超出部分将自动四舍五入-

返回响应 (200)

此部分没有定义参数。

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

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

{
  "id": 495899815,
  "name": "语音合成",
  "type": "http",
  "serverId": "",
  "preProcessors": [],
  "postProcessors": [],
  "inheritPreProcessors": {},
  "inheritPostProcessors": {},
  "description": "",
  "operationId": "",
  "sourceUrl": "",
  "method": "post",
  "path": "/kling/v1/audio/tts",
  "tags": [],
  "status": -1,
  "requestBody": {
    "type": "application/json",
    "parameters": [],
    "jsonSchema": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string",
          "description": "合成音频的文案;文本内容最大长度1000,内容过长会返回错误码等信息;系统会校验文本内容,如有问题会返回错误码等信息"
        },
        "voice_id": {
          "type": "string",
          "description": "音色ID  系统提供多种音色可供选择,具体音色效果、音色ID、音色语种对应关系;音色试听不支持自定义文案  音色试听文件命名规范:音色名称#音色ID#音色语种   语音合成目前仅支持官方音色哈,不支持自定义音色"
        },
        "voice_language": {
          "type": "string",
          "description": "合成音频的文案;文本内容最大长度1000,内容过长会返回错误码等信息;系统会校验文本内容,如有问题会返回错误码等信息"
        },
        "voice_speed": {
          "type": "integer",
          "description": "语速有效范围:0.8~2.0,精确至小数点后1位,超出部分将自动四舍五入"
        }
      },
      "required": [
        "text",
        "voice_id",
        "voice_language"
      ],
      "x-apifox-orders": [
        "text",
        "voice_id",
        "voice_language",
        "voice_speed"
      ]
    },
    "examples": [
      {
        "mediaType": "application/json",
        "value": "{\r\n    \"text\": \"描述看到的画面\",\r\n    \"voice_id\": \"genshin_vindi2\",\r\n    \"voice_language\": \"zh\",\r\n    \"voice_speed\": \"1.0\"\r\n}"
      }
    ],
    "mediaType": "",
    "oasExtensions": "",
    "required": true,
    "additionalContentTypes": []
  },
  "parameters": {
    "path": [],
    "query": [],
    "cookie": [],
    "header": [
      {
        "id": "r7u5Oc9QDf",
        "name": "Content-Type",
        "required": false,
        "enable": true,
        "description": "",
        "type": "string",
        "sampleValue": "application/json"
      },
      {
        "id": "HhWhjv91tm",
        "name": "Authorization",
        "required": false,
        "enable": true,
        "description": "",
        "type": "string",
        "sampleValue": "Bearer {{YOUR_API_KEY}}"
      }
    ]
  },
  "commonParameters": {
    "query": [],
    "body": [],
    "cookie": [],
    "header": []
  },
  "auth": {},
  "responses": [
    {
      "id": 144260252,
      "name": "成功",
      "code": 200,
      "contentType": "json",
      "jsonSchema": {
        "type": "object",
        "properties": {},
        "x-apifox-orders": []
      },
      "itemSchema": {},
      "description": "",
      "mediaType": "",
      "headers": []
    }
  ],
  "responseExamples": [],
  "codeSamples": [],
  "projectId": 8662722,
  "moduleId": 8310462,
  "folderId": 92436154,
  "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": ""
}