Vidu Q4 Preview Reference API for Consistent Characters and Voices

Vidu Q4 Preview Reference turns 1-15 reference images into a video that keeps those subjects consistent. POST to /api/v1/videos/generations with model: viduq4_preview_reference, a prompt that names images as @1, @2 …, and image_urls. Add up to 3 reference voice clips in ref_audios. Output has native audio, 3-16 seconds, up to 4K.
Get API Key
Casting wall with character portraits and a microphone in a studio

Subjects, Settings and Voices from Your References

Name references in the prompt

image_urls holds 1-15 images (png / jpeg / jpg / webp, up to 50MB each). Refer to them as @1, @2 … in array order, for example a character from @1 in the location from @2.
Numbered index cards with sketches of a barista and a cafe

Guide voices with ref_audios

Optionally pass up to 3 reference audio URLs, such as a voice sample or a line of dialogue. Each must be an mp3 of 3-12 seconds.
Audio recorder and headphones beside a script

Pick the frame shape

ratio accepts 16:9 (default), 9:16, 1:1, 4:3 or 3:4; resolution runs from 540p to 4K.
Five blank canvases of different shapes on a gallery wall
Prompt and reference images are required; audio references are optional.

Vidu Q4 Preview Reference Request Fields and Limits

model

Always viduq4_preview_reference.

prompt (required)

Describes the video; refer to images as @1, @2 … in the order of image_urls.

image_urls (required)

1-15 reference image URLs, png / jpeg / jpg / webp, up to 50MB each.

ref_audios

Optional, up to 3 URLs. Each clip must be an mp3 of 3-12 seconds.

duration, resolution, ratio

duration: 3-16 s, default 5. resolution: 540p, 720p (default), 1080p, 2K, 4K. ratio: 16:9 (default), 9:16, 1:1, 4:3, 3:4.

generate_audio and rejected fields

generate_audio defaults to true. image_url and image_end_url are rejected; use viduq4_preview for first-frame video.
Per second of generated video. References and audio do not add to the price.

Vidu Q4 Preview Reference API Pricing

540p / 720p / 1080p

2.925 tokens ($0.0585), 6.175 tokens ($0.1235) and 7.8 tokens ($0.156) per second.

2K / 4K

12.35 tokens ($0.247) and 25.35 tokens ($0.507) per second.

References are free

The number of reference images or audio clips, and generate_audio, do not change the price. It matches viduq4_preview.

Example

An 8-second 720p video is 49.4 tokens ($0.988); a 5-second 1080p video is 39 tokens ($0.78).

Integrate the Vidu Q4 Preview Reference API

1

1. Create an API key

Generate a key at /keys and send it as Authorization: Bearer <key>.
2

2. Order the references

Put character, product and location images in image_urls; the first is @1. Add mp3 voice clips to ref_audios if needed.
3

3. Submit

POST {"model": "viduq4_preview_reference", "prompt": "The barista from @1 greets the camera in front of @2", "image_urls": […], "ratio": "9:16"} to /api/v1/videos/generations.
4

4. Collect the result

Store img_uuid, then poll GET /api/v1/jobs/detail or wait for your custom_callback_url.
Create an API Key
Series and brand work where the same subject must appear again and again.

What Developers Build with Vidu Q4 Preview Reference

Recurring mascots and characters

Keep a brand character recognizable across many short videos by reusing its reference images.

Product-in-scene videos

Combine a product image with a location image and describe the action between them.

Voiced short episodes

Supply a voice sample in ref_audios so a character's lines sound consistent between clips.

Multi-format social cuts

Render the same references at 9:16, 1:1 or 16:9 for different feeds.
Endpoint, references, audio and pricing.

Vidu Q4 Preview Reference API FAQ

What is the Vidu Q4 Preview Reference API endpoint?

POST https://api.goenhance.ai/api/v1/videos/generations with model: viduq4_preview_reference.

How do I refer to a specific image?

Use @1, @2 … in the prompt, numbered by position in image_urls.

What audio can I send as reference?

Up to 3 mp3 clips of 3-12 seconds each in ref_audios.

Do more references cost more?

No. Price depends only on resolution and duration.

Can I pass a first-frame image?

No. image_url and image_end_url are rejected here; use viduq4_preview.

What output sizes are available?

540p, 720p, 1080p, 2K or 4K, at 16:9, 9:16, 1:1, 4:3 or 3:4, for 3 to 16 seconds.

Start Building with the Vidu Q4 Preview Reference API