Vidu Q3 API
Vidu Q3 動画生成モデルの完全な API リファレンスです。
モデルバリアント {#}
この API は7つのモデルバリアントをサポートしています:
クイック比較
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 を送信しないでください