Vidu Q3 Turbo
Text-to-Video • Vidu • ProxiedVidu Q3 Turbo is a faster version of Vidu Q3 optimized for lower latency video generation while maintaining audio support and up to 16-second clips.
| Model Info | |
|---|---|
| Terms and License | link ↗ |
| More information | link ↗ |
| Pricing | View pricing in the Cloudflare dashboard ↗ |
Usage
const response = await env.AI.run( 'vidu/q3-turbo', { duration: 5, prompt: 'A cat lazily stretching on a sunlit windowsill', 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-turbo", "input": { "duration": 5, "prompt": "A cat lazily stretching on a sunlit windowsill", "resolution": "720p" }}'{ "gatewayMetadata": { "keySource": "Unified" }, "result": { "video": "https://video.cf.vidu.com/infer_28/tasks/26/0417/05/942602832110972928/creation-01/video.mp4" }, "state": "Completed"}Examples
High Resolution — Generate at 1080p
const response = await env.AI.run( 'vidu/q3-turbo', { duration: 5, prompt: 'Close-up of a hummingbird feeding from a vibrant red flower, slow motion with soft bokeh background', resolution: '1080p', },)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-turbo", "input": { "duration": 5, "prompt": "Close-up of a hummingbird feeding from a vibrant red flower, slow motion with soft bokeh background", "resolution": "1080p" }}'{ "gatewayMetadata": { "keySource": "Unified" }, "result": { "video": "https://video.cf.vidu.com/infer_44/tasks/26/0417/05/942602894400569344/creation-01/video.mp4" }, "state": "Completed"}Portrait Video — Vertical video for mobile viewing
const response = await env.AI.run( 'vidu/q3-turbo', { aspect_ratio: '9:16', duration: 5, prompt: 'A waterfall cascading down mossy rocks in a tropical jungle, mist rising', 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-turbo", "input": { "aspect_ratio": "9:16", "duration": 5, "prompt": "A waterfall cascading down mossy rocks in a tropical jungle, mist rising", "resolution": "720p" }}'{ "gatewayMetadata": { "keySource": "Unified" }, "result": { "video": "https://video.cf.vidu.com/infer_48/tasks/26/0417/05/942603057143758848/creation-01/video.mp4" }, "state": "Completed"}Extended Duration — Longer video clip
const response = await env.AI.run( 'vidu/q3-turbo', { duration: 16, prompt: 'Timelapse of clouds rolling over a mountain peak from sunrise to sunset, dramatic lighting', 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-turbo", "input": { "duration": 16, "prompt": "Timelapse of clouds rolling over a mountain peak from sunrise to sunset, dramatic lighting", "resolution": "720p" }}'{ "gatewayMetadata": { "keySource": "Unified" }, "result": { "video": "https://video.cf.vidu.com/infer_84/tasks/26/0417/06/942603162785705984/creation-01/video.mp4" }, "state": "Completed"}Low Resolution Fast Preview — Quick preview at 540p
const response = await env.AI.run( 'vidu/q3-turbo', { duration: 3, prompt: 'A sailboat gliding across calm ocean waters at sunset', resolution: '540p', },)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-turbo", "input": { "duration": 3, "prompt": "A sailboat gliding across calm ocean waters at sunset", "resolution": "540p" }}'{ "gatewayMetadata": { "keySource": "Unified" }, "result": { "video": "https://video.cf.vidu.com/infer_68/tasks/26/0417/06/942603796612128768/creation-01/video.mp4" }, "state": "Completed"}Parameters
aspect_ratio
stringenum: 16:9, 9:16, 3:4, 4:3, 1:1Video aspect ratio (text-to-video only). Default: 16:9audio
booleanEnable audio-video synchronization. Default: true for Q3 models. When false, outputs silent videoduration
integerrequireddefault: 5maximum: 16minimum: 1Video duration in seconds (1-16)end_image
stringEnd image for start/end-to-video generation. Must be used together with start_image. Accepts public URL or Base64 data URI (data:image/png;base64,...)prompt
stringmaxLength: 5000Text prompt describing what should appear in the videoresolution
stringrequireddefault: 720penum: 540p, 720p, 1080pVideo resolutionstart_image
stringStart image for video generation. Use alone for image-to-video, or with end_image for start/end-to-video. Accepts public URL or Base64 data URI (data:image/png;base64,...)video
stringformat: uriURL to the generated video