对口型
POST
https://api.deerapi.com/kling/v1/videos/lip-sync
2、此接口要求传入任务id和视频id
此接口属于子任务,需要在父任务账号上使用,请尽快操作避免资源包过期。
官方文档:https://docs.qingque.cn/d/home/eZQClW07IFEuX1csc-VejdY2M#section=h.o30jngluvb4t
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.deerapi.com/kling/v1/videos/lip-sync' \
--header 'Authorization: Bearer {{api-key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"input": {
"task_id": "ClpejWduJGYAAAAAAN9B-w",
"video_id": "de1b86d9-8e40-4f1c-a6a5-6459f8eb42f2",
"mode": "text2video",
"text": "今天天气很好",
"voice_id": "girlfriend_1_speech02",
"voice_language": "zh"
}
}'
响应示例响应示例
{
"code": 0,
"message": "string",
"request_id": "string",
"data": {
"task_id": "string",
"task_status": "string",
"created_at": 1722769557708,
"updated_at": 1722769557708
}
}
请求参数
Header 参数
Authorization
string
必需
示例值:
Bearer {{api-key}}
Body 参数application/json
返回响应
修改于 2025-03-26 08:26:14