Kling 작업 조회
task_id로 Kling 비디오 생성 작업을 조회하고, 폴링을 위한 상태, 진행률 및 결과 메타데이터를 반환합니다.
먼저 확인할 사항
task.task_status; Motion Control 작업에서는submitted,processing,succeed또는failed를task.task_result.videos[0].url비디오 작업이 성공했을 때 사용하고,task.task_status_msg또는 작업이 조기에 중단되었을 때 반환된 기타 세부 필드를 사용하며code,message, 그리고 응답이 표준request_id를 사용할 때는 래퍼를 확인하세요.
폴링 패턴
해당 엔드포인트에서 작업 생성
작업이 종료 상태에 도달할 때까지 폴링
succeed 및 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, motion-control, lip-sync, effects, multi-image2video, multi-elements. For audio: text-to-audio, video-to-audio.
Task ID
응답
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.