Vidu Q Video Models
Authorizationstring*Token <YOUR_API_KEY>modelstring*viduq4-previewviduq4-preview: Supports generating videos with reference sound; supports intelligent camera switching, achieves superior consistency across multiple camera positions; supports simultaneous audio and video output.viduq4-previewAuthorizationstring*Bearer <YOUR_API_KEY>idstring*Task ID. Returned by the Create Task API upon successful creation.
promptstring*[@subjects_name] to represent subject content. imagesarray*viduq4-preview model supports uploading 1 to 15 images;data:image/png;base64,{base64_encode}audiobooleantrue: Use the audio-video output capability.false: Do not use the audio-video output capability.truetruefalsedurationintegerVideo duration parameter
53 - 16aspect_ratiostringAspect ratio parameter.
16:91:19:1616:93:44:3resolutionstringResolution parameter
720p540p720p1080p2K4Kseedinteger0payloadstringcallback_urlstringwatermarkbooleanWhether to add a watermark
Note: The watermark content is currently fixed and generated by AI. Not added by default.
wm_positionintegerWatermark position, indicating where the watermark appears in the image. Available options:1: Top-left2: Top-right3: Bottom-right4: Bottom-leftDefault: 3
wm_urlstringWatermark content, provided as an image URL.If not specified, the default watermark is used: content generated by AI.
meta_datastringMetadata identifier, a JSON-format string, pass-through field. You can use a custom format or the example format, as shown below:{"Label": "your_label","ContentProducer": "yourcontentproducer","ContentPropagator": "your_content_propagator","ProduceID": "yourproductid", "PropagateID": "your_propagate_id","ReservedCode1": "yourreservedcode1", "ReservedCode2": "your_reserved_code2"}When this parameter is empty, the metadata identifier generated by Vidu is used by default.
application/jsonResponse fields
idstringTask ID
statestring*Processing state, accepted values:
created created successfullyqueueing task in queueprocessing processingapplication/jsonResponse fields
task_idstringTask ID generated by Vidu
statestringProcessing state, accepted values:
created created successfullyqueueing task in queueprocessing processingsuccessfailed task failederr_codestringError code, see the error code table for details
creditsintegerThe number of credits consumed by this task
payloadstringThe payload (pass-through) parameter passed in for this task call
creationsarrayGeneration results
idstringGeneration ID, used to identify different creations
urlstringCreation URL, valid for 24 hours
cover_urlstringCreation cover, valid for 24 hours
watermarked_urlstringWatermarked creation URL, valid for 24 hours
bgmbooleanWhether background music was used for this task
off_peakbooleanWhether off-peak mode was used for this task
successfailed task failedmodelstringThe model name used for this call
promptstringThe prompt parameter used for this call
imagesstringThe image parameter used for this call
durationintegerThe video duration parameter used for this call
seedintegerThe random seed parameter used for this call
watermarkbooleanWhether a watermark was used for this task
resolutionstringThe resolution parameter used for this call
payloadstringThe transparent transmission parameter passed in this call
creditsintegerThe credits consumed by this call
created_atstringTask creation time
curl --request POST \
--url 'https://api.vidu.com/ent/v2/start-end2video' \
--header 'Authorization: Token <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--data '{
"model": "viduq4-preview",
"prompt": "The camera zooms in on the bird, which then flies to the right. The bird flight is smooth and natural, with a red light effect following and surrounding it from behind.",
"images": [
"https://prod-ss-images.s3.cn-northwest-1.amazonaws.com.cn/vidu-maas/template/startend2video-1.jpeg",
"https://prod-ss-images.s3.cn-northwest-1.amazonaws.com.cn/vidu-maas/template/startend2video-2.jpeg"
],
"audio": true,
"duration": 5,
"aspect_ratio": "16:9",
"resolution": "720p",
"seed": 0,
"payload": "string",
"callback_url": "string",
"watermark": true,
"wm_position": 0,
"wm_url": "string",
"meta_data": "string"
}'{
"task_id": "your_task_id_here",
"state": "created",
"model": "viduq4-preview",
"images": ["https://prod-ss-images.s3.cn-northwest-1.amazonaws.com.cn/vidu-maas/template/startend2video-1.jpeg","https://prod-ss-images.s3.cn-northwest-1.amazonaws.com.cn/vidu-maas/template/startend2video-2.jpeg"],
"prompt": "The camera zooms in on the bird, which then flies to the right. The bird flight is smooth and natural, with a red light effect following and surrounding it from behind.",
"duration": 5,
"seed": random_number,
"resolution": "1080p",
"movement_amplitude": "auto",
"payload":"",
"off_peak": false,
"credits":credits_number,
"created_at": "2025-01-01T15:41:31.968916Z"
}curl --request GET \
--url 'https://api.vidu.com/ent/v2/tasks/string/creations' \
--header 'Authorization: Bearer <YOUR_API_KEY>'{
"id":"your_task_id",
"state": "success",
"err_code": "",
"credits": 4,
"payload": "",
"creations": [
{
"id": "your_creations_id",
"url": "your_generated_results_url",
"cover_url": "your_generated_results_cover_url",
"watermarked_url": "your_generated_results_watermarked_url"
}
]
}