kling
单个查询
通过 GET /kling/v1/// 使用 task_id 查询 Kling 视频生成任务,返回状态、进度和结果元数据以用于轮询。
GET
Individual queries
在创建 Kling 任务后,使用这一组端点。这是 Kling 异步媒体任务的通用轮询步骤。Documentation Index
Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
Use this file to discover all available pages before exploring further.
首先检查什么
- 查询确认的
code、message和request_id - 用于表示任务状态的
data.task_status,例如submitted、processing、succeed或failed - 任务成功时的
data.task_result.videos[0].url - 当任务提前停止时的
data.task_status_msg或其他返回的详细字段
轮询模式
完整参数说明请参阅官方 Kling 文档。
授权
Bearer token authentication. Use your CometAPI key.
路径参数
Resource type. One of: images, videos, audio.
Sub-action matching the resource type. For images: generations, kolors-virtual-try-on. For videos: text2video, image2video, lip-sync, effects, multi-image2video, multi-elements. For audio: text-to-audio, video-to-audio.
Task ID