POST
/kling/v1/general/custom-voices自定义音色
API Key application/json
请求示例
curl -X POST https://top.qingyuntop.ai/kling/v1/general/custom-voices \
-H "Authorization: Bearer ${QINGYUN_TOP_API_KEY}"请求参数
| 参数 | 位置 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|---|
Content-Type | Header | string | 否 | - | application/json |
Authorization | Header | string | 否 | - | Bearer {{YOUR_API_KEY}} |
voice_name | JSON body | string | 是 | 音色名称 | - |
voice_url | JSON body | string | 否 | 音色数据文件获取链接 支持.mp3/.wav/.mp4/.mov格式的音视频文件 音频中人生需干净无杂音,有且只能有一种人声,时长不短于5秒且不长于30秒 | - |
video_id | JSON body | string | 否 | 历史作品ID,可通过引用历史作品提供音频素材 仅满足以下条件的视频可以用于定制音色: 使用V2.6版本模型生成且开启sound参数值为on的视频 通过数字人API生成的视频 通过对口型API生成的视频 音频中人生需干净无杂音,有且只能有一种人声,时长不短于5秒且不长于30秒 | - |
callback_url | JSON body | string | 否 | - | - |
external_task_id | JSON body | string | 否 | - | - |
返回响应 (200)
此部分没有定义参数。
响应示例
{
"voice_name": "测试音色",
"voice_url": "",
"video_id": "830460928805724256",
"callback_url": "",
"external_task_id": ""
}来源原始接口定义(用于追溯)
以下内容来自 Apifox 快照,可能包含兼容层字段或旧示例;公开调用请以本页的协议说明和当前模型列表为准。
{
"id": 495899821,
"name": "自定义音色",
"type": "http",
"serverId": "",
"preProcessors": [],
"postProcessors": [],
"inheritPreProcessors": {},
"inheritPostProcessors": {},
"description": "",
"operationId": "",
"sourceUrl": "",
"method": "post",
"path": "/kling/v1/general/custom-voices",
"tags": [],
"status": 1,
"requestBody": {
"type": "application/json",
"parameters": [],
"jsonSchema": {
"type": "object",
"properties": {
"voice_name": {
"type": "string",
"description": "音色名称"
},
"voice_url": {
"type": "string",
"description": "音色数据文件获取链接\n支持.mp3/.wav/.mp4/.mov格式的音视频文件\n音频中人生需干净无杂音,有且只能有一种人声,时长不短于5秒且不长于30秒"
},
"video_id": {
"type": "string",
"description": "历史作品ID,可通过引用历史作品提供音频素材\n\n仅满足以下条件的视频可以用于定制音色:\n使用V2.6版本模型生成且开启sound参数值为on的视频\n通过数字人API生成的视频\n通过对口型API生成的视频\n音频中人生需干净无杂音,有且只能有一种人声,时长不短于5秒且不长于30秒"
},
"callback_url": {
"type": "string"
},
"external_task_id": {
"type": "string"
}
},
"required": [
"voice_name"
],
"x-apifox-orders": [
"voice_name",
"voice_url",
"video_id",
"callback_url",
"external_task_id"
]
},
"examples": [],
"mediaType": "",
"oasExtensions": "",
"required": true,
"additionalContentTypes": []
},
"parameters": {
"path": [],
"query": [],
"cookie": [],
"header": [
{
"id": "vJoqJYWGjO",
"name": "Content-Type",
"required": false,
"enable": true,
"description": "",
"type": "string",
"sampleValue": "application/json"
},
{
"id": "GoglcTPvdp",
"name": "Authorization",
"required": false,
"enable": true,
"description": "",
"type": "string",
"sampleValue": "Bearer {{YOUR_API_KEY}}"
}
]
},
"commonParameters": {
"query": [],
"body": [],
"cookie": [],
"header": []
},
"auth": {},
"responses": [
{
"id": 180891665,
"name": "成功",
"code": 200,
"contentType": "json",
"jsonSchema": {
"type": "object",
"properties": {},
"x-apifox-orders": []
},
"itemSchema": {},
"description": "",
"mediaType": "",
"headers": []
}
],
"responseExamples": [
{
"name": "示例 1",
"responseId": 180891665,
"data": "{\r\n \"voice_name\": \"测试音色\",\r\n \"voice_url\": \"\",\r\n \"video_id\": \"830460928805724256\",\r\n \"callback_url\": \"\",\r\n \"external_task_id\": \"\"\r\n}",
"description": "",
"oasKey": "",
"oasExtensions": "",
"id": "019fc09b-0b28-751d-ab55-eb6be827d59e"
}
],
"codeSamples": [],
"projectId": 8662722,
"moduleId": 8310462,
"folderId": 92436157,
"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": ""
}