메인 콘텐츠로 건너뛰기
GET
/
kling
/
v1
/
{action}
/
{action2}
/
{task_id}
Individual queries
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" } }

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.

Kling 작업을 생성한 후 이 엔드포인트 계열을 사용하세요. Kling 비동기 미디어 작업에서 공통으로 사용하는 폴링 단계입니다.

먼저 확인할 사항

  • 쿼리 확인 응답의 code, message, request_id
  • submitted, processing, succeed, failed와 같은 작업 상태를 나타내는 data.task_status
  • 작업이 성공했을 때의 data.task_result.videos[0].url
  • 작업이 중간에 종료되었을 때의 data.task_status_msg 또는 기타 반환되는 세부 필드

폴링 패턴

1

일치하는 엔드포인트에서 작업 생성

Text to Video 또는 Image to Video처럼, 워크플로에 맞는 Kling 생성 페이지에서 시작하세요.
2

작업이 종료 상태가 될 때까지 폴링

반환된 task id로 data.task_statussucceed 또는 failed에 도달할 때까지 계속 조회하세요.
3

다음 워크플로 단계로 진행

완료된 출력을 바로 사용하거나, 워크플로가 연계 작업을 지원하는 경우 다음 provider별 작업 페이지로 이동하세요.
전체 파라미터 참조는 official Kling documentation를 확인하세요.

인증

Authorization
string
header
필수

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, 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.

code
integer
필수

Kling response code. 0 indicates the query was accepted.

message
string
필수

Kling response message.

request_id
string
필수

Identifier for this query request.

data
object
필수