VIDU Q2 template to video API, supports various effect scene templates, generates effect video content based on templates and input images.
This is an asynchronous API; only the task_id will be returned. You should use the task_id to request the Task Result API to retrieve the video generation results.
Supports: application/json
Bearer authentication format, for example: Bearer {{API Key}}.
Request Body
Whether to add background music to the generated video. Default: false. When true, the system will automatically select appropriate music from the preset BGM library and add it; when not passed or false, no BGM is added. BGM duration is unlimited, the system automatically adapts to video duration
Exotic princess effect exclusive parameter. Only available when template is exotic_princess. Default: autoOptional values: auto, denmark, uk, africa, china, mexico, switzerland, russia, italy, korea, thailand, india, japan
Random seed. When not passed or passed as 0, a random number will be used instead; manually set to use the specified seed
Beast companion effect exclusive parameter. Only available when template is beast_companion. Default: autoOptional values: auto, bear, tiger, elk, snake, lion, wolf
Input image list. The model will generate video based on the images passed in this parameter. Supports image Base64 encoding or image URL (ensure accessibility). Supports png, jpeg, jpg, webp formats. Image aspect ratio must be less than 1:4 or 4:1, size not exceeding 50MB. Base64 decoded byte length must be less than 10M, and encoding must include appropriate content type string, e.g.: data:image/png;base64,Array length: 1 - unlimited
Text prompt, text description for generating video. Note: When template=subject_3 or pubg_winner_hit, prompt is not required
Watermark content, image URL. When not passed, default watermark is used: content generated by AI
Passthrough parameter, no processing, data transmission only. Maximum 1048576 charactersLength limit: 0 - 1048576
Scene template parameter. Different scene templates correspond to different call parameters. Common templates: subject_3 (character costume change), pubg_winner_hit (PUBG effect), exotic_princess (exotic princess), beast_companion (beast companion), etc. Please refer to https://platform.vidu.cn/docs/templates for details
Metadata identifier, JSON format string, passthrough field. You can customize the format or use the example format. When this parameter is empty, the metadata identifier generated by vidu is used by default. Example format:{
"Label": "your_label",
"ContentProducer": "your_content_producer",
"ContentPropagator": "your_content_propagator",
"ProduceID": "your_product_id",
"PropagateID": "your_propagate_id",
"ReservedCode1": "your_reserved_code1",
"ReservedCode2": "your_reserved_code2"
}
Whether to add watermark. true: add watermark; false: do not add watermark. Currently watermark content is fixed, content generated by AI, not added by default. You can query watermarked video content via watermarked_url parameter
Watermark position, indicates where the watermark appears in the image. 1: top-left; 2: top-right; 3: bottom-right; 4: bottom-left. Default is 3Optional values: 1, 2, 3, 4
Video aspect ratio. Default 16:9, options: 16:9, 9:16. Different templates support different options, see template description for detailsOptional values: 16:9, 9:16
Response
Use the task_id to request the Task Result API to retrieve the generated outputs.
Provider request ID (optional)