FLUX 3 API
FLUX 3 동영상 생성 모델의 전체 API 레퍼런스입니다. 모든 변형은 통합 동영상 작업 엔드포인트를 사용합니다.
모델 변형
빠른 비교
네 가지 모델 모두 다음 화면비를 지원합니다.
21:9, 2:1, 16:9, 4:3, 1:1, 3:4, 9:16
엔드포인트 {#}
POST /api/v1/video/task
인증
Authorization: Bearer YOUR_API_KEY
FLUX 3 텍스트 투 비디오
요청 매개변수
필수
선택 사항
요청 예시
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: 'flux-3.0-text-to-video',
prompt: 'A cinematic aerial shot of a coastal city at sunrise',
resolution: '1080p',
aspect_ratio: '16:9',
duration: 10,
sound: true,
}),
});
const { data } = await response.json();
const taskId = data.task_id;
FLUX 3 이미지 투 비디오
요청 매개변수
필수
선택 사항
요청 예시
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: 'flux-3.0-image-to-video',
prompt: 'A gentle camera push forward with natural subject motion',
resolution: '1080p',
aspect_ratio: '16:9',
image_url: 'https://example.com/first-frame.jpg',
duration: 10,
sound: true,
}),
});
const { data } = await response.json();
const taskId = data.task_id;
FLUX 3 시작-종료 프레임 투 비디오
요청 매개변수
필수
선택 사항
요청 예시
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: 'flux-3.0-start-end-to-video',
prompt: 'Create a smooth cinematic transition with consistent lighting',
resolution: '720p',
aspect_ratio: '16:9',
image_url: 'https://example.com/start-frame.jpg',
image_end_url: 'https://example.com/end-frame.jpg',
duration: 8,
sound: true,
}),
});
const { data } = await response.json();
const taskId = data.task_id;
FLUX 3 동영상 확장
입력 동영상은 MP4 형식이어야 하며 길이는 15초 이하, 크기는 50MB 이하여야 합니다.
요청 매개변수
필수
선택 사항
요청 예시
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: 'flux-3.0-video-extend',
prompt: 'Continue the scene as the subject walks toward the skyline',
resolution: '1080p',
aspect_ratio: '16:9',
video_url: 'https://example.com/source-video.mp4',
duration: 10,
sound: true,
}),
});
const { data } = await response.json();
const taskId = data.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/{task_id}를 폴링하세요.
{
"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: 동영상 생성 실패
권장 사항
- 화면비: 작업을 제출하기 전에 대상 채널에 맞는 비율을 선택하세요.
- 길이: 모든 변형에 5초에서 20초 사이의 값을 사용하세요.
- 입력 미디어: 접근 가능한 이미지 URL과 동영상 확장 제한을 충족하는 MP4 원본을 사용하세요.
- 폴링:
task_status가 succeed 또는 failed가 될 때까지 5–10초마다 폴링하세요.