Pixverse C1 API
Pixverse C1 동영상 생성 모델의 전체 API 레퍼런스입니다. 모든 변형은 통합 동영상 작업 엔드포인트를 사용합니다.
모델 변형
빠른 비교
Text-to-video 모델은 다음 화면 비율을 지원합니다: 21:9, 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3.
Pixverse C1 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: 'pixverse-c1-text-to-video',
prompt: 'A drone shot over coastline at golden hour',
duration: 5,
resolution: '720p',
aspect_ratio: '16:9',
sound: true,
}),
});
const { data } = await response.json();
const taskId = data.task_id;
Pixverse C1 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: 'pixverse-c1-image-to-video',
prompt: 'Slow zoom in; soft natural motion',
duration: 5,
resolution: '720p',
image_url: 'https://example.com/first-frame.jpg',
sound: false,
}),
});
const { data } = await response.json();
const taskId = data.task_id;
Pixverse C1 Transition
첫 키프레임 이미지와 마지막 키프레임 이미지 사이의 움직임을 생성합니다.
요청 파라미터
필수
선택 사항
요청 예시
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: 'pixverse-c1-transition',
prompt: 'Smooth cinematic morph between the two scenes',
duration: 6,
resolution: '720p',
image_url: 'https://example.com/start.jpg',
image_end_url: 'https://example.com/end.jpg',
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/{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: 동영상 생성에 실패했습니다
모범 사례
- 해상도: 품질과 생성 시간의 균형을 위해
720p 또는 1080p를 사용하고, 더 빠른 반복에는 360p 또는 540p를 사용하세요.
- 전환: 모델이 움직임을 안정적으로 보간할 수 있도록 선명하고 조명이 좋은 첫 프레임과 마지막 프레임을 사용하세요.
- 오디오: 동기화된 주변 오디오가 필요하면
sound를 설정하고, 무음 출력은 생략하거나 false로 설정하세요.
- 폴링:
task_status가 succeed 또는 failed가 될 때까지 5–10초마다 폴링하세요.