Estenda vídeos gerados pelo Kling via POST /kling/v1/videos/video-extend usando task_id e video_id; execute como uma subtarefa na conta pai.
curl --request POST \
--url https://api.cometapi.com/kling/v1/videos/video-extend \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"video_id": "example"
}
'{
"code": 123,
"message": "<string>",
"request_id": "<string>",
"data": {
"task_id": "<string>",
"task_status": "<string>",
"task_status_msg": "<string>",
"task_info": {
"parent_video": {
"id": "<string>",
"url": "<string>",
"duration": "<string>"
}
},
"task_result": {
"videos": [
{
"id": "<string>",
"url": "<string>",
"duration": "<string>"
}
]
},
"created_at": 123,
"updated_at": 123
}
}video_id do resultado da tarefa paiConcluir a tarefa de vídeo pai
Enviar a solicitação de extensão
video_id e o prompt opcional, depois salve o id da tarefa retornado.Consultar a tarefa de extensão
Bearer token authentication. Use your CometAPI key.
Successful Response
curl --request POST \
--url https://api.cometapi.com/kling/v1/videos/video-extend \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"video_id": "example"
}
'{
"code": 123,
"message": "<string>",
"request_id": "<string>",
"data": {
"task_id": "<string>",
"task_status": "<string>",
"task_status_msg": "<string>",
"task_info": {
"parent_video": {
"id": "<string>",
"url": "<string>",
"duration": "<string>"
}
},
"task_result": {
"videos": [
{
"id": "<string>",
"url": "<string>",
"duration": "<string>"
}
]
},
"created_at": 123,
"updated_at": 123
}
}