Seedance 2.0 API
ByteDance의 Seedance 2.0 비디오 생성 모델에 대한 전체 API 참조 문서입니다.
모델 변형
이 API는 여섯 가지 모델 변형을 지원합니다:
빠른 비교
지원되는 화면 비율
21:9, 16:9, 9:16, 1:1, 4:3, 3:4
해상도 옵션
Seedance 2.0 Text to Video
엔드포인트 {#}
POST /api/v1/video/task
요청 파라미터
필수
선택
요청 예시
const response = await fetch('https://api.flaq.ai/api/v1/video/task', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
model_name: 'seedance-v2.0-text-to-video',
prompt: 'A golden retriever running through a sunlit meadow',
duration: 6,
resolution: '720p',
aspect_ratio: '16:9'
})
});
const { data } = await response.json();
const taskId = data.task_id;
Seedance 2.0 Image to Video
요청 파라미터
필수
선택
요청 예시
{
model_name: 'seedance-v2.0-image-to-video',
image_url: 'https://example.com/image.jpg',
image_end_url: 'https://example.com/end-frame.jpg',
prompt: 'Camera slowly pulls back to reveal the full landscape',
duration: 6,
resolution: '720p',
aspect_ratio: '16:9'
}
Seedance 2.0 Reference to Video
요청 파라미터
필수
참조 미디어
이미지 1~9개를 제출합니다. 참조 비디오가 하나 이상 제공된 경우에만 이미지를 생략할 수 있습니다.
@ (AT) 참조 플레이스홀더
@ (AT) 참조 기능은 번호가 지정된 <<<...>>> 플레이스홀더를 통해 참조 미디어를 프롬프트에 연결합니다. 번호는 미디어 유형별로 독립적으로 1부터 시작하며 해당 배열의 순서를 따릅니다.
예를 들어 첫 번째 이미지가 캐릭터 참조이고 두 번째 이미지가 장면 참조라면, prompt에서 캐릭터에는 <<<image_1>>>, 장면에는 <<<image_2>>>를 사용합니다. 각 플레이스홀더는 해당 배열에 실제로 존재하는 항목을 가리켜야 합니다.
선택
요청 예시
{
model_name: 'seedance-v2.0-reference-to-video',
prompt: 'Use image one for the subject, video one for the movement, and audio one for the atmosphere',
duration: 8,
resolution: '1080p',
aspect_ratio: '16:9',
sound: true,
images: ['https://example.com/subject-reference.jpg'],
videos: ['https://example.com/motion-reference.mp4'],
audios: ['https://example.com/atmosphere-reference.mp3']
}
@ (AT) Reference-to-Video 요청 예시
{
model_name: 'seedance-v2.0-reference-to-video',
prompt: 'Place the explorer from <<<image_1>>> in the environment from <<<image_2>>>, following the camera movement in <<<video_1>>> and speaking with the reference voice from <<<audio_1>>>',
duration: 8,
resolution: '1080p',
aspect_ratio: '16:9',
sound: true,
images: [
'https://example.com/explorer-reference.jpg',
'https://example.com/environment-reference.jpg'
],
videos: ['https://example.com/camera-movement-reference.mp4'],
audios: ['https://example.com/voice-reference.mp3']
}
빠른 변형
빠른 변형은 처리 속도를 우선합니다. 모든 빠른 모델은 "480p" 및 "720p" 출력만 지원합니다. 빠른 Text-to-Video와 빠른 Image-to-Video는 그 외에는 각각의 표준 요청 형식을 따르며, 빠른 Reference-to-Video는 표준 참조 모델과 동일한 참조 미디어 제한을 사용합니다.
빠른 요청 예시
{
model_name: 'seedance-v2.0-fast-reference-to-video',
prompt: 'Use image one for the subject, follow the movement from video one, and use audio one for the atmosphere',
duration: 8,
resolution: '720p',
aspect_ratio: '9:16',
sound: true,
images: ['https://example.com/subject-reference.jpg'],
videos: ['https://example.com/motion-reference.mp4'],
audios: ['https://example.com/atmosphere-reference.mp3']
}
@ (AT) 빠른 Reference-to-Video 요청 예시
{
model_name: 'seedance-v2.0-fast-reference-to-video',
prompt: 'Have the dancer from <<<image_1>>> perform the movement from <<<video_1>>> on the stage in <<<image_2>>>, using the rhythm from <<<audio_1>>>',
duration: 8,
resolution: '720p',
aspect_ratio: '9:16',
sound: true,
images: [
'https://example.com/dancer-reference.jpg',
'https://example.com/stage-reference.jpg'
],
videos: ['https://example.com/dance-movement-reference.mp4'],
audios: ['https://example.com/rhythm-reference.mp3']
}
Seedance 2.0 빠른 Reference-to-Video 파라미터
필수
참조 미디어
위에서 설명한 1부터 시작하는 플레이스홀더 규칙은 빠른 Reference-to-Video 모델에도 적용됩니다.
선택
응답 형식
초기 응답
모든 모델은 폴링을 위한 task_id를 반환합니다:
{
"code": 0,
"message": "success",
"data": {
"task_id": "{task_id}",
"response_url": "https://api.flaq.ai/api/v1/video/{task_id}",
"task_status": "submitted"
}
}
폴링 응답
GET /api/v1/video/{taskId}를 폴링하여 상태를 확인합니다:
{
"code": 0,
"message": "success",
"data": {
"task_id": "{task_id}",
"response_url": "https://api.flaq.ai/api/v1/video/{task_id}",
"task_status": "succeed",
"task_status_msg": null,
"task_result": {
"videos": [
{
"url": "https://example.com/generated-video.mp4"
}
]
}
}
}
상태 값
submitted: 작업이 제출되었으며 처리 대기 중
processing: 비디오 생성 진행 중
succeed: 비디오 생성 완료
failed: 비디오 생성 실패
처리 시간
표준 모델: 재생 시간 및 해상도에 따라 3~8분 소요.
빠른 모델: 대부분의 설정에서 1~4분 소요.
상태 확인을 위해 5~10초마다 폴링하십시오.
모범 사례
- 적절한 변형 선택: 반복 작업에는 빠른 모델, 최종 출력에는 표준 모델 사용
- 모션 명확하게 설명: 프롬프트에 구체적인 움직임 설명 포함
- 해상도 선택: 더 빠른 처리에는
480p, 현재 최고 사용 가능 품질에는 720p를 사용하세요
- 카메라 제어: 정적 카메라 앵글을 원할 때
camera_fixed: true 설정
- 참조 비디오: reference-to-video의 경우 선명하고 고품질의 참조 비디오 사용
- 재현성: 특정 생성 결과를 재현하려면
seed 파라미터 사용
- 오디오 향상: 더욱 몰입감 있는 비디오 경험을 위해
sound 활성화