Query Kling video generation tasks by task_id via GET /kling/v1///, returning status, progress, and result metadata for polling.
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"
}
}Use this endpoint family after you create a Kling task. It is the common polling step for Kling async media jobs.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, and request_id for the query acknowledgementdata.task_status for the task state, such as submitted, processing, succeed, or faileddata.task_result.videos[0].url when the task succeedsdata.task_status_msg or other returned detail fields when a task stops earlyCreate the task from the matching endpoint
Poll until the task is terminal
data.task_status reaches succeed or failed.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"
}
}