video_urlstring필수이어 붙일 클립입니다. MP4, MOV, WebM이며 60초까지 가능합니다. 마지막 프레임이 새 구간의 시작 프레임이 되므로, 깨끗하고 선명한 프레임에서 잘라 주세요. 원본은 과금되지 않습니다.
- 기본값
- 지정되지 않음
- 제약 조건
- minLength:1format:"uri"contentMediaType:["video/mp4","video/webm","video/quicktime"]
bytedance/seedance-2.0-mini/video-extendSeedance 2.0 Mini로 클립을 이어 붙입니다. 영상의 마지막 프레임에서 4초에서 15초 길이의 새 구간이 시작되고(소리 포함), 원본과 이어진 부분이 합쳐진 파일 하나를 480p 또는 720p로 받습니다.
예시는 선택한 엔드포인트의 공개 파라미터 정의를 사용합니다. 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-mini/video-extend",
"input": {
"bitrate_mode": "standard",
"duration_seconds": 5,
"enable_web_search": false,
"generate_audio": true,
"resolution": "720p",
"video_url": "https://example.com/reference.mp4"
}
}'
# 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와 동일합니다. 기본값이 적혀 있지 않은 필드는 임의로 가정하지 마세요.
video_urlstring필수이어 붙일 클립입니다. MP4, MOV, WebM이며 60초까지 가능합니다. 마지막 프레임이 새 구간의 시작 프레임이 되므로, 깨끗하고 선명한 프레임에서 잘라 주세요. 원본은 과금되지 않습니다.
watermarkboolean선택새 구간에 모델 자체의 눈에 보이는 "AI generated" 워터마크를 넣습니다. 기본값은 꺼짐이며, 게시하는 곳에서 AI로 만든 영상에 표시를 요구할 때 켜세요. 가격에는 영향이 없습니다.
bitrate_modestring선택모델이 전달하는 새 구간의 인코딩 비트레이트로, `standard`(기본값) 또는 `high`입니다. high는 미세한 질감과 빠른 움직임을 더 선명하게 유지하는 대신 구간 파일이 훨씬 커집니다. 합쳐진 파일은 플랫폼이 다시 인코딩합니다. 가격에는 영향이 없습니다.
"standard""high"seedinteger선택0에서 2147483647 사이의 정수입니다. 생략하면 실행마다 다른 값이 정해집니다. 바꾼 항목의 효과를 하나씩 비교할 때 고정하세요. 비교를 위한 도구이며 프레임 단위로 같은 결과를 보장하지는 않습니다.
enable_web_searchboolean선택요금에 영향기본값은 꺼짐입니다. 켜면 모델이 새 구간을 그리기 전에 프롬프트와 관련된 정보를 웹에서 검색할 수 있습니다. 켠 요청은 표준보다 높은 웹 검색 요금으로 과금되며, 제출 전에 보이는 견적에 이미 반영되어 있습니다.
generate_audioboolean선택기본값은 켜짐이며, 새 구간에 생성된 소리가 붙습니다. 이 요금 구간에서는 꺼도 가격이 내려가지 않습니다. 원본은 어느 쪽이든 자신의 소리를 유지하며, 한쪽이 무음이면 합쳐진 파일은 무음으로 채워집니다.
duration_secondsinteger선택요금에 영향새 구간의 길이로, 정수 초 4에서 15 사이이거나 모델이 정하게 하는 -1입니다. -1이면 먼저 15초를 잡아 두고 실제로 전달된 길이에 맞춰 정산합니다. 기본값은 5입니다. 원본은 앞에 붙으며 과금되지 않습니다.
-1456789101112131415resolutionstring선택요금에 영향새 구간의 크기로, 480p 또는 720p이며 기본값은 720p입니다. 원본에 맞추세요. 이 설정은 새 구간의 화질만 정하므로, 낮추면 새 부분이 원본보다 부드럽게 보입니다. 합쳐진 파일은 클립의 화면 구도를 유지하며 검은 띠는 생기지 않습니다. 이음새를 맞추기 위해 화면 가장자리가 몇 퍼센트 정도 잘리거나 조정될 수 있습니다. 모델이 돌려준 영상의 화면 비율이 눈에 띄게 다르면 새 구간을 화면에 꽉 차게 확대해 가운데에 맞추고, 넘치는 부분은 잘라 냅니다. 가격을 결정합니다.
"480p""720p"last_image_urlstring선택선택 사항인 목표 끝 프레임입니다. 새 구간이 모델이 정한 곳이 아니라 이 이미지에서 끝납니다. 전환이나 익숙한 프레임으로 돌아오는 연출에 유용합니다. 클립의 마지막 프레임과 같은 비율로 주세요. 다르면 맞춰 잘립니다. 각 변은 300에서 6000픽셀이어야 하며, 더 작은 이미지는 과금 전에 입력 검사에서 거부됩니다.
promptstring선택선택 사항입니다. 이어서 일어나는 일, 즉 이어지는 동작, 카메라 움직임, 소리를 적습니다. 생략하면 모델이 마지막 프레임을 보고 움직임을 정합니다. 피사체와 장면은 시작 프레임이 이미 정해 두므로, 글은 움직임에 쓰세요.
{
"additionalProperties": false,
"properties": {
"bitrate_mode": {
"default": "standard",
"description": "Encoding bitrate of the new segment: 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": "Length of the new segment in seconds. The source clip is added on top and is not billed.",
"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"
}
},
"enable_web_search": {
"default": false,
"description": "Let the model search the web for information related to the prompt before rendering. Requests with it on are billed at the web-search rate.",
"type": "boolean",
"x-ui": {
"advanced": true,
"affects_price": true,
"order": 35,
"widget": "switch"
}
},
"generate_audio": {
"default": true,
"description": "Generate sound for the new segment. The source keeps its own sound either way.",
"type": "boolean",
"x-ui": {
"advanced": false,
"affects_price": true,
"order": 40,
"widget": "switch"
}
},
"last_image_url": {
"contentMediaType": [
"image/jpeg",
"image/png",
"image/webp",
"image/gif"
],
"description": "Optional target end frame: the new segment lands on this picture.",
"type": "string",
"x-ui": {
"advanced": true,
"order": 80,
"widget": "upload"
}
},
"prompt": {
"description": "Describe what happens next: the action that follows, the camera move and the sound.",
"minLength": 1,
"type": "string",
"x-ui": {
"order": 100,
"primary": false,
"widget": "textarea"
}
},
"resolution": {
"default": "720p",
"description": "Resolution of the new segment; match your source clip.",
"enum": [
"480p",
"720p"
],
"type": "string",
"x-ui": {
"advanced": false,
"affects_price": true,
"order": 60,
"widget": "radio"
}
},
"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"
}
},
"video_url": {
"contentMediaType": [
"video/mp4",
"video/webm",
"video/quicktime"
],
"description": "The clip to continue: MP4, MOV or WebM, up to 60 seconds. Its final frame becomes the opening frame of the new segment, and the result is your clip with the new segment joined on.",
"format": "uri",
"minLength": 1,
"type": "string",
"x-ui": {
"max_duration_seconds": 60,
"order": 90,
"primary": true,
"widget": "upload"
}
},
"watermark": {
"default": false,
"description": "Add the model’s visible \"AI generated\" watermark to the new segment.",
"type": "boolean",
"x-ui": {
"advanced": true,
"affects_price": false,
"order": 22,
"widget": "switch"
}
}
},
"required": [
"video_url"
],
"type": "object",
"x-pricing": {
"billingMode": "duration_capped",
"variantFields": [
"resolution",
"generate_audio",
"enable_web_search"
],
"variantKeyOmitDefaults": [
"enable_web_search"
]
}
}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-mini/video-extend",
"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-mini/video-extend로 해 질 녘 네온이 켜진 옥상을 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-mini/video-extend \
--input-json '{"bitrate_mode":"standard","duration_seconds":5,"enable_web_search":false,"generate_audio":true,"resolution":"720p","video_url":"https://example.com/reference.mp4"}' \
--wait입력값은 위 예시와 마찬가지로 이 엔드포인트의 스키마에서 생성했습니다. --wait는 작업이 끝날 때까지 폴링해 결과를 출력하고, CI에서는 --yes로 확인 절차를 건너뜁니다. 먼저 SPICY_API_KEY를 설정하세요. API와 CLI, MCP 서버가 같은 키를 씁니다.
npx @spicyapi/cli files upload ./poster.png
# -> spicy://uploads/01k3m8x9q2z4v7n5p6r8s0t1w3
npx @spicyapi/cli tasks create --model bytedance/seedance-2.0-mini/video-extend \
--input-json '{"video_url":"spicy://uploads/01k3m8x9q2z4v7n5p6r8s0t1w3"}' \
--wait요청 본문은 바이트가 아니라 URL을 받습니다. 파일을 먼저 업로드하고 출력되는 spicy:// URI를 넘기세요. 위 필드 이름은 이 엔드포인트의 스키마에서 그대로 가져온 것입니다. MCP를 쓰는 에이전트는 이 단계를 대신 처리합니다 — 앞의 문장이 ./poster.png를 그대로 가리킬 수 있는 이유입니다. 공개 HTTPS로 접근되는 미디어는 업로드가 필요 없습니다.
npx @spicyapi/cli tasks create --model bytedance/seedance-2.0-mini/video-extend \
--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 Mini · Video Extend를 검색하세요. 노드는 이 페이지와 같은 옵션을 제공하며, 실행하기 전에 가격을 보여 줍니다.
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-mini/api?model=bytedance%2Fseedance-2.0-mini%2Fvideo-extend" width="100%" height="560" loading="lazy" title="요청 예시" style="border:1px solid rgba(0,0,0,.12)"></iframe>