promptstring필수필수이고, 여기서는 캐스팅도 맡습니다. 레퍼런스는 보낸 순서대로 인용되니 어느 이미지가 어느 캐릭터인지, 각 클립이 무엇을 주는지, 오디오가 무엇을 위한 건지 적어 주세요. 브리프를 저희가 검토하지는 않습니다. Seedance 자체 계층이 그 표현을 거절하는 경우에는, image-to-video의 첫 프레임이 그래도 도착하는 경로입니다.
- 기본값
- 지정되지 않음
bytedance/seedance-2.0/reference-to-videoByteDance의 Seedance 2.0 reference-to-video는 이미지 9장·영상 3개·오디오 3개까지의 내 소재로 첫 프레임 없이 샷 하나를 만듭니다. 480p·720p·1080p·4K의 4~15초에 네이티브 오디오가 담깁니다.
예시는 선택한 엔드포인트의 공개 파라미터 정의를 사용합니다. 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": "bytedance/seedance-2.0/reference-to-video",
"input": {
"aspect_ratio": "adaptive",
"bitrate_mode": "standard",
"duration_seconds": 5,
"generate_audio": true,
"prompt": "A slow aerial shot drifting over a misty pine forest at sunrise",
"resolution": "720p",
"reference_image_urls": [
"https://example.com/reference.png"
]
}
}'
# 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에서 확인하세요.
promptstring필수필수이고, 여기서는 캐스팅도 맡습니다. 레퍼런스는 보낸 순서대로 인용되니 어느 이미지가 어느 캐릭터인지, 각 클립이 무엇을 주는지, 오디오가 무엇을 위한 건지 적어 주세요. 브리프를 저희가 검토하지는 않습니다. Seedance 자체 계층이 그 표현을 거절하는 경우에는, image-to-video의 첫 프레임이 그래도 도착하는 경로입니다.
watermarkboolean선택모델 자체의 ‘AI generated’ 표시 워터마크를 영상에 넣습니다. 기본값은 꺼짐입니다. 게시하는 곳에서 AI로 만든 영상에 표시를 요구할 때 켜세요. 가격에는 영향이 없습니다.
bitrate_modestring선택전달되는 파일의 비트레이트입니다. `standard`(기본값) 또는 `high`를 고릅니다. `high`는 같은 해상도에서 미세한 질감과 빠른 움직임을 더 선명하게 지키고 파일이 훨씬 커집니다. 해상도, 프레임 레이트, 길이는 그대로입니다. 가격에는 영향이 없습니다.
"standard""high"return_last_frameboolean선택영상과 함께 클립의 마지막 프레임을 별도 이미지로 돌려줍니다. 다음 첫 프레임으로 image-to-video에 넘기면 정지 화면을 직접 뽑지 않고도 샷을 이어 붙일 수 있습니다. 기본값은 꺼짐이며 가격에는 영향이 없습니다.
seedinteger선택정수 seed입니다. 빼면 실행마다 알아서 뽑습니다. 나머지를 전부 고정한 채 seed를 고정하면 프롬프트 수정이 실제로 무엇을 바꿨는지 판단할 수 있습니다. 프레임까지 똑같이 반복된다는 약속이 아니라 비교 도구입니다.
generate_audioboolean선택기본으로 켜져 있습니다. 화면에 싱크된 자체 사운드트랙을 만듭니다. `reference_audio_urls`를 줬더라도 이걸 끄면 사운드트랙은 만들어지지 않습니다. 레퍼런스 오디오는 호흡과 연기를 잡아 줄 뿐 출력 트랙이 아니기 때문입니다. 편집에서 음악을 붙일 거라면 꺼 두세요.
duration_secondsinteger선택요금에 영향4초에서 15초까지이고 기본은 5입니다. -1을 보내면 길이를 모델이 정합니다. 견적은 최대치인 15초로 잡고 정산은 실제로 나온 길이로 합니다. 15초가 이 세대의 상한이니, 더 긴 한 컷이 필요하면 2.5 엔드포인트로 옮기세요. 이 값과 레퍼런스 클립의 길이는 과금 대상에 각각 따로 더해지니, 둘 다 최대로 밀면 요청 하나가 비싸지는 지점입니다.
-1456789101112131415resolutionstring선택요금에 영향480p, 720p, 1080p, 4k 중에서 고르고 기본은 720p이며 과금 대상에 직접 반영됩니다. 출력 구간만 정할 뿐 저해상도 레퍼런스를 선명하게 만들지는 않습니다. 낮은 구간에서 레퍼런스들이 잘 합쳐지는지 시험하고 마지막 컷에서 올리세요. 여기엔 업스케일이나 보정 구간이 없습니다.
"480p""720p""1080p""4k"aspect_ratiostring선택기본은 `adaptive`이고, 모델이 참조한 모든 피사체를 담을 구도를 찾습니다. 레퍼런스 소재의 형태가 서로 다를 때 특히 중요합니다. 고정 비율은 세로 피드용 `9:16`처럼 납품 요구가 확실할 때만 지정하고, 참조한 인물이나 제품이 잘리지 않았는지 확인하세요. 과금에는 영향이 없습니다.
"21:9""16:9""4:3""1:1""3:4""9:16""adaptive"reference_audio_urlsarray<string>선택레퍼런스 오디오 파일 최대 3개이고, 각각 2초에서 15초이며 합쳐 15초를 넘지 않습니다. 말투나 템포, 음악 구절처럼 소리의 기준점을 줘서 움직임과 컷 지점이 거기에 맞춰지게 합니다. `generate_audio`와는 다른 것이라, 이건 입력이고 완성된 클립이 사운드트랙을 갖는지는 여전히 `generate_audio`가 정합니다.
reference_video_urlsarray<string>조건부 필수요금에 영향레퍼런스 클립 최대 3개이고, 각각 2초에서 15초이며 합쳐 15초를 넘지 않습니다. 움직임과 호흡, 카메라 언어를 실어 줍니다. 레퍼런스 클립의 길이가 과금 대상에 포함되는데, 구간 전환이 아니라 `duration_seconds`와 같은 종류의 선형 배수로 들어갑니다. 그러니 실제로 인용하고 싶은 초만 남기고 잘라 주세요.
reference_image_urlsarray<string>조건부 필수레퍼런스 이미지 최대 9장이고 캐릭터나 스타일, 세트를 붙잡는 데 씁니다. 거의 똑같은 프레임을 잔뜩 넣는 것보다 같은 캐릭터의 두세 각도가 대개 더 잘 통합니다. 이 엔드포인트에는 첫·마지막 프레임 파라미터가 없습니다. 레퍼런스 모드와 프레임 모드는 서로 배타적이라, 첫 프레임이 정확해야 한다면 image-to-video로 바꾸세요. 실제로 알아볼 수 있는 사람의 얼굴이 담긴 레퍼런스 사진이나 클립은 Seedance 자체의 입력 검사에서 거절될 수 있습니다. 각 변은 300~6000픽셀이어야 합니다. 이보다 작은 이미지는 입력 검사에서 걸러지며, 이 경우 요금은 청구되지 않습니다.
{
"additionalProperties": false,
"anyOf": [
{
"required": [
"reference_image_urls"
]
},
{
"required": [
"reference_video_urls"
]
}
],
"properties": {
"aspect_ratio": {
"default": "adaptive",
"description": "Aspect ratio of the generated video.",
"enum": [
"21:9",
"16:9",
"4:3",
"1:1",
"3:4",
"9:16",
"adaptive"
],
"type": "string",
"x-ui": {
"affects_price": false,
"order": 70,
"widget": "select"
}
},
"bitrate_mode": {
"default": "standard",
"description": "Encoding bitrate of the delivered file: standard, or high for crisper detail and a larger file.",
"enum": [
"standard",
"high"
],
"type": "string",
"x-ui": {
"advanced": true,
"affects_price": false,
"order": 24,
"widget": "radio"
}
},
"duration_seconds": {
"default": 5,
"description": "Clip length in seconds. This is the billed quantity. Pass -1 for smart duration: the model picks the length itself instead of a fixed number.",
"enum": [
-1,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15
],
"type": "integer",
"x-ui": {
"advanced": false,
"affects_price": true,
"enum_labels": {
"-1": "Smart"
},
"order": 50,
"unit": "s",
"widget": "slider"
}
},
"generate_audio": {
"default": true,
"description": "Generate a native soundtrack synchronised to the picture.",
"type": "boolean",
"x-ui": {
"advanced": false,
"affects_price": true,
"order": 40,
"widget": "switch"
}
},
"prompt": {
"description": "What to generate: subject, action, camera movement and mood.",
"type": "string",
"x-ui": {
"affects_price": false,
"order": 110,
"primary": true,
"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 URLs (total length 15 s or less, up to 3). The generated soundtrack follows them.",
"items": {
"contentMediaType": [
"audio/mpeg",
"audio/wav"
],
"type": "string"
},
"maxItems": 3,
"type": "array",
"x-ui": {
"affects_price": false,
"max_total_duration_seconds": 15,
"order": 80,
"widget": "multi-upload"
}
},
"reference_image_urls": {
"description": "Reference image URLs (up to 9). Characters, style and scene composition are carried over from them.",
"items": {
"contentMediaType": [
"image/jpeg",
"image/png",
"image/webp",
"image/gif"
],
"type": "string"
},
"maxItems": 9,
"type": "array",
"x-ui": {
"affects_price": false,
"order": 100,
"widget": "multi-upload"
}
},
"reference_video_urls": {
"description": "Reference video URLs (total length 15 s or less, up to 3). Motion and pacing are carried over from them. Reference footage is billed on the same linear basis as clip length, so longer references cost more.",
"items": {
"contentMediaType": [
"video/mp4",
"video/webm",
"video/quicktime"
],
"type": "string"
},
"maxItems": 3,
"type": "array",
"x-ui": {
"affects_price": true,
"max_total_duration_seconds": 15,
"order": 90,
"widget": "multi-upload"
}
},
"resolution": {
"default": "720p",
"description": "Output resolution. Super-resolution tiers are not offered.",
"enum": [
"480p",
"720p",
"1080p",
"4k"
],
"type": "string",
"x-ui": {
"advanced": false,
"affects_price": true,
"order": 60,
"widget": "radio"
}
},
"return_last_frame": {
"default": false,
"description": "Also return the clip’s final frame as a separate image.",
"type": "boolean",
"x-ui": {
"affects_price": false,
"order": 26,
"widget": "switch"
}
},
"seed": {
"description": "Random seed. Omit to let the model pick one.",
"maximum": 2147483647,
"minimum": 0,
"type": "integer",
"x-ui": {
"affects_price": false,
"order": 30,
"widget": "number"
}
},
"watermark": {
"default": false,
"description": "Add the model’s visible \"AI generated\" watermark to the video.",
"type": "boolean",
"x-ui": {
"advanced": true,
"affects_price": false,
"order": 22,
"widget": "switch"
}
}
},
"required": [
"prompt"
],
"type": "object",
"x-pricing": {
"billingMode": "duration_capped",
"presenceFields": {
"with_video": "reference_video_urls"
},
"variantFields": [
"resolution",
"generate_audio",
"with_video"
]
}
}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": "bytedance/seedance-2.0/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)가 이 모델을 이름으로 호출합니다. 셸에서 명령 한 줄로 실행할 수도 있습니다.
bytedance/seedance-2.0/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 bytedance/seedance-2.0/reference-to-video \
--input-json '{"aspect_ratio":"adaptive","bitrate_mode":"standard","duration_seconds":5,"generate_audio":true,"prompt":"A slow aerial shot drifting over a misty pine forest at sunrise","resolution":"720p","reference_image_urls":["https://example.com/reference.png"]}' \
--wait입력값은 위 예시와 마찬가지로 이 엔드포인트의 스키마에서 생성했습니다. --wait는 작업이 끝날 때까지 폴링해 결과를 출력하고, CI에서는 --yes로 확인 절차를 건너뜁니다. 먼저 SPICY_API_KEY를 설정하세요. API와 CLI, MCP 서버가 같은 키를 씁니다.
npx @spicyapi/cli tasks create --model bytedance/seedance-2.0/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 노드를 설치한 뒤 캔버스에서 Seedance 2.0 · 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/seedance-2-0/api?model=bytedance%2Fseedance-2.0%2Freference-to-video" width="100%" height="560" loading="lazy" title="요청 예시" style="border:1px solid rgba(0,0,0,.12)"></iframe>