Skip to content
English

Vidu Q4 Preview Reference to Video API

POST Base URL: https://api.hiapi.ai /v1/tasks

Image, video, and audio models are called through theUnified Async API POST /v1/tasks endpoint; only the input fields differ (see input parameters below).

Model summary

Model vidu-q4-preview/reference-to-video
Capability Reference images + voice references for consistency
Resolution 540p / 720p / 1080p / 2K / 4K
Duration 3-16 seconds

1-15 reference images plus up to 3 voice references keep characters, scenes and voices consistent in a 3-16 second video up to 4K.

Production guidance

Calling the API
  • Reference inputs by order: reference image 1, reference audio 1.
  • Reference audio is MP3 only, 3-12 seconds per clip; keep audio on for talking characters.
  • Use callback.url for task notifications; read the task object from data in query responses and directly from the callback body.
  • Artifact URLs expire; copy files you need to keep into persistent storage.

Best suited for

Character consistency

The same character stays consistent in new scenes and actions.

reference_image_urls
Talking characters

Lock a voice with reference audio; the character speaks the lines.

reference_audio_urls

Request parameters

model string required

Model ID.

example vidu-q4-preview/reference-to-video
input object required

Reference-to-video parameters.

prompt string required

Describe the video and reference inputs by order, e.g. "the character in reference image 1 ... speaks in the voice of reference audio 1". Up to 20,000 characters.

reference_image_urls string[] required

Array of 1-15 reference image URLs keeping characters, scenes and objects consistent. JPG/JPEG/PNG/WEBP, up to 50MB each; at least 128×128, aspect ratio 1:4-4:1.

reference_audio_urls string[] optional

Array of up to 3 voice references. MP3 only, 3-12 seconds and up to 50MB each.

duration integer optional

Output duration in seconds. Accepts integers from 3 to 16.

default 5
resolution enum optional

Output resolution.

default 720p enum: 540p720p1080p2k4k
audio boolean optional

Generate dialogue and sound effects synchronized with the picture.

default true
aspect_ratio enum optional

Output aspect ratio.

default 16:9 enum: 16:99:161:14:33:4
callback object optional

Sends a notification when the task succeeds or fails; read the task object from data in query responses and directly from the callback body.

url string required

HTTPS URL that receives task success or failure notifications.

example https://your-domain.com/hiapi/callback
when enum optional

Triggers when the task succeeds or fails.

default final enum: final

Getting the result

  1. Read data.taskId from the create-task response.
  2. Wait for the callback or query GET /v1/tasks/:id; polling puts the task under data.
  3. When status=success, read the video URL from output type=video; a callback reads output directly.

FAQ

How many reference images at most?

Up to 15. Reference inputs by order in the prompt: reference image 1, reference image 2 ... reference audio 1.

What are the reference audio requirements?

MP3 only, 3-12 seconds and up to 50MB per clip, up to 3 clips.

Does turning audio off change the price?

No. Billing is per second, driven by resolution and duration; the audio switch is not priced.

Difference from image-to-video?

Image-to-video takes one first frame and follows its ratio; reference-to-video takes 1-15 images plus up to 3 voice references, with the frame set by aspect_ratio.

Next steps