API 레퍼런스
텍스트로 비디오
Seedance 2.0 Open API로 텍스트 프롬프트에서 비디오를 생성합니다.
mediaUrls 를 보내지 않으면 이 엔드포인트는 순수 text-to-video 모드로 동작합니다.
Endpoint
POST /api/open/v1/video/generations요청 예시
curl --request POST \
--url https://www.seedance2.ink/api/open/v1/video/generations \
--header 'Authorization: Bearer sd2_live_your_api_key' \
--header 'Content-Type: application/json' \
--data '{
"model": "seedance-2.0",
"prompt": "A river flowing through an autumn forest, aerial view, cinematic motion",
"aspectRatio": "16:9",
"duration": 5,
"resolution": "720p",
"webhookUrl": "https://your-app.com/webhooks/seedance",
"metadata": {
"projectId": "proj_1001",
"sceneId": "scene_08"
}
}'성공 응답
{
"success": true,
"requestId": "req_1234567890",
"status": "queued",
"creditsCharged": 40
}요청 필드
| Field | Type | Required | Description |
|---|---|---|---|
model | string | Yes | seedance-2.0, seedance-2.0-fast, seedance-1.5-pro 중 하나입니다. |
prompt | string | Yes | 생성할 비디오를 설명하는 자연어 프롬프트입니다. |
aspectRatio | string | No | 16:9, 9:16, 1:1 중 하나입니다. |
duration | integer | No | seedance-2.0 과 seedance-2.0-fast 는 4-15초, seedance-1.5-pro 는 5 또는 10초를 지원합니다. |
resolution | string | No | 480p, 720p, 1080p 중 하나입니다. |
webhookUrl | string | No | 작업 완료 시 결과를 받을 콜백 URL 입니다. |
metadata | object | No | 요청과 함께 저장되는 사용자 정의 메타데이터입니다. |
결과 조회
curl https://www.seedance2.ink/api/open/v1/video/generations/req_1234567890 \
--header 'Authorization: Bearer sd2_live_your_api_key'{
"success": true,
"requestId": "req_1234567890",
"status": "succeeded",
"model": "seedance-2.0",
"prompt": "A river flowing through an autumn forest, aerial view, cinematic motion",
"duration": 5,
"aspectRatio": "16:9",
"output": {
"type": "video",
"url": "https://pub-your-bucket.r2.dev/open-api-results/req_1234567890.mp4"
},
"error": null
}작업 취소
curl --request POST \
--url https://www.seedance2.ink/api/open/v1/video/generations/req_1234567890/cancel \
--header 'Authorization: Bearer sd2_live_your_api_key'{
"success": true,
"requestId": "req_1234567890",
"status": "cancelled"
}참고
creditsCharged는 작업이 수락될 때 계산됩니다.output.url은status가succeeded인 경우에만 반환됩니다.- 폴링 대신 완료 알림을 원하면 Webhook 을 설정하세요.