kling
個別查詢
在建立 Kling 任務後,可透過 GET /kling/v1/// 依 task_id 查詢影片生成任務,回傳狀態、進度與結果中繼資料以供輪詢。
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