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',
seed: -1,
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',
seed: -1,
sound: true
})
});
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를 사용하세요
- 재현성: 특정 생성 결과를 재현하려면
seed 파라미터를 사용하세요
- 오디오 향상: 더 몰입감 있는 비디오 경험을 위해
sound를 활성화 상태로 유지하세요
- 이미지-투-비디오:
image_url로 명확한 첫 번째 프레임을 제공하고, 시작 및 종료 프레임을 제어해야 할 때는 image_end_url을 사용하세요