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 IDSupported modesDuration (seconds)ResolutionImages
viduq3Reference-to-video3–16540p, 720p, 1080p1–7
viduq3-mixReference-to-video1–16720p, 1080p1–7
viduq3-proText, first frame, first and last frames1–16540p, 720p, 1080p0–2
viduq3-turboText, first frame, first and last frames1–16540p, 720p, 1080p0–2
viduq4-previewFirst frame, reference images and reference audio3–16540p, 720p, 1080p, 2K, 4K1–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

ParameterDescription
modelA public ID from the table above, entered exactly
promptRequired for text and reference modes; up to 2000 characters for Pro/Turbo, 5000 for Q3/Mix, 20000 for Q4
durationInteger seconds within the model's range, default 5
resolutionA resolution from the table above, case-insensitive, default 720p
image_urlsArray of publicly accessible PNG, JPEG or WebP image URLs
aspect_ratio16:9, 9:16, 4:3, 3:4, 1:1; applies to text and reference modes only
audioDefaults to true for Pro/Turbo/Q4; set false for a silent video. Q3/Mix do not accept this parameter
seedOptional 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 / reference role, or reference audio use reference mode; the prompt is required.
  • image_urls and image_with_roles together 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_image or the first_frame role marks an explicit first frame and cannot be combined with other images, reference roles or reference audio.
  • audio_urls and audio_url together 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_image or the last_frame role. In first frame mode the image determines the ratio, and aspect_ratio has 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.

Model540p720p1080p2K4K
Q30.04250.0850.10625——
Q3 Mix—0.106250.1275——
Q3 Pro0.05950.12750.136——
Q3 Turbo0.0340.0510.0595——
Q4 Preview0.04760.09690.10880.172550.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.