Pixverse V6 API
Pixverse V6 動画生成モデルの完全な API リファレンスです。すべてのバリアントは統一された動画タスクエンドポイントを使用します。
モデルバリアント {#}
クイック比較
Text-to-video モデルは次のアスペクト比をサポートします:21:9, 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3。
Pixverse V6 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-v6-text-to-video',
prompt: 'A cinematic street scene at night with neon reflections',
duration: 8,
resolution: '1080p',
aspect_ratio: '16:9',
sound: true,
}),
});
const { data } = await response.json();
const taskId = data.task_id;
Pixverse V6 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-v6-image-to-video',
prompt: 'Fluid camera pan; maintain subject identity',
duration: 6,
resolution: '720p',
image_url: 'https://example.com/first-frame.jpg',
sound: true,
}),
});
const { data } = await response.json();
const taskId = data.task_id;
Pixverse V6 Transition
ファーストキーフレーム画像とラストキーフレーム画像の間の動きを生成します。任意の negative prompting と seed をサポートします。
リクエストパラメータ
必須
任意
リクエスト例
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-v6-transition',
prompt: 'Seamless blend with natural lighting continuity',
duration: 6,
resolution: '720p',
image_url: 'https://example.com/start.jpg',
image_end_url: 'https://example.com/end.jpg',
sound: true,
negative_prompt: 'blur, watermark, text overlay',
seed: 0,
}),
});
const { data } = await response.json();
const taskId = data.task_id;
Pixverse V6 Extend
既存クリップを継続します。ソース動画 URL と、ストーリーをどのように進めるかを説明するプロンプトを指定します。
リクエストパラメータ
必須
任意
リクエスト例
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-v6-extend',
prompt: 'Continue the walk into the forest clearing',
duration: 5,
resolution: '720p',
video_url: 'https://example.com/source-clip.mp4',
sound: false,
negative_prompt: 'low quality, jitter',
seed: 0,
}),
});
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: 動画生成に失敗しました
ベストプラクティス
- Extend:モデルがアーティファクトなしで動きを継続できるよう、クリーンで安定したソース動画を使用します。
- Transition:再現可能なトランジションテストが必要な場合は、
negative_prompt と seed を組み合わせます。
- 解像度:
resolution を納品ターゲットに合わせます。高い解像度ほど処理に時間がかかります。
- ポーリング:
task_status が succeed または failed になるまで、5–10 秒ごとにポーリングします。