Seedance 2.0 Mini API
ByteDance의 Seedance 2.0 Mini 비디오 생성 모델에 대한 완전한 API 레퍼런스입니다.
모델 변형
이 API는 세 가지 모델 변형을 지원합니다.
빠른 비교
지원 화면비
21:9, 16:9, 9:16, 1:1, 4:3, 3:4
해상도 옵션
Seedance 2.0 Mini 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-mini-text-to-video',
prompt: 'A golden retriever running through a sunlit meadow',
duration: 6,
resolution: '720p',
aspect_ratio: '16:9',
sound: true
})
});
const { data } = await response.json();
const taskId = data.task_id;
Seedance 2.0 Mini Image to Video
요청 파라미터
필수
선택 사항
요청 예시
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-mini-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',
sound: true
})
});
const { data } = await response.json();
const taskId = data.task_id;
Seedance 2.0 Mini Reference to Video
요청 파라미터
필수
참조 미디어
모든 요청에는 이미지 또는 비디오가 하나 이상 포함되어야 합니다. 이미지 참조를 사용할 때는 1~9개의 이미지를 제출하세요. images 배열은 videos 배열에 참조 비디오가 하나 이상 포함된 경우에만 생략하거나 비워 둘 수 있습니다. 오디오만 포함된 요청은 지원되지 않습니다.
@ (AT) 참조 플레이스홀더
@ (AT) 참조 기능은 번호가 지정된 <<<...>>> 플레이스홀더를 통해 참조 미디어를 프롬프트에 연결합니다. 번호는 각 미디어 유형마다 독립적으로 1부터 시작하며 해당 배열의 순서를 따릅니다.
각 플레이스홀더는 해당 배열에 존재하는 항목을 가리켜야 합니다.
선택 사항
참조 비디오 요금
Seedance V2.0 Mini Reference-to-Video는 다른 Seedance 2.0 참조 변형과 동일하게 해상도별 초당 요금 체계를 따릅니다. videos 배열에 참조 비디오가 하나 이상 포함되면 총 생성 요금에 2가 곱해집니다. 이 배수는 업로드한 참조 비디오의 수나 길이에 관계없이 한 번만 적용됩니다.
요청 예시
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-mini-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: '720p',
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']
})
});
const { data } = await response.json();
const taskId = data.task_id;
응답 형식
초기 응답
모든 모델은 폴링을 위한 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: 비디오 생성에 실패했습니다
처리 시간
일반적인 처리 시간은 길이와 해상도에 따라 2-6분입니다.
5-10초마다 폴링하여 상태를 확인하세요.
모범 사례
- 움직임을 명확하게 설명: 프롬프트에 구체적인 움직임 설명을 포함하세요
- 해상도 선택: 더 빠른 처리는
480p, 더 높은 품질은 720p를 사용하세요
- 오디오 향상: 더 몰입감 있는 비디오 경험을 위해
sound를 활성화 상태로 유지하세요
- 이미지-투-비디오:
image_url로 명확한 첫 번째 프레임을 제공하고, 시작 및 종료 프레임을 제어해야 할 때는 image_end_url을 사용하세요
- 참조 미디어: 지원되는 이미지, 비디오, 오디오 참조를 사용하고 이미지 또는 비디오를 하나 이상 포함하세요
- 참조 비디오 요금: 참조 비디오가 하나 이상 포함된 모든 Reference-to-Video 요청은 업로드된 비디오의 수나 길이에 관계없이 2배로 요금이 부과됩니다
- Seed 파라미터:
seed를 보내지 마세요. Seedance 2.0 Mini 모델은 이를 지원하지 않습니다