Wan 비디오 생성 API
POST https://api.01ai.cloud/wan/videos는 기존 Wan 2.6 모델과 wan3.0-video를 동시에 지원합니다. Wan 3는 media에 따라 텍스트, 첫/마지막 프레임 또는 참조 소재 모드를 자동으로 식별합니다.
¶ Wan 3 텍스트-비디오 생성
curl -X POST 'https://api.01ai.cloud/wan/videos' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"model": "wan3.0-video",
"prompt": "A paper boat drifting through a neon city at night",
"duration": 5,
"resolution": "720P",
"ratio": "16:9",
"audio": true,
"async": true
}'
Wan 3는 2–30초 정수 또는 -1 지능형 길이를 지원하며, 해상도는 480P, 720P, 1080P입니다.
¶ 멀티미디어 참조
{
"model": "wan3.0-video",
"prompt": "Create a cinematic product reveal",
"media": [
{"type":"first_frame","url":"https://cdn.acedata.cloud/assets/examples/qwen-image/40d5c76b-2f84-4b04-9ea0-b706417ae622-bac6a9e9de22.png"},
{"type":"last_frame","url":"https://cdn.acedata.cloud/assets/examples/qwen-image/7a5a490c-1d60-4498-a362-a9334148f460-a2a2c1afbf39.png"}
],
"duration": 8,
"resolution": "1080P",
"ratio": "16:9",
"async": true
}
media.type는 다음을 지원합니다:
first_frame/last_framereference_imagereference_videoreference_audiofile/link
첫/마지막 프레임 모드와 참조 소재 모드는 혼용할 수 없습니다. 참조 비디오는 실제 입력 비디오 초 수와 성공적으로 출력된 비디오 초 수를 합산하여 최종 정산됩니다. 텍스트, 이미지 및 오디오 입력은 비디오 초 수를 증가시키지 않습니다.
¶ 공식 표준 가격
| 해상도 | 가격 |
|---|---|
| 480P | $0.05/초 |
| 720P | $0.10/초 |
| 1080P | $0.20/초 |
¶ Wan 2.6 호환
기존 wan2.6-t2v, wan2.6-i2v, wan2.6-r2v 및 flash 변형은 계속해서 action, image_url, reference_video_urls 등의 매개변수를 사용하며, 호출 경로는 변경되지 않습니다.
¶ 비동기 및 결과
async: true를 설정하면 즉시 task_id를 획득하며, /wan/tasks를 통해 최종 상태를 가져옵니다. 성공한 비디오는 零壹AI CDN으로 전송되어 저장되며, 응답에서 실제 usage와 cost가 반환됩니다.

