Wan 3.0 API 문서
코드에서 Wan 3.0 API를 호출하는 데 필요한 모든 내용입니다. 기본 URL은 https://cheapergen.com/api/v1입니다. 먼저 플레이그라운드에서 테스트해 보세요.
코딩 에이전트를 사용하시나요?
이 내용을 Claude Code, Cursor, Codex 또는 원하는 코딩 에이전트에 붙여넣으세요. 프로젝트에 API를 추가하고 API 키는 CHEAPERGEN_API_KEY에 보관하며, 비용을 사용하기 전에 무료 견적을 요청해 테스트합니다.
Add Wan 3.0 (CheaperGen endpoint alibaba/ wan-3.0/ text-to-video) to this project by following https:/ / cheapergen.com/ agents/ integrate.md인증
대시보드 → API 키에서 키를 만들고 bearer token으로 전송하세요. 키는 서버에 안전하게 보관하세요.
export CHEAPERGEN_API_KEY="cg_live_…"
# every request
Authorization: Bearer $CHEAPERGEN_API_KEYWan 3.0 텍스트 → 동영상 API
/api/v1/run/alibaba/wan-3.0/text-to-video비동기 작업을 제출하고 생성 ID가 포함된 HTTP 202 응답을 반환합니다. GET /api/v1/generations/{id}의 상태를 조회하거나 webhook_url를 전달하세요. 자세한 내용은 작업 수명 주기 문서를 참조하세요.
입력 매개변수
| 이름 | 유형 | 설명 | 가격에 영향 |
|---|---|---|---|
prompt필수 | string | 피사체, 동작, 카메라 움직임, 조명, 스타일을 설명하세요. | 없음 |
aspect_ratio | string (enum) | 출력 프레임 비율입니다. 허용값: 16:9 · 9:16 · 1:1 · 4:3 · 3:4 기본값: 16:9 | 예 |
resolution | string (enum) | 출력 해상도입니다. 해상도가 높을수록 초당 요금이 비쌉니다. 허용값: 480p · 720p · 1080p 기본값: 720p | 예 |
duration | integer | 생성할 클립 길이(초) (2–30초). 초당 요금이 부과됩니다. 범위: 2–30s 기본값: 5 | 예 |
generate_audio | boolean | 동기화된 사운드, 주변음, 대사를 추가합니다. 추가 비용은 없습니다. 기본값: true | 없음 |
negative_prompt | string | 결과물에서 제외할 요소를 입력하세요. | 없음 |
seed | integer | 같은 시드와 설정을 사용하면 결과를 재현할 수 있습니다. 비워 두면 무작위로 설정됩니다. | 없음 |
webhook_url | 문자열(URL) | 선택 사항. 완료된 생성을 웹훅 비밀키로 서명해 이곳으로 POST합니다. 웹훅 | 없음 |
요청
const API = "https://cheapergen.com/api/v1";
const headers = {
Authorization: `Bearer ${process.env.CHEAPERGEN_API_KEY}`,
"Content-Type": "application/json",
};
// 1. Submit the job
let job = await fetch(`${API}/run/alibaba/wan-3.0/text-to-video`, {
method: "POST",
headers,
body: JSON.stringify({
"prompt": "방콕 야시장에서 길거리 음식 상인이 불꽃이 솟는 웍으로 면을 뒤집는 장면, 보케, 핸드헬드 촬영",
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": 5
}),
}).then((r) => r.json());
// 2. Poll until it finishes (or pass webhook_url and skip polling)
while (job.status === "queued" || job.status === "running") {
await new Promise((r) => setTimeout(r, 3000));
job = await fetch(`${API}/generations/${job.id}`, { headers }).then((r) => r.json());
}
console.log(job.status === "succeeded" ? job.output.video.url : job.error);응답
{
"id": "gen_8c2QmX1nq0k4",
"object": "generation",
"model": "alibaba/wan-3.0",
"endpoint": "alibaba/wan-3.0/text-to-video",
"mode": "text-to-video",
"status": "queued",
"input": {
"prompt": "방콕 야시장에서 길거리 음식 상인이 불꽃이 솟는 웍으로 면을 뒤집는 장면, 보케, 핸드헬드 촬영",
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": 5
},
"output": null,
"error": null,
"cost": {
"amount_usd": 0.2255,
"currency": "usd",
"estimated": true,
"official_usd": null,
"list_price_source": "official",
"list_price_label": "Official",
"saved_usd": null
},
"source": "api",
"started_at": null,
"completed_at": null,
"urls": {
"get": "https://cheapergen.com/api/v1/generations/gen_8c2QmX1nq0k4",
"cancel": "https://cheapergen.com/api/v1/generations/gen_8c2QmX1nq0k4/cancel"
},
"created_at": "2026-10-15T09:21:04Z"
}Wan 3.0 이미지 → 동영상 API
/api/v1/run/alibaba/wan-3.0/image-to-video비동기 작업을 제출하고 생성 ID가 포함된 HTTP 202 응답을 반환합니다. GET /api/v1/generations/{id}의 상태를 조회하거나 webhook_url를 전달하세요. 자세한 내용은 작업 수명 주기 문서를 참조하세요.
입력 매개변수
| 이름 | 유형 | 설명 | 가격에 영향 |
|---|---|---|---|
prompt필수 | string | 피사체, 동작, 카메라 움직임, 조명, 스타일을 설명하세요. | 없음 |
image_url필수 | string (URL) | 시작 프레임으로 사용할 이미지입니다. JPG/PNG/WebP, URL 또는 업로드를 지원합니다. | 없음 |
resolution | string (enum) | 출력 해상도입니다. 해상도가 높을수록 초당 요금이 비쌉니다. 허용값: 480p · 720p · 1080p 기본값: 720p | 예 |
duration | integer | 생성할 클립 길이(초) (2–30초). 초당 요금이 부과됩니다. 범위: 2–30s 기본값: 5 | 예 |
generate_audio | boolean | 동기화된 사운드, 주변음, 대사를 추가합니다. 추가 비용은 없습니다. 기본값: true | 없음 |
negative_prompt | string | 결과물에서 제외할 요소를 입력하세요. | 없음 |
seed | integer | 같은 시드와 설정을 사용하면 결과를 재현할 수 있습니다. 비워 두면 무작위로 설정됩니다. | 없음 |
webhook_url | 문자열(URL) | 선택 사항. 완료된 생성을 웹훅 비밀키로 서명해 이곳으로 POST합니다. 웹훅 | 없음 |
요청
const API = "https://cheapergen.com/api/v1";
const headers = {
Authorization: `Bearer ${process.env.CHEAPERGEN_API_KEY}`,
"Content-Type": "application/json",
};
// 1. Submit the job
let job = await fetch(`${API}/run/alibaba/wan-3.0/image-to-video`, {
method: "POST",
headers,
body: JSON.stringify({
"prompt": "부드러운 바람에 커튼이 흔들리고 카메라가 천천히 뒤로 빠지며 방 전체를 보여 줍니다.",
"image_url": "https://cdn.cheapergen.com/samples/portrait.jpg",
"resolution": "720p",
"duration": 5
}),
}).then((r) => r.json());
// 2. Poll until it finishes (or pass webhook_url and skip polling)
while (job.status === "queued" || job.status === "running") {
await new Promise((r) => setTimeout(r, 3000));
job = await fetch(`${API}/generations/${job.id}`, { headers }).then((r) => r.json());
}
console.log(job.status === "succeeded" ? job.output.video.url : job.error);응답
{
"id": "gen_8c2QmX1nq0k4",
"object": "generation",
"model": "alibaba/wan-3.0",
"endpoint": "alibaba/wan-3.0/image-to-video",
"mode": "image-to-video",
"status": "queued",
"input": {
"prompt": "부드러운 바람에 커튼이 흔들리고 카메라가 천천히 뒤로 빠지며 방 전체를 보여 줍니다.",
"image_url": "https://cdn.cheapergen.com/samples/portrait.jpg",
"resolution": "720p",
"duration": 5
},
"output": null,
"error": null,
"cost": {
"amount_usd": 0.2255,
"currency": "usd",
"estimated": true,
"official_usd": null,
"list_price_source": "official",
"list_price_label": "Official",
"saved_usd": null
},
"source": "api",
"started_at": null,
"completed_at": null,
"urls": {
"get": "https://cheapergen.com/api/v1/generations/gen_8c2QmX1nq0k4",
"cancel": "https://cheapergen.com/api/v1/generations/gen_8c2QmX1nq0k4/cancel"
},
"created_at": "2026-10-15T09:21:04Z"
}Wan 3.0 참조 → 동영상 API
/api/v1/run/alibaba/wan-3.0/reference-to-video비동기 작업을 제출하고 생성 ID가 포함된 HTTP 202 응답을 반환합니다. GET /api/v1/generations/{id}의 상태를 조회하거나 webhook_url를 전달하세요. 자세한 내용은 작업 수명 주기 문서를 참조하세요.
입력 매개변수
| 이름 | 유형 | 설명 | 가격에 영향 |
|---|---|---|---|
prompt필수 | string | 피사체, 동작, 카메라 움직임, 조명, 스타일을 설명하세요. | 없음 |
reference_image_urls | string[] (URLs) | 캐릭터, 제품, 스타일, 장면 참조용 이미지 최대 4장. 프롬프트에서 @Image1, @Image2…로 지정하세요. 최대 항목 수: 4 | 없음 |
reference_video_urls | string[] (video URLs) | 움직임, 카메라 이동, 효과를 위한 클립 최대 5개 MP4/MOV (1~15초씩, 총 15초, 각 100 MB 이하). @Video1, @Video2…로 지정하세요. 참조 동영상 초는 출력 초와 같은 요율로 청구되며, 참조와 출력의 합계는 30초 이하여야 합니다. 최대 항목 수: 5 | 예 |
reference_audio_urls | string[] (audio URLs) | 음성, 음악, 사운드용 클립 최대 5개 MP3/WAV (1~15초씩, 총 15초, 각 15 MB 이하). @Audio1, @Audio2…로 지정하세요. 최대 항목 수: 5 | 없음 |
aspect_ratio | string (enum) | 출력 프레임 비율입니다. 허용값: 16:9 · 9:16 · 1:1 · 4:3 · 3:4 기본값: 16:9 | 예 |
resolution | string (enum) | 출력 해상도입니다. 해상도가 높을수록 초당 요금이 비쌉니다. 허용값: 480p · 720p · 1080p 기본값: 720p | 예 |
duration | integer | 생성할 클립 길이(초) (2–30초). 초당 요금이 부과됩니다. 범위: 2–30s 기본값: 5 | 예 |
generate_audio | boolean | 동기화된 사운드, 주변음, 대사를 추가합니다. 추가 비용은 없습니다. 기본값: true | 없음 |
negative_prompt | string | 결과물에서 제외할 요소를 입력하세요. | 없음 |
seed | integer | 같은 시드와 설정을 사용하면 결과를 재현할 수 있습니다. 비워 두면 무작위로 설정됩니다. | 없음 |
webhook_url | 문자열(URL) | 선택 사항. 완료된 생성을 웹훅 비밀키로 서명해 이곳으로 POST합니다. 웹훅 | 없음 |
요청
const API = "https://cheapergen.com/api/v1";
const headers = {
Authorization: `Bearer ${process.env.CHEAPERGEN_API_KEY}`,
"Content-Type": "application/json",
};
// 1. Submit the job
let job = await fetch(`${API}/run/alibaba/wan-3.0/reference-to-video`, {
method: "POST",
headers,
body: JSON.stringify({
"prompt": "@Image1의 여성이 @Image2의 카페를 걸어 다니며 커피를 주문하고 @Video1처럼 움직입니다.",
"reference_image_urls": [
"https://cdn.cheapergen.com/samples/reference-1.jpg",
"https://cdn.cheapergen.com/samples/reference-2.jpg"
],
"reference_video_urls": [
"https://cdn.cheapergen.com/samples/reference-1.mp4"
],
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": 5
}),
}).then((r) => r.json());
// 2. Poll until it finishes (or pass webhook_url and skip polling)
while (job.status === "queued" || job.status === "running") {
await new Promise((r) => setTimeout(r, 3000));
job = await fetch(`${API}/generations/${job.id}`, { headers }).then((r) => r.json());
}
console.log(job.status === "succeeded" ? job.output.video.url : job.error);응답
{
"id": "gen_8c2QmX1nq0k4",
"object": "generation",
"model": "alibaba/wan-3.0",
"endpoint": "alibaba/wan-3.0/reference-to-video",
"mode": "reference-to-video",
"status": "queued",
"input": {
"prompt": "@Image1의 여성이 @Image2의 카페를 걸어 다니며 커피를 주문하고 @Video1처럼 움직입니다.",
"reference_image_urls": [
"https://cdn.cheapergen.com/samples/reference-1.jpg",
"https://cdn.cheapergen.com/samples/reference-2.jpg"
],
"reference_video_urls": [
"https://cdn.cheapergen.com/samples/reference-1.mp4"
],
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": 5
},
"output": null,
"error": null,
"cost": {
"amount_usd": 0.2255,
"currency": "usd",
"estimated": true,
"official_usd": null,
"list_price_source": "official",
"list_price_label": "Official",
"saved_usd": null
},
"source": "api",
"started_at": null,
"completed_at": null,
"urls": {
"get": "https://cheapergen.com/api/v1/generations/gen_8c2QmX1nq0k4",
"cancel": "https://cheapergen.com/api/v1/generations/gen_8c2QmX1nq0k4/cancel"
},
"created_at": "2026-10-15T09:21:04Z"
}결과 가져오기
생성은 비동기로 처리됩니다. status 값을 확인해 succeeded, failed, canceled 중 하나가 될 때까지 폴링하거나 제출 시 webhook_url를 전달하세요. 실패한 생성은 자동 환불됩니다.
curl https://cheapergen.com/api/v1/generations/gen_8c2QmX1nq0k4 \
-H "Authorization: Bearer $CHEAPERGEN_API_KEY"Wan 3.0 요금
결제 동영상 초당 사용한 만큼 결제하며 구독은 필요하지 않습니다 (월간 요금제은 선택 사항입니다). 생성 실패 시 자동으로 환불됩니다.
| 등급 | 공식 가격 | CheaperGen | 절감액 |
|---|---|---|---|
480p 초당 | $0.0379/s | −24% | |
720p 초당 | $0.0757/s | −24% | |
1080p 초당 | $0.1513/s | −24% |
- 공식 가격: wan3.0-video의 Alibaba Cloud Model Studio 국제(싱가포르) 공식 가격(초당 $0.05 / $0.10 / $0.20; 참조 동영상 초도 같은 요율로 청구). 가격 확인일 2026년 10월 18일.
- 참조 동영상 초에는 출력과 동일한 초당 요금이 부과됩니다.