메인 콘텐츠로 건너뛰기
GET
/
kling
/
v1
/
videos
/
omni-video
/
{task_id}
Omni Query
curl --request GET \
  --url https://api.cometapi.com/kling/v1/videos/omni-video/{task_id} \
  --header 'Authorization: Bearer <token>'
{
  "code": 0,
  "message": "success",
  "request_id": "878106484537192522",
  "data": {
    "task_id": "878106484537192522",
    "task_info": {},
    "created_at": 1777385419126,
    "updated_at": 1777385430317,
    "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 Omni 작업을 생성한 후 이 엔드포인트를 사용하세요. 작업이 성공하면 작업 상태와 최종 비디오 URL을 반환합니다.

먼저 확인할 필드

  • 쿼리 확인 응답을 위한 code, message, request_id
  • submitted, processing, succeed, failed와 같은 작업 상태를 나타내는 data.task_status
  • 완료된 MP4 URL을 위한 data.task_result.videos[0].url

폴링 패턴

1

먼저 작업 생성

Omni Video로 시작하고 반환된 task_id를 저장합니다.
2

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

data.task_statussucceed 또는 failed에 도달할 때까지 계속 조회하세요.
3

반환된 MP4 URL 사용

작업이 성공하면 최종 비디오 URL을 즉시 다운로드하거나 복사하세요.

인증

Authorization
string
header
필수

Bearer token authentication. Use your CometAPI key.

경로 매개변수

task_id
string
필수

Task id returned by the Omni Video endpoint.

응답

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
필수