Authentication
authorization string required
All APIs require authentication via Bearer Token.
Get API Key:
Visit API Key Management Page to get your API Key
Usage:
Add to request header:
Authorization: Bearer YOUR_API_KEY
Parameters
model string required
Model ID to use for the request.
Value: vidu_q2
prompt string required
Text prompt for video generation. Max 2000 characters.
style string
Output video style.
duration integer
Video duration in seconds.
Range: 1 - 10
resolution string
Video resolution.
Options: 540p, 720p, 1080p
seed integer
Random seed for reproducibility. 0 means random.
Default: 0
aspect_ratio string
Video aspect ratio.
Options: 16:9, 9:16, 3:4, 4:3, 1:1
bgm boolean
Add background music to video.
Error Codes
| Code | Description |
|---|---|
| 401 | API key is missing or invalid |
| 403 | Insufficient balance or permission denied |
| 429 | Rate limit exceeded |
| 500 | Internal server error |