Vidu AI Video Generator
POST /api/v1/vidu-ai-video-generator/submit
prompt is required.
Required inputs
promptstring- Text prompt describing the video to generate (max 5000 chars).
Edit the sample inputs for your own task before submitting.
# Set VIDMAGE_IDEMPOTENCY_KEY to a unique value for this task; preserve it for transport retries.
curl -X POST "https://vidmage.ai/api/v1/vidu-ai-video-generator/submit" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Idempotency-Key: ${VIDMAGE_IDEMPOTENCY_KEY}" \
-H "Content-Type: application/json" \
-d '{"prompt":"A glass terrarium grows into a miniature rainforest as the camera slowly circles around it","duration":"5","aspectRatio":"16:9","resolution":"720p","style":"general","movementAmplitude":"auto"}'
# -> { "success": true, "taskId": "...", "creditsConsumed": ... }Parameters and input rules9 fields
| Field | Type | Required | Default | Meaning and limits |
|---|---|---|---|---|
prompt | string | Yes | Not specified | Text prompt describing the video to generate (max 5000 chars). Minimum length: 1 · Maximum length: 5000 |
imageUrl | string | No | Not specified | Optional input image URL. When provided, the task runs in image-to-video mode. No additional field constraint listed. |
imageUrls | string[] | No | Not specified | Ordered input image URLs for reference-to-video mode. The prompt can reference them by their one-based order. Minimum items: 1 · Maximum items: 7 |
duration | string | No | "5" | Video duration in seconds. Values: "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16" · Default: "5" |
aspectRatio | string | No | "16:9" | Output aspect ratio. Values: "4:3", "3:4", "16:9", "9:16", "1:1", "auto" · Default: "16:9" |
resolution | string | No | "720p" | Output resolution tier. Values: "540p", "720p", "1080p" · Default: "720p" |
sound | boolean | No | false | Generate synchronized audio along with the video. No separate sound surcharge is configured. Default: false |
style | string | No | "general" | Choose a general-purpose or anime-oriented visual style. Values: "general", "anime" · Default: "general" |
movementAmplitude | string | No | "auto" | Control the overall amount of motion. Values: "auto", "small", "medium", "large" · Default: "auto" |
Mode-specific fields & media limits
Text To Video rules
| Control | Mode-specific rule |
|---|---|
prompt | Required; minimum 1 characters; maximum 4000 characters |
duration | Values: "1", "2", "3", "4", "5", "6", "7", "8", "9", "10"; mode default: "5" |
aspectRatio | Values: "4:3", "3:4", "16:9", "9:16", "1:1"; mode default: "16:9" |
resolution | Values: "540p", "720p", "1080p"; mode default: "720p" |
style | Values: "general", "anime"; Default: "general" |
movementAmplitude | Values: "auto", "small", "medium", "large"; Default: "auto" |
Image To Video rules
| Control | Mode-specific rule |
|---|---|
prompt | Required; minimum 1 characters; maximum 5000 characters |
duration | Values: "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16"; mode default: "5" |
aspectRatio | Values: "16:9", "9:16", "4:3", "3:4", "1:1", "auto"; mode default: "16:9" |
resolution | Values: "540p", "720p", "1080p"; mode default: "720p" |
sound | Boolean control; default true |
imageUrls | Image input; up to 7 items |
Retrieve the result
Save taskId from the accepted submission and send it to this endpoint:
POST /api/v1/vidu-ai-video-generator/query
Use the same Bearer API key. On completion, read the videoUrl result field.
curl -X POST "https://vidmage.ai/api/v1/vidu-ai-video-generator/query" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "taskId": "TASK_ID_FROM_SUBMIT" }'
# -> { "success": true, "data": { "status": "...", "videoUrl": "https://..." } }