Vidu Q3 API
Vidu Q3 동영상 생성 모델의 전체 API 참조 문서입니다.
모델 종류
이 API는 일곱 가지 모델 변형을 지원합니다:
빠른 비교
Vidu Q3 텍스트-동영상 변환 (Turbo & Pro)
엔드포인트 {#}
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: 'viduq3-turbo-text-to-video',
prompt: 'A cinematic drone shot over misty mountains at sunrise',
aspect_ratio: '16:9',
resolution: '720p',
duration: 5,
sound: true,
bgm: false,
style: 'general',
seed: 42
})
});
const { data } = await response.json();
const taskId = data.task_id;
Vidu Q3 이미지-동영상 변환 (Turbo & Pro)
요청 파라미터
필수 파라미터
선택 파라미터
요청 예시
{
model_name: 'viduq3-pro-image-to-video',
image_url: 'https://example.com/image.jpg',
prompt: 'Smooth pan across the scene with natural motion',
aspect_ratio: '16:9',
resolution: '720p',
duration: 5,
sound: true,
bgm: false,
seed: 42
}
Vidu Q3 시작-끝 프레임 (Turbo & Pro)
시작 프레임과 끝 프레임 사이를 전환하는 동영상을 생성합니다.
요청 파라미터
필수 파라미터
선택 파라미터
요청 예시
{
model_name: 'viduq3-pro-start-end-frame',
image_url: 'https://example.com/start.jpg',
image_end_url: 'https://example.com/end.jpg',
prompt: 'Smooth transition from day to night with stars appearing',
aspect_ratio: '16:9',
resolution: '720p',
duration: 5,
sound: true,
bgm: false,
seed: 42
}
Vidu Q3 Reference to Video
순서가 지정된 1~4개의 참조 이미지로 비디오를 생성합니다. 참조 오디오 및 참조 비디오 입력은 지원되지 않습니다.
요청 파라미터
필수 파라미터
@ (AT) 참조 플레이스홀더
@ (AT) 참조 기능은 번호가 지정된 <<<image_N>>> 플레이스홀더를 통해 참조 이미지를 프롬프트에 연결합니다. 번호는 1부터 시작하며 images 배열의 순서를 따릅니다.
선택 파라미터
지원되지 않는 파라미터: 이 모델은 audios 또는 videos를 지원하지 않습니다.
요청 예시
{
model_name: 'viduq3-reference-to-video',
prompt: 'Keep the character from image one and the jacket details from image two while walking through a rainy city',
images: [
'https://example.com/character-reference.jpg',
'https://example.com/outfit-reference.jpg'
],
aspect_ratio: '9:16',
resolution: '1080p',
duration: 8,
sound: true,
seed: 42
}
@ (AT) Reference-to-Video 요청 예시
{
model_name: 'viduq3-reference-to-video',
prompt: 'Keep the character from <<<image_1>>> wearing the coat from <<<image_2>>> while entering the rainy city shown in <<<image_3>>>, then return to a close-up of <<<image_1>>>',
images: [
'https://example.com/character-reference.jpg',
'https://example.com/outfit-reference.jpg',
'https://example.com/city-reference.jpg'
],
aspect_ratio: '9:16',
resolution: '1080p',
duration: 8,
sound: true,
seed: 42
}
응답 형식
초기 응답
{
"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: 동영상 생성 실패
처리 시간
모범 사례
- 등급 선택: 빠른 반복 작업에는 Turbo, 최종 출력에는 Pro를 사용하세요
- 프롬프트 작성: 피사체 움직임과 카메라 움직임을 함께 설명하면 결과가 더 안정적입니다
- 이미지 입력: 이미지-동영상 및 시작-끝 프레임 워크플로에서는 선명한 고해상도 원본 이미지를 사용하세요
- 해상도 계획: 속도, 품질, 크레딧 예산에 따라
540p, 720p, 1080p를 선택하세요
- 참조 이미지: Reference-to-Video에서는 의도한 순서로 이미지 1~4개를 제출하고 프롬프트에서 일관되게 참조하세요
- 지원되지 않는 미디어: Reference-to-Video 모델에
audios 또는 videos를 전송하지 마세요