Vidu Q3 API
Complete API reference for Vidu Q3 video generation models by Vidu.
Model Variants
This API supports seven model variants:
Quick Comparison
Vidu Q3 Text to Video (Turbo & Pro)
Endpoint
POST /api/v1/video/task
Request Parameters
Required
Optional
Example Request
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 Image to Video (Turbo & Pro)
Request Parameters
Required
Optional
Example Request
{
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 Start-End Frame (Turbo & Pro)
Generate a video that transitions between a start frame and an end frame.
Request Parameters
Required
Optional
Example Request
{
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
Generate a video from one to four ordered reference images. Reference audio and reference video inputs are not supported.
Request Parameters
Required
@ (AT) Reference Placeholders
The @ (AT) reference feature links reference images to the prompt through numbered <<<image_N>>> placeholders. Numbering starts at 1 and follows the order of the images array.
Optional
Unsupported Parameters: This model does not support audios or videos.
Example Request
{
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 Request Example
{
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
}
Initial Response
{
"code": 0,
"message": "success",
"data": {
"task_id": "{task_id}",
"response_url": "https://api.flaq.ai/api/v1/video/{task_id}",
"task_status": "submitted"
}
}
Polling Response
Poll GET /api/v1/video/{taskId} to check status:
{
"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"
}
]
}
}
}
Status Values
submitted: Task accepted and waiting to be processed
processing: Video generation in progress
succeed: Video generation completed
failed: Video generation failed
Processing Time
- Turbo: 1-3 minutes
- Pro: 3-6 minutes
Best Practices
- Tier Selection: Use Turbo for rapid iteration, Pro for final output
- Prompt Writing: Describe both subject motion and camera movement for clearer results
- Image Inputs: Use clear, high-resolution source frames for image-to-video and start-end workflows
- Resolution Planning: Choose
540p, 720p, or 1080p based on speed, quality, and credit budget
- Reference Images: For reference-to-video, submit 1-4 images in intentional order and refer to them consistently in the prompt
- Unsupported Media: Do not send
audios or videos to the reference-to-video model