Chuyển đổi video Kling thành âm thanh chất lượng cao thông qua endpoint Video to Audio của CometAPI, với khả năng cấu hình định dạng đầu ra, thời lượng và kiểm soát prompt.
curl --request POST \
--url https://api.cometapi.com/kling/v1/audio/video-to-audio \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"video_url": "https://xxxxx.mp4"
}
'{
"code": 123,
"message": "<string>",
"data": {
"task_id": "<string>",
"task_status": "<string>",
"created_at": 123,
"updated_at": 123
}
}video_id hoặc video_url, nhưng không gửi cả haivideo_url khi đoạn video nguồn ban đầu không được tạo từ Klingcallback_url và external_task_id là tùy chọn trừ khi tích hợp của bạn cần chúngGửi video nguồn
video_id của Kling hoặc một video_url có thể truy cập được, sau đó lưu task id được trả về.Thăm dò task
Bearer token authentication. Use your CometAPI key.
ID of a Kling-generated video. Only videos created within the last 30 days with a duration of 3–20 seconds are supported. Mutually exclusive with video_url — exactly one must be provided.
Optional user-defined task ID for your own tracking. Does not replace the system-generated task ID. Must be unique per account.
Webhook URL for task status notifications. The server sends a callback when the task status changes.
Accessible URL of the source video. Accepted formats: MP4, MOV. Max 100 MB, 720p or 1080p resolution, duration 3–20 seconds. Mutually exclusive with video_id — exactly one must be provided.
curl --request POST \
--url https://api.cometapi.com/kling/v1/audio/video-to-audio \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"video_url": "https://xxxxx.mp4"
}
'{
"code": 123,
"message": "<string>",
"data": {
"task_id": "<string>",
"task_status": "<string>",
"created_at": 123,
"updated_at": 123
}
}