Skip to main content
POST

Authorizations

Authorization
string
header
required

API Key authentication. Format: Bearer YOUR_API_KEY.

Body

application/json

Vidu Q3 Drama short-play request. Field names are passed through to Vidu as-is. Note the asset image field is image_uri, not image_url.

script_name
string
required

Episode name (max 20 characters)

Required string length: 1 - 20
Example:

"City Sunrise"

script_content
string
required

Script content (20-5000 characters; Vidu limits Chinese to <=2000, English to <=5000). To hint an approximate length, include a phrase like 'generate a duration of XX seconds'.

Required string length: 20 - 5000
Example:

"A young man walks through the city at night, recalls his childhood hometown, and finally watches the sunrise from a rooftop."

assets
object[]
required

Reference assets (1-14; 3-10 recommended). One asset maps to exactly one image.

Required array length: 1 - 14 elements
upload_image_url
string

Optional user-provided staging reference image (URL or base64 data URI)

Minimum string length: 1
placement
enum<string>
default:upload

Staging mode. panorama/step only take effect when upload_image_url is empty.

Available options:
upload,
panorama,
step
Example:

"upload"

quality
enum<string>
default:high

Generation quality

Available options:
standard,
high
Example:

"high"

duration
integer
default:8

Video duration in seconds (8-12). Defaults to 8 when omitted; value 0/auto is not supported.

Required range: 8 <= x <= 12
Example:

8

resolution
enum<string>
default:1080p

Output resolution (1080p only)

Available options:
1080p
Example:

"1080p"

aspect_ratio
enum<string>
default:9:16

Video aspect ratio

Available options:
16:9,
9:16
Example:

"9:16"

style
string
default:真人写实

Video style (max 30 characters, no punctuation). Defaults to realistic live-action.

Maximum string length: 30
Example:

"真人写实"

Response

Task submitted successfully

code
integer
required

Response code, 0 indicates success

Example:

0

message
string
required

Response message

Example:

"success"

data
object
required

Detailed data about the submitted asynchronous task.