- サードパーティ
- ゼロデータ保持
Vidu Q3 Pro は、テキストから動画、画像から動画、開始・終了フレームから動画のワークフローに対応する高品質な動画生成モデルです。音声付きで最大 16 秒のクリップを生成できます。
| モデル情報 | |
|---|---|
| 利用規約とライセンス | リンク ↗ |
| 詳細情報 | リンク ↗ |
| ゼロデータ保持 | はい |
| 料金 | Cloudflare ダッシュボードで料金を見る ↗ |
const response = await env.AI.run(
'vidu/q3-pro',
{
prompt: 'A golden retriever running through a sunlit meadow in slow motion',
duration: 5,
resolution: '720p',
},
)
console.log(response)curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "vidu/q3-pro",
"input": {
"prompt": "A golden retriever running through a sunlit meadow in slow motion",
"duration": 5,
"resolution": "720p"
}
}'{
"gatewayMetadata": {
"keySource": "Unified"
},
"result": {
"video": "https://video.cf.vidu.com/infer_64/tasks/26/0417/05/942597991691198464/creation-01/video.mp4"
},
"state": "Completed"
}ポートレートのアスペクト比 — SNS 向けの縦向き動画です
const response = await env.AI.run(
'vidu/q3-pro',
{
prompt:
'A busy street in Tokyo at night with neon signs reflecting on wet pavement, rain falling',
aspect_ratio: '9:16',
duration: 5,
resolution: '720p',
},
)
console.log(response)curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "vidu/q3-pro",
"input": {
"prompt": "A busy street in Tokyo at night with neon signs reflecting on wet pavement, rain falling",
"aspect_ratio": "9:16",
"duration": 5,
"resolution": "720p"
}
}'{
"gatewayMetadata": {
"keySource": "Unified"
},
"result": {
"video": "https://video.cf.vidu.com/infer_88/tasks/26/0417/05/942598607041753088/creation-01/video.mp4"
},
"state": "Completed"
}無音動画 — 音声なしで動画を生成します
const response = await env.AI.run(
'vidu/q3-pro',
{
audio: false,
prompt: 'Abstract paint swirls slowly mixing in water, vivid blues and golds',
duration: 8,
resolution: '720p',
},
)
console.log(response)curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "vidu/q3-pro",
"input": {
"audio": false,
"prompt": "Abstract paint swirls slowly mixing in water, vivid blues and golds",
"duration": 8,
"resolution": "720p"
}
}'{
"gatewayMetadata": {
"keySource": "Unified"
},
"result": {
"video": "https://video.cf.vidu.com/infer_76/tasks/26/0417/05/942599305355595776/creation-01/final_video.mp4"
},
"state": "Completed"
}正方形 — 製品デモや SNS 投稿向けの正方形動画です
const response = await env.AI.run(
'vidu/q3-pro',
{
prompt:
'A sleek wireless headphone rotating on a pedestal with soft studio lighting and a white background',
aspect_ratio: '1:1',
duration: 5,
resolution: '720p',
},
)
console.log(response)curl https://api.cloudflare.com/client/v4/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run \
--header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \
--header "Content-Type: application/json" \
--data '{
"model": "vidu/q3-pro",
"input": {
"prompt": "A sleek wireless headphone rotating on a pedestal with soft studio lighting and a white background",
"aspect_ratio": "1:1",
"duration": 5,
"resolution": "720p"
}
}'{
"gatewayMetadata": {
"keySource": "Unified"
},
"result": {
"video": "https://video.cf.vidu.com/infer_40/tasks/26/0417/05/942599364482723840/creation-01/video.mp4"
},
"state": "Completed"
}prompt
stringmaxLength: 5000動画に映すべき内容を説明するテキストプロンプトですstart_image
string動画生成の開始画像です。単独なら画像から動画、`end_image` と組み合わせると開始/終了から動画です。公開 URL または Base64 data URI(`data:image/png;base64,...`)を受け付けますend_image
string開始/終了から動画向けの終了画像です。`start_image` と一緒に使います。公開 URL または Base64 data URI(`data:image/png;base64,...`)を受け付けますduration
integer必須デフォルト: 5minimum: 1maximum: 16動画の長さ(秒、1〜16)ですresolution
string必須デフォルト: 720penum: 540p, 720p, 1080p動画の解像度ですaudio
boolean音声と動画の同期を有効にします。Q3 モデルのデフォルトは true です。false の場合は無音の動画になりますaspect_ratio
stringenum: 16:9, 9:16, 3:4, 4:3, 1:1動画のアスペクト比です(テキストから動画のみ)。デフォルトは 16:9 ですvideo
stringformat: uri生成された動画の URL です