Vidu Text-to-Video
Use `POST /vidu/ent/v2/text2video` to submit a pure-text video generation task.
https://zx1.deepwl.net/vidu/ent/v2/text2videocurl -X POST https://zx1.deepwl.net/vidu/ent/v2/text2video \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '
{
"model": "viduq3-pro",
"style": "general",
"prompt": "A cat chasing butterflies on the grass",
"duration": 5,
"seed": 0,
"aspect_ratio": "16:9",
"resolution": "720p",
"bgm": false,
"audio": true,
"off_peak": false,
"watermark": false
}'{
"task_id": "48038932-0ff5-4251-8b4b-7a76c09fd114",
"status": "processing",
"created_at": 1774494511
}The official Vidu text-to-video API, submitted as application/json, supports pure-text video generation. After a successful submission, the task task_id and status are returned; use Query Task to poll for results.
Supported Models
viduq3-pro: Efficiently generates high-quality audio and video content, making the video more vivid, more realistic, and more three-dimensionalviduq2: Latest modelviduq1: Clear image quality, smooth transitions, and stable camera movement
Request Headers
Authorizationstring必填Authentication header. Uses a Bearer token, e.g. Bearer YOUR_API_KEY.
Content-Typestring必填Request content type, must be application/json.
Request Body
modelstring必填Model name. Supported viduq3-pro (efficiently generates high-quality audio and video content), viduq2 (latest model), viduq1 (clear image quality, smooth transitions, and stable camera movement).
stylestringStyle. general: general style; anime: anime style. Note: this parameter does not take effect when using q2 or q3 models.
promptstring必填Text prompt. The text description for video generation, supporting Chinese and English.
durationintegerVideo duration (seconds). viduq2: default 5 seconds, optional 1-10 seconds; other models use the default value.
seedintegerRandom seed. If not provided or set to 0, a random number is used; if set manually, the specified seed is used.
aspect_ratiostringAspect ratio. Optional values: 16:9 (default), 9:16, 3:4, 4:3, 1:1. Note: 3:4 and 4:3 are only supported by q2 and q3 models.
resolutionstringResolution. The default value depends on the model and video duration. viduq2 (1-10 seconds): default 720p, optional 540p, 720p, 1080p.
bgmbooleanWhether to add background music. true: the system will automatically select suitable music from the preset BGM library and add it; false: do not add BGM. Note: the BGM parameter does not take effect when the duration of the q2 model is 9 or 10 seconds; it does not take effect in the q3 model.
audiobooleanAudio-video direct output (supported only by q3 models). true: audio-video direct output is required, outputting a video with dialogue and background sound; false: audio-video direct output is not required, outputting a silent video.
off_peakbooleanOff-peak mode. true: generate videos during off-peak periods, with lower points cost; false: generate videos immediately.
watermarkbooleanWhether to add a watermark. true: add a watermark; false: do not add a watermark. Note: the watermark content is fixed as "Content generated by AI", and it is not added by default.
wm_positionintegerWatermark position. 1: top-left; 2: top-right; 3: bottom-right; 4: bottom-left.
wm_urlstringWatermark image URL. If not provided, the default watermark is used.
payloadstringPass-through parameter. No processing is performed; data transmission only.
meta_datastringMetadata identifier. JSON-formatted string, pass-through field.
Request Examples
Response Examples
Response Fields
task_idstringTask ID, used to query task status.
statusstringTask status. Optional values: processing (in progress), failed (failed), completed (completed).
created_atintegerCreation timestamp (Unix timestamp).