메인 콘텐츠로 건너뛰기
POST
텍스트, 참조 미디어 또는 첫 번째와 마지막 프레임으로 Wan 동영상을 생성합니다. 반환된 id을 저장하여 작업을 폴링하고 완성된 동영상을 다운로드하세요. POST /v1/videos multipart/form-data를 사용합니다. 명시적인 정수 seconds 값과 size를 WxH 형식으로 전송하세요. wan3.0-prime wan3.0와 동일한 공개 요청 필드, 미디어 제한 및 작업 흐름을 사용합니다. Prime을 대상으로 할 때 model을 정확히 wan3.0-prime 값으로 설정하세요. Prime은 텍스트-동영상, 이미지-동영상, 첫 번째 및 마지막 프레임 입력과 이미지, 동영상, 오디오 참조의 조합을 지원합니다. 참조 미디어와 프레임 입력은 별도의 요청으로 전송해야 합니다.

입력 모드 선택

모든 모드에는 model 및 prompt이 필요합니다. 사용할 수 있는 미디어 입력은 모델에 따라 다릅니다: API 키에서 사용할 수 있는 Wan 모델 ID를 찾으려면 사용 가능한 모델 나열.

Wan 3.0 Prime 동영상 생성

이 최소 요청은 Prime을 사용하여 5초 길이의 텍스트-동영상 작업을 생성합니다:

참조 이미지 사용

wan2.7, wan3.0 및 wan3.0-prime의 경우, 공개적으로 액세스할 수 있는 HTTPS URL 또는 업로드된 파일을 통해 input_reference로 참조 이미지를 전송하세요. 여러 이미지를 사용할 경우 이미지 순서대로 필드를 반복하며, 각 필드에는 URL 또는 파일 하나를 지정하세요. input_reference 내에서는 모든 URL 또는 모든 파일을 사용하세요. URL을 쉼표로 구분된 값으로 결합하지 말고 각 URL을 별도로 전송하세요. 각각 최대 20MB의 PNG 또는 JPEG 이미지를 사용하세요. 단일 input_reference URL 또는 파일은 이미지-동영상 워크플로를 사용합니다. 이미지는 구도와 모양을 안내하며, 프롬프트(Prompt)를 사용해 움직임과 카메라 동작을 설명하세요. wan3.0 및 wan3.0-prime의 경우 URL 또는 업로드된 파일 사용 여부와 관계없이 input_reference를 통해 최대 10개의 참조 이미지를 전송하세요.

참조 동영상 및 오디오 사용

각 입력마다 각 필드를 한 번씩 반복하여, 동영상은 reference_videos을 통해, 오디오 클립은 reference_audios을 통해 전송하세요. 각 입력은 공개적으로 액세스할 수 있는 HTTPS URL 또는 업로드된 파일일 수 있습니다. 동영상 참조에는 H.264로 인코딩된 동영상이 포함된 MP4 파일을 사용하세요. 오디오 참조에는 별도의 MP3 파일을 사용하세요. 서로 다른 필드에서는 업로드된 동영상과 이미지 URL처럼 서로 다른 입력 유형을 사용할 수 있습니다. reference_videos 또는 reference_audios 내에서는 URL만 사용하거나 파일만 사용하세요. 각각 최대 50 MiB(50 × 1024 × 1024바이트)인 동영상 파일을 최대 5개 업로드할 수 있습니다.). 각각 최대 15 MiB(15 × 1024 × 1024바이트)인 오디오 파일을 최대 5개 업로드할 수 있습니다.).

Wan 2.6 동영상 참조

각각 230초, 최대 30MB, 최소 16fps인 reference_videos를 13개 전송하세요. 이 제한은 URL과 업로드된 동영상 모두에 적용됩니다. 프롬프트에서 입력 순서에 따라 피사체를 @Video1, @Video2, @Video3로 지칭하세요. 이 모드에서는 input_reference, reference_audios, first_frame, last_frame을 생략하세요. seconds을 5 또는 10로 설정하세요. 이 예제에서는 두 개의 동영상 참조로 5초 동영상을 생성합니다. 미디어 URL 또는 파일 이름을 입력으로 바꾸세요:

Wan 2.7 이미지 및 동영상 참조

이미지 및 동영상 참조를 결합하여 피사체의 외형과 동작을 안내하세요. seconds을 2부터 10까지의 정수로 설정하세요. reference_audios은 생략하세요. 동영상 참조와 함께 이미지 URL 두 개 또는 업로드된 이미지 두 개를 사용하세요:

Wan 3.0 이미지, 동영상 및 오디오 참조

wan3.0 및 wan3.0-prime의 경우, 이미지 및 동영상 참조를 오디오 참조와 결합하여 외형, 동작, 리듬을 안내하세요. 합산 길이가 최대 15초인 동영상 참조를 최대 5개 전송하세요. 각 동영상은 최소 16fps여야 합니다. 합산 길이가 최대 15초인 오디오 참조를 최대 5개 전송하세요. 동영상과 오디오 길이는 별도로 계산합니다. 출력 seconds을 2부터 30까지의 정수로 설정하세요. 동영상 하나 및 오디오 클립 두 개와 함께 이미지 URL 두 개 또는 업로드된 이미지 두 개를 사용하세요:

첫 번째 및 마지막 프레임 사용

wan2.7, wan3.0, wan3.0-prime의 경우, 시작 이미지에는 first_frame를 전송하고 종료 이미지에는 선택적으로 last_frame를 전송하세요. 각 필드는 공개적으로 액세스 가능한 HTTPS PNG 또는 JPEG URL 하나나 업로드된 PNG 또는 JPEG 파일 하나를 허용합니다. Wan 2.7 프레임 입력의 경우, 시작 이미지가 가로세로비를 결정하며 size가 출력 해상도 등급을 선택합니다. 프레임 입력은 input_reference, reference_videos, reference_audios와 별도의 요청으로 제출하세요. 다음 Wan 2.7 예시는 시작 프레임과 종료 프레임 간의 전환을 생성합니다:
다음 Wan 3.0 및 Wan 3.0 Prime 예시는 시작 프레임과 종료 프레임 간의 전환을 생성합니다:

기간 및 크기 설정

모델과 입력 모드에 맞는 범위 내의 정수로 seconds를 전송합니다. 대상 모델에 맞게 size를 아래 WxH 값 중 하나로 설정합니다. Wan 3.0 크기 값은 wan3.0-prime에도 적용됩니다.

Wan 3.0 크기 값

Wan 2.7 크기 값

Wan 2.6 크기 값

작업 흐름

1

작업 생성

멀티파트 양식 요청을 전송하고 반환된 id를 저장합니다.
2

작업 폴링

다음을 호출합니다 Wan 동영상 검색 status가 completed, failed 또는 error 중 하나가 될 때까지.
3

결과 다운로드

작업이 completed 상태이면 다음을 호출합니다 Wan 동영상 콘텐츠 검색 MP4 파일을 다운로드합니다.

인증

Authorization
string
header
필수

Bearer authentication. Use your CometAPI API key.

본문

multipart/form-data
model
string
필수

Wan model ID: wan2.6, wan2.7, wan3.0, or wan3.0-prime. Wan 3.0 and Wan 3.0 Prime use the same public request fields, task flow, and media limits; use the exact model ID wan3.0-prime when targeting Prime. Use wan2.6 for text or reference-video input. Use wan2.7 for text, image/video references, or frame inputs. Wan 3.0 and Wan 3.0 Prime also support reference audio.

예시:

"wan3.0-prime"

prompt
string
필수

Text prompt that describes the video to generate. Describe the appearance and motion to preserve from references, or the transition between first_frame and last_frame. For wan2.6 video references, use @Video1, @Video2, and @Video3 in input order.

예시:

"A small robot walks through a bright greenhouse with smooth camera movement."

seconds
integer

Requested output duration in whole seconds. Send an explicit integer. For wan2.6 reference-to-video, use 5 or 10; text-to-video also accepts 15. For wan2.7 reference-to-video, use 2 through 10; text and frame inputs accept 2 through 15. For wan3.0 and wan3.0-prime, use 2 through 30. Default is 5.

필수 범위: 2 <= x <= 30
예시:

5

size
string

Supported WxH size values. For wan3.0 and wan3.0-prime, 480p: 832x480, 480x832, 624x624, 704x528, 528x704; 720p: 1280x720, 720x1280, 960x960, 1088x832, 832x1088; 1080p: 1920x1080, 1080x1920, 1440x1440, 1632x1248, 1248x1632. For wan2.6: 1280x720, 720x1280, 1088x832, 832x1088, 1920x1080, 1080x1920, 1440x1440, 1632x1248, 1248x1632. For wan2.7: 1280x720, 720x1280, 1920x1080, 1080x1920, 1440x1440. Default is 1920x1080. For Wan 2.7 frame inputs, the opening image determines the aspect ratio; size selects the output resolution tier.

예시:

"1920x1080"

input_reference

PNG or JPEG reference images for wan2.7, wan3.0, and wan3.0-prime. Repeat input_reference with one publicly accessible HTTPS image URL or uploaded image file per field. Use all URLs or all files within this field. Do not combine URLs into a comma-separated value. A single URL or file uses the image-to-video workflow. Each image can be up to 20 MB. For wan3.0 and wan3.0-prime, send at most 10 reference images, whether you use URLs or uploaded files. Image and video references can share a request; reference audio requires wan3.0 or wan3.0-prime. Submit frame inputs separately. Omit for text-to-video and wan2.6 reference-to-video. Submit images in the order you want to reference them in the prompt.

Pattern: ^https://
reference_videos
(string<uri> | file)[]

Reference videos for wan2.6, wan2.7, wan3.0, and wan3.0-prime. Repeat reference_videos with publicly accessible HTTPS URLs or uploaded MP4 files with H.264 video. Use one input type within this field: all URLs or all files. For wan2.6, send 1 to 3 clips, each 2 to 30 seconds and up to 30 MB, with at least 16 fps; omit image, audio, and frame fields. For wan2.7, combine video references with image references. For wan3.0 and wan3.0-prime, send at most 5 clips totaling at most 15 seconds, with at least 16 fps. Video uploads are limited to 5 files, each at most 50 MiB (50 x 1024 x 1024 bytes); the lower wan2.6 limits still apply. Submit frame inputs separately.

Minimum array length: 1
Pattern: ^https://
reference_audios
(string<uri> | file)[]

Reference audio for wan3.0 and wan3.0-prime, combined with image or video references. Repeat reference_audios with publicly accessible HTTPS MP3 URLs or uploaded MP3 files. Use one input type within this field: all URLs or all files. Send at most 5 audio references totaling at most 15 seconds, counted separately from reference video duration. Audio uploads are limited to 5 files, each at most 15 MiB (15 x 1024 x 1024 bytes). Submit frame inputs separately. Omit for wan2.6 and wan2.7.

Minimum array length: 1
Pattern: ^https://
first_frame

Opening frame for wan2.7, wan3.0, and wan3.0-prime, as one publicly accessible HTTPS PNG or JPEG URL or one uploaded PNG or JPEG file. Use first_frame alone or add last_frame to guide the ending. Submit frame inputs in a separate request from input_reference, reference_videos, and reference_audios. Omit for wan2.6. For Wan 2.7 frame inputs, the opening image determines the aspect ratio; size selects the output resolution tier.

Pattern: ^https://
last_frame

Ending frame for wan2.7, wan3.0, and wan3.0-prime, as one publicly accessible HTTPS PNG or JPEG URL or one uploaded PNG or JPEG file. Use with first_frame to guide the ending. Submit frame inputs in a separate request from input_reference, reference_videos, and reference_audios. Omit for wan2.6. For Wan 2.7 frame inputs, the opening image determines the aspect ratio; size selects the output resolution tier.

Pattern: ^https://

응답

Task created. Store the returned id and poll GET /v1/videos/{task_id}.

id
string
필수

Task ID. Use this value with retrieve and content endpoints.

예시:

"task_example"

object
string
필수

Object type. Video tasks return video.

예시:

"video"

model
string
필수

Model ID used for the task.

예시:

"wan3.0"

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

마지막 수정일 2026년 10월 10일