Vidu video API
Generation modes, asset requirements, per-second pricing and asynchronous queries for Vidu Q3, Mix, Pro, Turbo and Q4 Preview.
Use an Official Group API key. The model catalog shows model availability and current prices.
Models and modes
| Public model ID | Supported modes | Duration (seconds) | Resolution | Images |
|---|---|---|---|---|
viduq3 | Reference-to-video | 3–16 | 540p, 720p, 1080p | 1–7 |
viduq3-mix | Reference-to-video | 1–16 | 720p, 1080p | 1–7 |
viduq3-pro | Text, first frame, first and last frames | 1–16 | 540p, 720p, 1080p | 0–2 |
viduq3-turbo | Text, first frame, first and last frames | 1–16 | 540p, 720p, 1080p | 0–2 |
viduq4-preview | First frame, reference images and reference audio | 3–16 | 540p, 720p, 1080p, 2K, 4K | 1–15 |
All models generate a single 5-second 720p video by default. Resolution is an output tier; in image-to-video the actual pixel width and height adjust to the asset ratio. Q3 and Mix require reference images and cannot be used as text-to-video models. Q4 does not support text-only generation or first and last frames.
Submit a request
Use JSON POST /v1/videos/generations. Set your own APIPOOL_API_KEY first:
curl https://app.apipool.dev/v1/videos/generations \
-H "Authorization: Bearer $APIPOOL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "viduq3-pro",
"prompt": "A kitten slowly raises its head, static camera, soft daylight.",
"duration": 3,
"resolution": "720p",
"aspect_ratio": "16:9",
"audio": true
}'After the request is accepted you still need to query the task; acceptance does not mean the video has been generated. Save the task id from the response and query it with the same key:
TASK_ID="REPLACE_WITH_THE_TASK_ID_FROM_SUBMISSION"
curl "https://app.apipool.dev/v1/tasks/$TASK_ID" \
-H "Authorization: Bearer $APIPOOL_API_KEY"Query every 5–10 seconds. Keep waiting on submitted, submission_unknown, processing and meter_pending; on completed, get the video links and save them promptly; on failed, read the error reason. If a query fails or submission times out, do not resubmit right away, to avoid duplicate generation and charges. Temporary result links expire.
Common parameters
| Parameter | Description |
|---|---|
model | A public ID from the table above, entered exactly |
prompt | Required for text and reference modes; up to 2000 characters for Pro/Turbo, 5000 for Q3/Mix, 20000 for Q4 |
duration | Integer seconds within the model's range, default 5 |
resolution | A resolution from the table above, case-insensitive, default 720p |
image_urls | Array of publicly accessible PNG, JPEG or WebP image URLs |
aspect_ratio | 16:9, 9:16, 4:3, 3:4, 1:1; applies to text and reference modes only |
audio | Defaults to true for Pro/Turbo/Q4; set false for a silent video. Q3/Mix do not accept this parameter |
seed | Optional integer random seed; the same seed does not guarantee identical results |
stream, batch n, generate_audio, custom callbacks and additional paid moderation parameters are not supported. Use audio to toggle the audio track.
Pro/Turbo first frame and first and last frames
No image means text-to-video; 1 image is the first frame; with 2 images, the first is the first frame and the second is the last frame. Image-to-video and first and last frame modes cannot specify aspect_ratio; the images determine the ratio.
{
"model": "viduq3-turbo",
"prompt": "The kitten moves from lowering its head to looking up, with smooth, natural motion.",
"image_urls": [
"https://your-cdn.example/start.png",
"https://your-cdn.example/end.png"
],
"duration": 3,
"resolution": "1080p",
"audio": false
}Replace all example asset URLs with real, accessible addresses.
Q3/Mix reference images
Send 1–7 images in image_urls; the prompt is required. Images must be at least 128×128, with an aspect ratio between 1:4 and 4:1, and no larger than 50MB each. Mix does not support 540p; Q3 does not support 1–2 seconds.
Q4 first frame and reference assets
- A single image without a role and without reference audio generates from the first frame; the prompt can be omitted.
- Multiple images, the
reference_image/referencerole, or reference audio use reference mode; the prompt is required. image_urlsandimage_with_rolestogether accept at most 15 images. Each image is at most 50MB; Q4 also accepts image Data URLs, but the whole request body must stay within the platform size limit, so public URLs are recommended.first_frame_imageor thefirst_framerole marks an explicit first frame and cannot be combined with other images, reference roles or reference audio.audio_urlsandaudio_urltogether accept at most 3 clips, in reference mode only. Audio must be MP3, 3–12 seconds per clip and no larger than 50MB. Assets that cannot be downloaded, or audio with an invalid format or duration, cause the task to fail.- Q4 does not accept
last_frame_imageor thelast_framerole. In first frame mode the image determines the ratio, andaspect_ratiohas no effect.
Example of a single image in reference mode:
{
"model": "viduq4-preview",
"prompt": "The kitten in the reference image turns its head naturally, with soft ambient sound.",
"image_with_roles": [
{ "url": "https://your-cdn.example/cat.png", "role": "reference_image" }
],
"audio_urls": ["https://your-cdn.example/ambient.mp3"],
"duration": 3,
"resolution": "720p",
"aspect_ratio": "16:9"
}Pricing
Unit: US dollars per second. The cost is the per-second price for the resolution multiplied by the submitted duration. The container duration of the video file may include a small encoding margin; generation time is not billed.
| Model | 540p | 720p | 1080p | 2K | 4K |
|---|---|---|---|---|---|
| Q3 | 0.0425 | 0.085 | 0.10625 | — | — |
| Q3 Mix | — | 0.10625 | 0.1275 | — | — |
| Q3 Pro | 0.0595 | 0.1275 | 0.136 | — | — |
| Q3 Turbo | 0.034 | 0.051 | 0.0595 | — | — |
| Q4 Preview | 0.0476 | 0.0969 | 0.1088 | 0.17255 | 0.3536 |
For example, a 3-second 720p Q4 Preview video costs US$0.2907. Q4 first frame and reference modes cost the same, toggling the audio track does not change the price, and reference images and reference audio carry no extra charge. The model detail page shows the price in effect.
FAQ
For parameter errors, first check the model's minimum duration, resolution, number of images and mutually exclusive modes. For insufficient balance, add funds first. If asset downloads fail, use publicly accessible URLs and avoid addresses that require sign-in or short-lived tunnels. While a task is still processing, keep querying the existing task instead of resubmitting.