Bearer token authentication. Use your CometAPI key.
路径参数
action
string
必填
Resource type. One of: images, videos, audio.
action2
string
必填
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
string
必填
Task ID
响应
200 - application/json
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.
task_id
string
必填
Kling task ID.
task_status
string
必填
Current task state. Compatible Motion Control tasks use submitted, processing, succeed, or failed.
status
string
Optional compatibility response status. For a direct legacy Kling task response, synthesized values are PENDING, RUNNING, SUCCEEDED, or FAILED; use task_status as the canonical task state.
task_status_msg
string
Failure or status detail when returned.
task_info
object
Additional task metadata. The object can be empty.
task_result
object
Absent on an initial submitted task, commonly empty while processing or after failure, and populated when a task succeeds.
Show child attributes
watermark_info
object
Watermark information when returned by a compatible workflow.