Vidu Q2 Turbo - Image to Video
viduq2-turbo-img2video
Vidu Q2 Turbo - Image to Video delivers fast video generation with optimized processing while maintaining high visual quality and motion coherence.
Endpoints
Section titled “Endpoints”POST /v1/queue/viduq2-turbo-img2video # Create taskGET /v1/queue/viduq2-turbo-img2video/requests/{request_id}/status # Check statusGET /v1/queue/viduq2-turbo-img2video/requests/{request_id}/response # Get resultPUT /v1/queue/viduq2-turbo-img2video/requests/{request_id}/cancel # Cancel taskRequest parameters
Section titled “Request parameters”curl --request 'POST' 'https://odirouter.ai/model/v1/queue/viduq2-turbo-img2video' \ --header 'Authorization: Bearer YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --location \ --data-raw '{ "prompt": "A clean studio shot of a red apple on a white table, soft natural light.", "images": [ "https://www.gstatic.com/webp/gallery/4.jpg" ], "duration": 4, "seed": 0, "resolution": "720p"}'First frame image that will be used as the starting frame for the generated video
Format Requirements:
Supports Base64 encoding or image URL (must be accessible)
Only accepts 1 image
Supported formats: png, jpeg, jpg, webp
Image aspect ratio must be less than 1:4 or 4:1
Image size must not exceed 50MB
HTTP request POST body must not exceed 20MB, and encoding must include appropriate content type string. Example: data:image/png;base64,{base64_encode}
Text description for video generation, maximum 2000 characters
If using the is_rec recommended prompt parameter, the model will not consider the prompt entered in this parameter
Whether to use direct audio-video output capability
When false, outputs silent video; when true, outputs video with dialogue and background sound, and the voice_id parameter takes effect
Options: true, false
Default: false
Voice ID to determine the voice timbre in the video, when empty, the system will automatically recommend, refer to the available voice list for options
Whether to use recommended prompts
When true, the system automatically recommends prompts and uses them to generate video; when false, generates video based on the input prompt
Note: Enabling recommended prompts consumes additional points per task
Options: true, false
Default: false
Whether to add background music to the generated video
When true, the system will automatically select and add suitable music from a preset BGM library; when not provided or false, no BGM will be added
BGM duration is unlimited, the system automatically adapts to the video duration
Note: The BGM parameter does not take effect when duration is 9 or 10 seconds
Options: true, false
Default: false
Video duration in seconds
Options: 1 - 10
Default: 5
Random seed, when not provided or set to 0, uses a random number instead, manual setting uses the specified seed
Resolution parameter
Options: 540p, 720p, 1080p
Default: 720p
Pass-through parameter, no processing required, only data transmission, maximum 1048576 characters
Note: Temporarily unavailable
Off-peak mode, off-peak mode consumes fewer points. Tasks submitted in off-peak mode will be generated within 48 hours. Tasks that cannot be completed will be automatically canceled and points will be refunded
When true, generates video during off-peak hours; when false, generates video immediately
Note: Direct audio-video output function does not support off-peak mode
Options: true, false
Default: false
Whether to add a watermark. When true, a watermark is added; when false, no watermark is added
Currently watermark content is fixed and AI-generated, by default no watermark is added
Options: true, false
Default: false
Watermark position, indicating where the watermark appears on the image
Options: 1 (Top-left), 2 (Top-right), 3 (Bottom-right), 4 (Bottom-left)
Default: 3
Watermark content, provided as an image URL, when not provided, the default AI-generated watermark content is used
Callback URL
Response parameters
Section titled “Response parameters”{ "request_id": "task_01hxyz...", "response_url": "https://odirouter.ai/model/v1/queue/viduq2-turbo-img2video/requests/task_01hxyz.../response", "status_url": "https://odirouter.ai/model/v1/queue/viduq2-turbo-img2video/requests/task_01hxyz.../status", "cancel_url": "https://odirouter.ai/model/v1/queue/viduq2-turbo-img2video/requests/task_01hxyz.../cancel", "queue_position": 0}| Field | Type | Description |
|---|---|---|
request_id | string | Task ID used for all follow-up operations. |
response_url | string | URL to fetch the final result. |
status_url | string | URL to query task status. |
cancel_url | string | URL to cancel the task. |
queue_position | int | Current queue position. |