GET /kling/v1/// を通じて task_id で Kling の動画生成タスクを照会し、ポーリング用の status、progress、result metadata を返します。
curl --request GET \
--url https://api.cometapi.com/kling/v1/{action}/{action2}/{task_id} \
--header 'Authorization: Bearer <token>'{
"code": 0,
"message": "SUCCEED",
"request_id": "9ab376fc-9059-487f-9e2a-c9c89f1a344f",
"data": {
"task_id": "878106242831892487",
"task_info": {},
"created_at": 1777385361501,
"updated_at": 1777385363321,
"task_result": {},
"task_status": "processing"
}
}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_idsubmitted、processing、succeed、failed などのタスク状態を示す data.task_statusdata.task_result.videos[0].urldata.task_status_msg またはその他の返却された詳細フィールド対応するエンドポイントでタスクを作成
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
curl --request GET \
--url https://api.cometapi.com/kling/v1/{action}/{action2}/{task_id} \
--header 'Authorization: Bearer <token>'{
"code": 0,
"message": "SUCCEED",
"request_id": "9ab376fc-9059-487f-9e2a-c9c89f1a344f",
"data": {
"task_id": "878106242831892487",
"task_info": {},
"created_at": 1777385361501,
"updated_at": 1777385363321,
"task_result": {},
"task_status": "processing"
}
}