创建 Kling 视频转音频
通过 CometAPI 的视频转音频端点,将 Kling 视频转换为高质量音频,并支持配置输出格式、时长和 Prompt 控制。
调用前准备
- 发送
video_id或video_url其中之一,但不要同时发送两者 - 当源片段最初并非来自 Kling 时,请使用
video_url - 除非你的集成需要,否则将
callback_url和external_task_id保持为可选
任务流程
提交源视频
video_id 或可访问的 video_url,然后保存返回的任务 id。轮询任务
保存输出
授权
Bearer token authentication. Use your CometAPI key.
请求体
- Option 1
- Option 2
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.