Q4-Preview Create Task
POST
https://api.vidu.com/ent/v2/text2videoVidu Q Video Models
Authorizationstring*Replace {your api key} with your API key
Token {your api key}modelstring*viduq4-previewviduq4-preview: Supports audio-video synchronization, supports automatic camera switchingAuthorizationstring*Replace {your api key} with your API key
Token {your api key}idstring*Task ID, returned by the Create Task API upon successful creation
viduq4-previewpromptstringdurationintegerVideo duration.
53 - 16resolutionstringVideo Resolution.
720p540p720p1080p2K4Kaudiobooleanfalse: No direct audio-video generation, outputs silent videotrue: Direct audio-video generation required, outputs video with sound (including dialogue and sound effects)truetruefalseseedinteger0payloadstringcallback_urlstringcallback_url with a POST request. When the video generation task changes its status, Vidu will send a callback request to this URL, containing the latest status of the task. The structure of the callback request content will be the same as the return body of the Get Generation API.aspect_ratiostringviduq4-preview: Defaults to 16:9; supports 1:1, 9:16, 16:9, 3:4, 4:3
watermarkbooleanWhether 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
statestringProcessing 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 (unit: credits)
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
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/text2video' \
--header 'Authorization: Token {your api key}' \
--header 'Content-Type: application/json' \
--data '{
"model": "viduq4-preview",
"prompt": "The astronaut waved and the camera moved up.",
"duration": 5,
"resolution": "720p",
"audio": true,
"seed": 0,
"payload": "string",
"callback_url": "string",
"aspect_ratio": "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/reference2video-1.png"],
"prompt": "Santa Claus and the bear hug by the lakeside.",
"duration": 5,
"seed": random_number,
"resolution": "720p",
"credits":credits_number,
"created_at": "2025-01-01T15:41:31.968916Z"
}curl --request GET \
--url 'https://api.vidu.com/ent/v2/tasks/{your_id}/creations' \
--header 'Authorization: Token {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"
}
]
}