Skip to main content
GET
cURL
Wan 비디오 작업을 생성한 후 이 엔드포인트를 사용하세요. 작업 상태를 반환하며, 작업이 완료된 후에는 video_url도 포함됩니다.

다음 필드를 확인하세요

  • status는 작업이 queued, in_progress, completed, failed, 또는 error 상태인지 알려줍니다.
  • progress는 대략적인 완료 비율입니다.
  • video_url은 완료된 응답에 나타납니다.
  • error는 작업이 실패했을 때 나타납니다.

폴링 흐름

1

먼저 작업 생성

Wan 비디오 생성으로 시작하고 반환된 id를 저장하세요.
2

task ID로 폴링

statuscompleted, failed, 또는 error에 도달할 때까지 이 엔드포인트에 task ID를 보내세요.
3

MP4 파일 다운로드

statuscompleted이면 Wan 비디오 콘텐츠 조회를 호출하세요.

인증

Authorization
string
header
필수

Bearer authentication. Use your CometAPI API key.

경로 매개변수

task_id
string
필수

Task ID returned by POST /v1/videos.

응답

Current Wan video task state.

id
string
필수

Task ID. Use this value as task_id in retrieve and content requests.

예시:

"task_example"

object
string
필수

Object type. Wan video tasks return video.

예시:

"video"

model
string
필수

Model ID used for the task.

예시:

"wan2.6"

status
enum<string>
필수

Task lifecycle status. Poll until the value is completed, failed, or error.

사용 가능한 옵션:
queued,
in_progress,
completed,
failed,
error
예시:

"queued"

progress
integer
필수

Task progress as a coarse percentage.

필수 범위: 0 <= x <= 100
예시:

0

created_at
integer
필수

Task creation time as a Unix timestamp in seconds.

예시:

1779938152

task_id
string

Compatibility alias for id. The value matches id when present.

예시:

"task_example"

completed_at
integer

Task completion time as a Unix timestamp in seconds. This field appears on completed tasks.

예시:

1779938219

video_url
string

Temporary video delivery URL. This field appears on completed tasks.

예시:

"<temporary-video-url>"

error
object

Failure details. This field appears when the task fails.