Get a Kling task
Query a Kling video generation task by task_id and return its status, progress, and result metadata for polling.
What to check first
task.task_status; Motion Control tasks usesubmitted,processing,succeed, orfailedtask.task_result.videos[0].urlwhen a video task succeedstask.task_status_msgor other returned detail fields when a task stops earlycode,message, andrequest_idwhen the response uses the standard envelope
Polling pattern
Create the task from the matching endpoint
Poll until the task is terminal
succeed and failed.Continue to the next workflow step
Common path pairs
Authorizations
Bearer token authentication. Use your CometAPI key.
Path Parameters
Resource type. One of: images, videos, audio.
Sub-action matching the resource type. For images: generations, kolors-virtual-try-on. For videos: text2video, image2video, motion-control, lip-sync, effects, multi-image2video, multi-elements. For audio: text-to-audio, video-to-audio.
Task ID
Response
Current Kling task state.
- Option 1
- Option 2
A query can return the task object directly or inside the standard response envelope. Normalize both shapes before reading task fields.
Kling task ID.
Current task state. Compatible Motion Control tasks use submitted, processing, succeed, or failed.
Failure or status detail when returned.
Additional task metadata. The object can be empty.
Absent on an initial submitted task, commonly empty while processing or after failure, and populated when a task succeeds.
Watermark information when returned by a compatible workflow.
Task creation timestamp in milliseconds.
Last task update timestamp in milliseconds.
Final unit deduction value, when returned.
Final balance deduction values, when returned.