seedinteger선택0에서 2147483647까지입니다. 해상도나 길이를 조절하는 동안 고정해 두세요. 안 그러면 다시 돌릴 때마다 두 가지가 한꺼번에 바뀝니다.
- 기본값
- 지정되지 않음
- 제약 조건
- minimum:0maximum:2147483647
alibaba/wan-3.0-pro/reference-to-videoWan 3.0 Pro reference-to-video는 이미지·영상·오디오 레퍼런스에 선택적 문서나 웹 링크를 더해 얼굴·의상·세트·움직임·목소리를 고정합니다. 1080p·2K·4K의 2~30초로 렌더링합니다.
예시는 선택한 엔드포인트의 공개 파라미터 정의를 사용합니다. API 키와 예시 미디어를 바꾼 뒤 서버에서 요청하세요.
SDK 및 연동https://api.spicyapi.ai/api/v1/jobs/createTaskAPI 키는 서버 환경 변수 SPICY_API_KEY에 보관하세요. Bearer 인증을 사용하고 JSON 요청에는 Content-Type: application/json을 지정하세요.
Authorization: Bearer $SPICY_API_KEY# Generate the idempotency key once; reuse it when retrying after a lost response.
export SPICY_IDEMPOTENCY_KEY="${SPICY_IDEMPOTENCY_KEY:-$(uuidgen)}"
curl -X POST https://api.spicyapi.ai/api/v1/jobs/createTask \
-H "Authorization: Bearer $SPICY_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $SPICY_IDEMPOTENCY_KEY" \
-d '{
"model": "alibaba/wan-3.0-pro/reference-to-video",
"input": {
"aspect_ratio": "adaptive",
"duration_seconds": 5,
"reference_image_urls": [
"https://example.com/reference.png"
],
"resolution": "1080p"
}
}'
# Copy data.taskId from the response into TASK_ID, then poll the status.
TASK_ID="TASK_ID_FROM_RESPONSE"
curl "https://api.spicyapi.ai/api/v1/jobs/recordInfo?taskId=$TASK_ID" \
-H "Authorization: Bearer $SPICY_API_KEY"이 모델의 입력 스키마에서 뽑아낸 예시입니다. API도 모든 요청을 같은 스키마로 검증합니다.
이 필드들은 요청 본문의 input 객체 안에 넣습니다. 이름과 타입은 API와 동일합니다. 기본값이 적혀 있지 않은 필드는 임의로 가정하지 마세요.
일부 필드는 다른 입력값에 따라 필수가 됩니다. 조건부 필수 항목의 정확한 규칙은 아래 전체 JSON Schema에서 확인하세요.
seedinteger선택0에서 2147483647까지입니다. 해상도나 길이를 조절하는 동안 고정해 두세요. 안 그러면 다시 돌릴 때마다 두 가지가 한꺼번에 바뀝니다.
enable_prompt_expansionboolean선택이 패밀리에서는 기본으로 켜져 있습니다. 얄팍한 브리프는 채워 주고 자세한 브리프는 다시 써 버리니, 프롬프트가 정밀한 컷 묘사가 되면 꺼 두세요. 참조 파일이나 웹 링크를 쓰려면 켜져 있어야 합니다. reference_file_url이나 reference_link_url을 첨부할 때는 문서나 페이지를 이 단계에서 읽으므로 지정하지 않거나 true로 두십시오. 파일이나 링크와 함께 명시적으로 false를 보낸 요청은 거부됩니다.
generate_audioboolean선택기본으로 켜져 있습니다. 소리가 영상과 함께 생성돼 같은 파일 안에 도착합니다. 작곡가가 따로 음악을 붙일 거면 false로 두세요.
duration_secondsinteger선택요금에 영향2에서 30까지 정수 초라면 어떤 값이든 되고 기본은 5입니다. -1은 스마트 길이로, 최대치를 먼저 잡아 두고 실제로 나온 길이로 정산합니다. 레퍼런스 영상이 있으면 그 총길이와 출력을 합쳐 30초 안에 들어와야 하고 둘 다 과금됩니다. 긴 4K 렌더링에 돈을 쓰기 전에 1080p 5초에서 컷을 찾으세요.
-123456789101112131415161718192021222324252627282930aspect_ratiostring선택16:9, 4:3, 1:1, 3:4, 9:16 또는 auto입니다. 기본은 auto라 모델이 고르게 두고, 납품 형식이 정해져 있으면 비율을 지정하세요.
"16:9""4:3""1:1""3:4""9:16""adaptive"resolutionstring선택요금에 영향1080p, 2k, 4k이고 기본은 1080p입니다. Wan 3.0의 네이티브 출력은 최대 1080p이므로 그 위 등급인 2k와 4k는 해당 크기로 네이티브 렌더링한 것이 아니라 그 렌더링을 키워서 전달합니다. 늘어난 픽셀은 확대에서 나오며 아래에 있는 렌더링보다 좋아지지 않습니다. 480p와 720p 등급은 없으며, 그 크기가 필요하면 Wan 3.0을 쓰세요.
"1080p""2k""4k"reference_link_urlstring조건부 필수모델이 참고용으로 읽는 공개 웹 페이지 한 개입니다. 기사, 제품 페이지, 캐릭터 소개 등을 넣을 수 있습니다. 로그인 없이 열리는 페이지여야 합니다. 자동 읽기를 막는 사이트나 글이 너무 적은 페이지는 쓸 수 없으며, 이 경우 작업은 URL을 읽을 수 없다는 메시지와 함께 실패하고 실패한 작업에는 요금이 붙지 않습니다. reference_file_url과는 함께 쓸 수 없고, enable_prompt_expansion을 지정하지 않았다면 링크를 첨부해도 프롬프트 확장이 켜집니다. 링크에는 요금이 붙지 않습니다.
reference_file_urlstring조건부 필수샷을 연출하기 전에 모델이 읽는 문서 한 개입니다. 캐릭터 시트, 대본, 샷 리스트, 제품 브리프 등을 넣을 수 있습니다. PDF, DOCX, DOC, TXT, MD, PPTX, PPT, XLSX, XLS, KEY, PAGES, NUMBERS를 지원하며 100MB, 50페이지까지입니다. 단독으로도, 참조 이미지·동영상·오디오와 함께도 쓸 수 있지만 reference_link_url과는 함께 쓸 수 없습니다. 문서는 프롬프트 확장 단계에서 읽히므로, enable_prompt_expansion을 지정하지 않았다면 파일을 첨부할 때 그 요청에서는 프롬프트 확장이 켜집니다. 파일에는 요금이 붙지 않습니다.
reference_audio_urlsarray<string>조건부 필수최대 5개, 각 1~15초, 합계 15초까지입니다. 컷이 맞춰야 할 목소리나 대사 톤, 룸톤에 쓰세요. 레퍼런스 오디오는 과금되지 않습니다. WAV 또는 MP3, 클립당 15MB까지입니다. 영상 제한과 마찬가지로 작업 접수 시점이 아니라 생성 중에 확인됩니다.
reference_video_urlsarray<string>조건부 필수요금에 영향최대 5개, 각 1~15초, 합계 15초까지입니다. 얼굴보다는 움직임과 카메라 스타일에 쓰세요. 길이는 출력과 함께 과금되고, 레퍼런스 영상과 출력을 합쳐 30초 안에 들어와야 합니다. MP4 또는 MOV, 16fps 이상, 한 변 240~4096px, 가로세로 비율 8:1 이내, 클립당 100MB까지입니다. 이 제한은 작업 접수 시점이 아니라 생성 중에 확인되니, 보내기 전에 클립 길이를 점검하세요.
reference_image_urlsarray<string>조건부 필수인물, 의상, 세트 플레이트로 1~10장을 넣습니다. 각 장이 인물인지 의상인지 세트인지 프롬프트에서 하나씩 짚어 주지 않으면 평균이 되어 버립니다. 레퍼런스 이미지는 과금되지 않습니다. JPEG, 투명도 없는 PNG, BMP, WEBP를 받으며 한 변 240~8000px, 가로세로 비율 8:1 이내, 장당 20MB까지입니다.
promptstring선택선택이지만, 어느 이미지가 캐릭터인지, 어느 영상이 움직임을 맡는지, 어느 오디오가 목소리인지, 그리고 컷에서 실제로 무슨 일이 일어나는지 적는 자리가 여기입니다.
{
"additionalProperties": false,
"anyOf": [
{
"required": [
"reference_image_urls"
]
},
{
"required": [
"reference_video_urls"
]
},
{
"required": [
"reference_audio_urls"
]
},
{
"required": [
"reference_file_url"
]
},
{
"required": [
"reference_link_url"
]
}
],
"properties": {
"aspect_ratio": {
"default": "adaptive",
"description": "Output aspect ratio; adaptive follows the input media and the intent.",
"enum": [
"16:9",
"4:3",
"1:1",
"3:4",
"9:16",
"adaptive"
],
"type": "string",
"x-ui": {
"order": 60,
"widget": "select"
}
},
"duration_seconds": {
"default": 5,
"description": "Output duration in seconds. Pass -1 for smart duration: the model picks the length from the prompt and any input media instead of a fixed number. With reference videos, their total length plus the output length must not exceed 30 seconds, and the reference video seconds are billed together with the output seconds.",
"enum": [
-1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30
],
"type": "integer",
"x-ui": {
"affects_price": true,
"enum_labels": {
"-1": "Smart"
},
"order": 50,
"widget": "slider"
}
},
"enable_prompt_expansion": {
"default": true,
"description": "Expand the prompt before generation.",
"type": "boolean",
"x-ui": {
"order": 30,
"widget": "switch"
}
},
"generate_audio": {
"default": true,
"description": "Include an audio track in the output.",
"type": "boolean",
"x-ui": {
"order": 40,
"widget": "switch"
}
},
"prompt": {
"description": "Describe the subject, motion and camera.",
"maxLength": 20000,
"minLength": 1,
"type": "string",
"x-ui": {
"order": 100,
"reference_tokens": {
"reference_audio_urls": "Audio {index}",
"reference_image_urls": "Image {index}",
"reference_video_urls": "Video {index}"
},
"widget": "textarea"
}
},
"reference_audio_urls": {
"description": "Reference audio, up to 5 clips of 1 to 15 seconds each and 15 seconds in total.",
"items": {
"contentMediaType": [
"audio/mpeg",
"audio/wav"
],
"format": "uri",
"type": "string"
},
"maxItems": 5,
"minItems": 1,
"type": "array",
"x-ui": {
"max_total_duration_seconds": 15,
"order": 86,
"widget": "multi-upload"
}
},
"reference_file_url": {
"contentMediaType": [
"application/pdf",
"application/msword",
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"application/vnd.ms-excel",
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"application/vnd.ms-powerpoint",
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
"application/vnd.apple.keynote",
"application/vnd.apple.pages",
"application/vnd.apple.numbers",
"text/plain",
"text/markdown"
],
"description": "One reference document (PDF, DOCX, TXT, MD and similar) that the model reads for characters, wardrobe, setting and action.",
"format": "uri",
"type": "string",
"x-ui": {
"order": 76,
"widget": "upload"
}
},
"reference_image_urls": {
"description": "Ordered reference images used to guide the scene.",
"items": {
"contentMediaType": [
"image/jpeg",
"image/png",
"image/webp",
"image/gif"
],
"format": "uri",
"type": "string"
},
"maxItems": 10,
"minItems": 1,
"type": "array",
"x-ui": {
"order": 90,
"primary": true,
"widget": "multi-upload"
}
},
"reference_link_url": {
"description": "One public web page the model reads for reference. It must open without a login.",
"format": "uri",
"type": "string",
"x-ui": {
"order": 74,
"placeholder": "https://",
"widget": "text"
}
},
"reference_video_urls": {
"description": "Reference videos, up to 5 clips of 1 to 15 seconds each and 15 seconds in total.",
"items": {
"contentMediaType": [
"video/mp4",
"video/webm",
"video/quicktime"
],
"format": "uri",
"type": "string"
},
"maxItems": 5,
"minItems": 1,
"type": "array",
"x-ui": {
"affects_price": true,
"max_total_duration_seconds": 15,
"order": 88,
"widget": "multi-upload"
}
},
"resolution": {
"default": "1080p",
"description": "Output resolution tier. A native Wan 3.0 render tops out at 1080p, so the 2k and 4k tiers are delivered by enlarging that render instead of rendering natively at those sizes.",
"enum": [
"1080p",
"2k",
"4k"
],
"type": "string",
"x-ui": {
"affects_price": true,
"order": 70,
"widget": "radio"
}
},
"seed": {
"description": "Random seed. Omit for a generated seed.",
"maximum": 2147483647,
"minimum": 0,
"type": "integer",
"x-ui": {
"order": 10,
"widget": "number"
}
}
},
"type": "object",
"x-pricing": {
"billingMode": "duration_capped",
"variantFields": [
"resolution"
]
}
}HTTP 202는 접수되었다는 뜻이며 생성 완료가 아닙니다. 반환된 taskId를 저장하고 같은 작업을 조회하세요. 결과를 기다리는 동안 작업을 다시 생성하지 마세요.
HTTP/1.1 202 Accepted
Location: /api/v1/jobs/recordInfo?taskId=job_01k3m8x9q2z4v7n5p6r8s0t1w3
{
"code": 200,
"msg": "success",
"request_id": "req_example_create",
"data": {
"taskId": "job_01k3m8x9q2z4v7n5p6r8s0t1w3",
"state": "queued",
"estimatedCost": "0.750000"
}
}접수 응답에 이번 예상 비용이 포함되므로 앱의 작업 기록과 청구 화면에 같은 금액을 표시할 수 있습니다.
curl --get "https://api.spicyapi.ai/api/v1/jobs/recordInfo" \
--data-urlencode "taskId=$TASK_ID" \
-H "Authorization: Bearer $SPICY_API_KEY"약 2초 간격으로 시작해서 점점 간격을 넓히세요. 종료 상태가 나오면 멈추고, 연결이 끊겼더라도 원래 taskId를 그대로 조회하세요. 다시 생성할 때는 처음에 쓴 Idempotency-Key와 본문을 그대로 써야 합니다.
import { verifyWebhook } from "@spicyapi/sdk";
// express.raw keeps the bytes we signed; express.json never matches.
app.post("/hooks/spicy", express.raw({ type: "application/json" }), (req, res) => {
const { payload } = verifyWebhook({
rawBody: req.body,
timestamp: req.header("X-Webhook-Timestamp"),
signature: req.header("X-Webhook-Signature"),
payloadVersion: Number(req.header("X-Webhook-Payload-Version")),
secret: process.env.SPICY_WEBHOOK_SECRET,
});
res.status(200).end();
void handleFinishedTask(payload);
});작업을 만들 때 callBackUrl을 넘기면 완료된 레코드가 POST로 전달됩니다 — 폴링 루프가 아예 필요 없습니다. 모든 전달에는 X-Webhook-Timestamp, X-Webhook-Signature, X-Webhook-Payload-Version이 함께 옵니다. 서명은 taskId.timestamp.sha256(body)에 대한 base64 HMAC-SHA256이므로 반드시 원본 바이트로 검증해야 합니다. JSON을 파싱했다가 다시 직렬화하면 바이트가 달라져 검증이 실패합니다. 실패한 전달은 재시도되므로 같은 taskId가 두 번 올 수 있습니다. 핸들러를 멱등하게 만드세요. 먼저 2xx로 답하고 처리는 그다음에 — 응답이 느리면 전달 실패로 간주됩니다.
state가 succeeded일 때만 output을 사용하세요. 실패 시 errorCode, errorMessage, request_id로 원인을 확인하세요. 예시 비용과 상태는 실제 청구 내역이 아닙니다.
{
"code": 200,
"msg": "success",
"request_id": "req_example_record",
"data": {
"taskId": "job_01k3m8x9q2z4v7n5p6r8s0t1w3",
"model": "alibaba/wan-3.0-pro/reference-to-video",
"state": "succeeded",
"output": {
"assets": [
{
"key": "tasks/2026/08/28/job_01k3m8x9q2z4v7n5p6r8s0t1w3/3f7a1c9e5b2d48f0a6c1e3d5b7f9a1c3.mp4",
"mime": "video/mp4",
"url": "https://example.r2.cloudflarestorage.com/results/job_01k3m8x9q2z4v7n5p6r8s0t1w3/result.mp4?X-Amz-Signature=SIGNATURE_FROM_RESPONSE",
"expiresAt": "2026-08-28T12:20:08.000Z"
}
]
},
"cost": "0.750000",
"settled": true,
"createdAt": "2026-08-28T12:00:00Z",
"completedAt": "2026-08-28T12:00:30Z"
}
}사용 가능한 파일은 assets[].url에서 바로 열거나 다운로드할 수 있으며 API Authorization 헤더가 필요하지 않습니다. 서명 URL은 expiresAt에 만료됩니다. 보관 기간 내에 작업을 다시 조회하면 URL이 갱신됩니다. 처리 중이거나 사용할 수 없는 파일에는 URL이 없습니다. 서명 URL은 비공개로 보관하세요.
앱, 터미널, AI 어시스턴트 또는 시각적 워크플로에서 SpicyAPI를 사용하세요. 원하는 설정 가이드를 선택하세요.
위 코드를 직접 쓸 필요는 없습니다. MCP 서버를 한 번만 연결해 두면 MCP를 지원하는 에이전트(Claude Code, Codex, Cursor, Windsurf, VS Code, Gemini CLI, Cline, LibreChat)가 이 모델을 이름으로 호출합니다. 셸에서 명령 한 줄로 실행할 수도 있습니다.
alibaba/wan-3.0-pro/reference-to-video로 해 질 녘 네온이 켜진 옥상을 5초, 천천히 다가가는 컷으로 만들어서 ./out/에 저장해 줘.
에이전트가 공개 카탈로그에서 모델을 찾고, 로컬 파일을 대신 업로드한 뒤, 정확한 견적과 최대 청구액을 보여 주고 확인을 기다립니다. 승인하기 전에는 요금이 발생하지 않습니다.
claude mcp add spicyapi -e SPICY_API_KEY=$SPICY_API_KEY \
-- npx --yes --package=@spicyapi/mcp spicyapi-mcp
npx skills add spicyapi-ai/spicy-skill첫 줄은 도구를, 둘째 줄은 Skill을 넘겨줍니다. Skill은 그 도구를 다루는 규칙입니다 — 청구 전에 견적을 받고, 로컬 파일은 바이트를 붙여 넣는 대신 업로드하고, 완성된 산출물 URL을 추측하지 않고 읽습니다. 다른 클라이언트도 각자의 설정 파일로 같은 서버를 사용합니다. 개발자 페이지를 참고하세요.
npx @spicyapi/cli tasks create --model alibaba/wan-3.0-pro/reference-to-video \
--input-json '{"aspect_ratio":"adaptive","duration_seconds":5,"reference_image_urls":["https://example.com/reference.png"],"resolution":"1080p"}' \
--wait입력값은 위 예시와 마찬가지로 이 엔드포인트의 스키마에서 생성했습니다. --wait는 작업이 끝날 때까지 폴링해 결과를 출력하고, CI에서는 --yes로 확인 절차를 건너뜁니다. 먼저 SPICY_API_KEY를 설정하세요. API와 CLI, MCP 서버가 같은 키를 씁니다.
npx @spicyapi/cli tasks create --model alibaba/wan-3.0-pro/reference-to-video \
--input-json '{…}' --retention 1h --wait
npx @spicyapi/cli tasks get $TASK_ID # read back the retention that applied--retention은 보관 기간을 줄이기만 합니다 — 30m, 1h, 7d, 또는 0이면 작업이 종료 상태에 도달하는 즉시 삭제됩니다. 실제로 적용되는 값은 요청과 계정 설정, 플랫폼 상한 중 가장 짧은 값이므로 요청한 숫자가 그대로 반영됐다고 가정하지 말고 작업 레코드에서 다시 읽으세요. 계정이 허용하는 것보다 긴 값을 넘기면 아무 일도 일어나지 않습니다.
ComfyUI Manager나 아래 명령으로 SpicyAPI 노드를 설치한 뒤 캔버스에서 Wan 3.0 Pro · Reference To Video를 검색하세요. 노드는 이 페이지와 같은 옵션을 제공하며, 실행하기 전에 가격을 보여 줍니다.
cd ComfyUI/custom_nodes
git clone https://github.com/spicyapi-ai/comfyui-spicyapi삽입된 패널은 이 페이지와 같은 스키마를 참조하므로 API 사양과 어긋나지 않습니다. 문서 검색 대상에 포함하려면 /api/embed/models/의 JSON을 받아 직접 렌더링하세요.
<iframe src="https://spicyapi.ai/embed/ko/models/wan-3-0-pro/api?model=alibaba%2Fwan-3.0-pro%2Freference-to-video" width="100%" height="560" loading="lazy" title="요청 예시" style="border:1px solid rgba(0,0,0,.12)"></iframe>