Skip to main content
POST
Note for users in mainland China: Please use https://toapis.cn as the API endpoint (Base URL). Replace https://toapis.com with https://toapis.cn in the examples in this document.
  • Async task API, returns a task ID after submission
  • Supported model: viduq4-preview
  • Two generation modes:
    • First-frame image-to-video: one image as the first frame
    • Reference-to-video: multiple reference images, optional reference audio
Use publicly accessible image and audio URLs. Do not pass base64 data in image_urls, reference_images, or sounds; upload local files with the Upload Image API first.

Authorization

string
required
All endpoints require Bearer Token authentication.

Request Parameters

string
required
Model name, fixed to viduq4-preview.
string
required
Text prompt describing subject, motion, scene, camera movement, and style.
string[]
Image URL array. The mode is determined by video_generation_mode and image count:
  • First-frame mode (default): pass exactly 1 image URL in image_urls. The image is used as the first frame.
  • Reference mode: set video_generation_mode to reference_images_to_video and pass the reference images in image_urls (or reference_images).
Example: ["https://example.com/first-frame.jpg"]
string
Generation mode selector.Options:
  • reference_images_to_video - multi-reference generation; multiple image_urls are treated as reference images
Omit for first-frame image-to-video. Requests with multiple images, reference_images, or sounds are automatically routed to reference-to-video.
integer
default:"5"
Video duration in seconds, 3 to 16.
string
default:"720p"
Video resolution.Options:
  • 540p
  • 720p
  • 1080p
  • 2K
  • 4K
string
Video aspect ratio, used in reference mode.Options: 16:9, 9:16, 4:3, 3:4, 1:1
boolean
default:"true"
Whether to generate audio for the video.
boolean
default:"false"
Whether to add a watermark to the generated video.
integer
Random seed for more reproducible results with the same parameters.
object
Extended parameters for fields supported by the upstream API but not exposed as top-level fields.

Mode Selection

Billing Dimensions

Vidu Q4 Preview is billed per second of generated video, priced by resolution:
  • 540p / 720p / 1080p / 2K / 4K - higher resolutions cost more per second

Response

string
Task ID for querying task status.
string
Object type, usually generation.task.
string
Model used for the request.
string
Task status: queued, in_progress, completed, or failed.
integer
Task creation timestamp.

Examples

First-Frame Image-to-Video

Reference-to-Video

Reference-to-Video with Reference Audio

With Prompt Expansion and Watermark

Video generation is asynchronous. Use the Get Video Task Status endpoint to query progress and results.