Create Task
POST
/ent/v2/templateQuery Creations
GET
/ent/v2/tasks/{id}/creationsOne-click Solutions
Authorizationstring*Bearer <YOUR_API_KEY>templatestring*short_drama_adsshort_drama_ads_fastshort_drama_ads_turboshort_drama_ads_turbo_fastdurationinteger*Duration of the generated video, in seconds. Options: 4-15, 20, 25, 30
promptstring*Prompt for video generation, ≤2000 characters
imagesstringReference images. Base64 encoding or image URL supported; png/jpeg/jpg/webp supported; aspect ratio <1:4 or 4:1; ≤50MB
video_urlsstringList of public URLs of the reference videos. Array type; even a single video must be wrapped in an array. Currently only 1 video is supported arraylengthlimit:1arraylengthlimit:1.
Example: ["https://scene.vidu.zone/media-asset/xxx.mp4"]
aspect_ratiostringAspect ratio, defaults to 16:9. Options: 9:16, 1:1, 3:4, 4:3, auto, and any other ratio
seedintegerRandom seed; random by default when omitted or passed as 0
bgmbooleanWhether to add background music, defaults to false
payloadstringPassthrough parameter, ≤1048576 characters
watermarkbooleanWhether to add a watermark, defaults to true
wm_positionintegerWatermark position: 1 top-left / 2 top-right / 3 bottom-right defaultdefault / 4 bottom-left
wm_urlstringWatermark image URL; the default watermark is used when omitted
meta_datastringMetadata identifier, a JSON-format string
callback_urlstringCallback address; a POST request is sent when the task status changes. For details, see: Callback Signature Algorithm
resolutionstringVideo resolution. Options: 720p defaultdefault / 1080p supportedinStandardmodeonlysupportedinStandardmodeonly
Authorizationstring*将 {your api key} 替换为您的 token
Token {your api key}idstring*idstring*成片id或子任务id
curl --request POST \
--url 'https://api.vidu.cn/ent/v2/template' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--data '{
"template": "new_drama_ads",
"duration": 20,
"prompt": "【第1段 | 15s】\\n画面:夏日午后,阳光透过纱帘洒进客厅。一个年轻女生坐在沙发上,被蚊子叮了一下,皱眉拍了下手臂。她拿起茶几上的六神花露水,打开瓶盖涂抹在手臂上。镜头推近产品瓶身,绿色液体清透。\\n台词:又被咬了...还好有它。\\n\\n【第2段 | 15s】\\n画面:紧接上一段,女生涂完花露水后深吸一口气,表情舒展。画面切到傍晚,她穿着吊带裙走在街边夜市,手臂干净无红包。最后镜头拉远,她回头微笑,产品logo和slogan浮现在画面右下角。\\n台词:清清凉凉,整个夏天都不怕。六神花露水,夏天的味道。",
"images": [
"https://your-image-host.com/product-reference.jpg"
],
"video_urls": [
"https://your-video-host.com/reference.mp4"
],
"aspect_ratio": "9:16",
"seed": 0,
"bgm": true,
"payload": "string",
"watermark": true,
"wm_position": 0,
"wm_url": "string",
"meta_data": "string",
"callback_url": "string",
"resolution": "720p"
}'{
"task_id": "962914625588830208",
"state": "created",
"template": "short_drama_ads_fast",
"images": ["https://your-image-host.com/product-reference.jpg"],
"prompt": "【第1段 | 15s】\n画面:...\n台词:...",
"seed": 0,
"created_at": "2026-06-12T07:10:51.998043674Z",
"credits": 105,
"payload": "",
"watermark": true,
"video_urls": [],
"audio_urls": []
}curl --request GET \
--url 'https://api.vidu.cn/ent/v2/tasks/{your_id}/creations' \
--header 'Authorization: Token {your api key}' \
--header 'Content-Type: application/json'{
"state": "success",
"err_code": "",
"creations": [
{
"id": "962931804417826816",
"url": "https://video.cf.vidu.com/.../video.mp4?...",
"cover_url": "https://video.cf.vidu.com/.../cover.jpeg?...",
"watermarked_url": "https://video.cf.vidu.com/.../watermarked.mp4?...",
"video": {"duration": 0, "fps": 0, "resolution": null},
"speech_url": "",
"sound_url": "",
"bgm_url": ""
}
],
"id": "962929948530577408",
"credits": 105,
"bgm": false,
"payload": "",
"progress": 100,
"type": "scene",
"model": "vidu",
"resolution": "720p",
"aspect_ratio": "9:16",
"template": "short_drama_ads_fast",
"duration": 20,
"err_msg": ""
}application/jsonResponse fields
task_idstringTask ID generated by Vidu
statestringProcessing status, created when the task is created successfully
imagesstringScene parameter used in this call
promptstringPrompt parameter used in this call
creditsapplication/jsonResponse fields
idstringTask ID
statestringProcessing status: created / queueing / processing / success / failed
err_codestringError code only present when faile
creditsintegerNumber of credits consumed
payloadstringPassthrough parameter
bgmbooleanWhether background music is included
err_msgbooleanError message only present when failed
progressintegerProcessing progress 0\-1000\-100
creationsarrayArray of generation results
idstringCreation ID
urlstringVideo download link signedURLwithanexpirationtimesignedURLwithanexpirationtime
cover_urlstringVideo cover image link
watermarked_urlstringWatermarked video download link
resolutionstringVideo resolution, such as 720p
aspect_ratiostringAspect ratio
templatestringScene template
durationintegerVideo duration secondsseconds
modelstringModel used
typestringTask type
videoobjectVideo metadata including duration/fps/resolution
speech_urlstringSpeech URL
sound_urlstringSound effect URL
bgm_urlstringBackground music URL
Number of credits consumed by this call
templatestring本次调用的场景参数
seedintegerRandom seed parameter used in this call
created_atstringTask creation time ISO8601ISO8601
payloadstringPassthrough parameter passed in this call
watermarkbooleanWhether a watermark is used in this call
video_urlsstringArray of video URLs emptyatcreationemptyatcreation
audio_urlsstringArray of audio URLs emptyatcreationemptyatcreation