Model insights

Vidu Q4 on DreamTo: what it does and how to call it

Vidu Q4 Preview turns a first frame or up to 15 reference images into 3 to 16 second videos with synced audio. Modes, parameters, limits and a first request.

A lime-yellow night train crossing a stone viaduct in front of violet mountains
On this page

Vidu Q4 turns still images into video with dialogue and sound effects generated alongside the picture, and it can cut between camera angles inside one clip. It takes either one first-frame image or 1 to 15 reference images (optionally with up to 3 voice clips) and returns 3 to 16 seconds of video at 540P to 4K.

On DreamTo the model ID is viduq4. It is the preview of Vidu Q4 from ShengShu Technology, which will refine the final release based on feedback on the preview. This guide covers the two input modes, what the model does not support, a first request you can run with a DreamTo API key, the parameters, prompting and price.

What Vidu Q4 generates#

Vidu Q4 Preview is built for performances: expressions, motion and dialogue. Three behaviours shape how you use it:

  • Audio comes with the picture. Dialogue and sound effects are generated together with the video by default. Send generate_audio: false for a silent clip.
  • Shots change inside a clip. The model switches camera shots on its own and keeps characters and scenes consistent across them.
  • Output is 24 fps. Clips run 3 to 16 seconds at 540P, 720P, 1080P, 2K or 4K.

What it does not support#

Check these before you design a pipeline around the model:

  • No text-to-video. Every request must carry image_url or reference_image_urls. If your workflow starts from a prompt alone, generate a first frame with an image model first, or pick a different video model from the model list.
  • No first-and-last-frame mode. You can set the opening frame, not the closing one.
  • No mixing of the two modes. image_url and reference_image_urls are mutually exclusive, and reference_audio_urls only works together with reference_image_urls.

Image-to-video or reference-to-video#

ModeYou sendFrame shapePrompt
Image-to-videoimage_url (exactly one image)Follows the imageOptional
Reference-to-videoreference_image_urls (1 to 15)Set by aspect_ratioRequired
Reference-to-video with voicereference_image_urls plus reference_audio_urls (up to 3 mp3 clips)Set by aspect_ratioRequired

Use image-to-video when you already have the exact picture you want to animate: a product shot, a storyboard keyframe, a portrait. The image sets the opening composition and the aspect ratio of the output.

Use reference-to-video when the story spans several shots and the same character or place has to hold across each cut. The reference images define who and where, the prompt describes the scene, and aspect_ratio sets the frame. One of the examples on the model page does this with two references, a fox character and a lighthouse, across four shots.

Add voice references when a character needs a specific voice. Each clip must be an mp3 of 3 to 12 seconds.

Make your first request#

The API is asynchronous. You create a task, poll it, and download the file from video_url when the status is completed. Both endpoints live under https://api.dreamto.ai, and every request carries your API key as a Bearer token (see Authentication). The body is {"model": "viduq4", "input": {...}}, with every generation parameter inside input.

Create the task:

bash
curl -X POST "https://api.dreamto.ai/v1/videos" \  -H "Authorization: Bearer $DREAMTO_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "model": "viduq4",    "input": {      "prompt": "The girl smiles and gently strokes the fox in a soft breeze, cinematic",      "image_url": "https://your-cdn.example.com/first-frame.png",      "resolution": "1080P",      "duration": 5    }  }'

The response contains task_id, status, model, created_at and request_id. Query the task with the ID:

bash
curl "https://api.dreamto.ai/v1/videos/job_02b88886c4fda5be35baff61" \  -H "Authorization: Bearer $DREAMTO_API_KEY"

A finished task looks like this:

json
{  "task_id": "job_02b88886c4fda5be35baff61",  "status": "completed",  "model": "viduq4",  "created_at": 1794846663,  "completed_at": 1794847019,  "request_id": "req_6a9a539502118ba1c33f1bfc",  "video_url": "https://cdn.example.com/videos/02b88886c4fda5be35baff61.mp4"}

Status moves through queued, in_progress, then completed or failed. A failed task carries the reason in error.message and is not charged.

A complete script in Python#

This version creates the task, polls every 10 seconds and downloads the result. Generation takes several minutes, so poll every 10 to 15 seconds and no faster.

python
import osimport timeimport requestsBASE_URL = "https://api.dreamto.ai"HEADERS = {"Authorization": f"Bearer {os.environ['DREAMTO_API_KEY'].strip()}"}payload = {    "model": "viduq4",    "input": {        "prompt": "The girl smiles and gently strokes the fox in a soft breeze, cinematic",        "image_url": "https://your-cdn.example.com/first-frame.png",        "resolution": "1080P",        "duration": 5,    },}resp = requests.post(f"{BASE_URL}/v1/videos", headers=HEADERS, json=payload, timeout=60)resp.raise_for_status()task = resp.json()task_id = task["task_id"]while task["status"] not in ("completed", "failed"):    time.sleep(10)    poll = requests.get(f"{BASE_URL}/v1/videos/{task_id}", headers=HEADERS, timeout=60)    poll.raise_for_status()    task = poll.json()if task["status"] == "completed":    video = requests.get(task["video_url"], timeout=300)    with open(f"{task_id}.mp4", "wb") as f:        f.write(video.content)    print("saved", f"{task_id}.mp4")else:    print("failed:", task.get("error"))

Save the file to your own storage: video_url stays valid for 7 days after the task completes. The .strip() on the key is deliberate, because a key read with surrounding whitespace is treated as invalid.

Reference images, voice clips and silent output#

For reference-to-video, send a prompt and a list of reference images. The prompt is required here, and aspect_ratio sets the frame.

bash
curl -X POST "https://api.dreamto.ai/v1/videos" \  -H "Authorization: Bearer $DREAMTO_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "model": "viduq4",    "input": {      "prompt": "The girl and the fox sit by a campfire at night while the camera cuts between them",      "reference_image_urls": [        "https://your-cdn.example.com/girl.png",        "https://your-cdn.example.com/fox.png"      ],      "resolution": "720P",      "duration": 8,      "aspect_ratio": "9:16"    }  }'

To give a character a voice, add up to three mp3 clips:

bash
curl -X POST "https://api.dreamto.ai/v1/videos" \  -H "Authorization: Bearer $DREAMTO_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "model": "viduq4",    "input": {      "prompt": "The girl talks to the fox with the voice of the reference audio and the fox tilts its head in reply",      "reference_image_urls": [        "https://your-cdn.example.com/girl.png",        "https://your-cdn.example.com/fox.png"      ],      "reference_audio_urls": [        "https://your-cdn.example.com/voice.mp3"      ],      "resolution": "720P",      "duration": 5,      "aspect_ratio": "16:9"    }  }'

The remaining options work in either mode. This image-to-video request turns audio off, lets the model optimise the prompt and fixes the seed:

bash
curl -X POST "https://api.dreamto.ai/v1/videos" \  -H "Authorization: Bearer $DREAMTO_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "model": "viduq4",    "input": {      "prompt": "The fox runs through the snow and the camera follows",      "image_url": "https://your-cdn.example.com/first-frame.png",      "resolution": "540P",      "duration": 3,      "generate_audio": false,      "enhance_prompt": true,      "seed": 20261116    }  }'

Parameter reference#

All of these go inside input.

ParameterTypeValuesNotes
promptstringFree textContent, motion and camera work. Required for reference-to-video
image_urlstringOne public URLFirst frame. jpeg, jpg or png, up to 10MB. Cannot be combined with reference_image_urls
reference_image_urlsstring[]1 to 15 URLspng, jpeg, jpg or webp. Cannot be combined with image_url
reference_audio_urlsstring[]Up to 3 URLsmp3, 3 to 12 seconds each. Only with reference_image_urls
resolutionstring540P, 720P, 1080P, 2K, 4KDefault 720P
durationinteger3 to 16Seconds. Default 5
aspect_ratiostring16:9, 9:16, 1:1, 4:3, 3:4Reference-to-video only
generate_audiobooleantrue, falseAudio is on by default
enhance_promptbooleantrue, falseLets the model optimise the prompt
seedintegerAny integerRandom when omitted

The documented resolution values are upper case (1080P, 2K); send them exactly as listed. When resolution or aspect_ratio has a value outside its list, the HTTP 400 message is generic and does not name the field, so check the request against this table first.

Writing prompts for dialogue and shot changes#

Because the model generates speech and shot changes along with the picture, the prompt has to do the work of a short script. The tips on the model page come down to three habits.

Attribute every line. Give each character a consistent name and mark where their line starts. Here is a first-frame prompt built that way:

text
Mara, the woman at the left of the cafe table, says: "You kept the ticket?" Pause one second. Jonas, across from her, looks down at the stub in his hand, then looks up and answers quietly: "I kept both." Cut to a close-up of Mara's face as she tries not to smile. Soft cafe ambience, a spoon touching a cup.

Each line has a named speaker, and the pause and the cut are written out, so the model does not have to guess who talks when.

Sort references by job. Label which image is the character, which is the place, and which clip is the voice. Keep each asset tied to a clear need in the scene.

text
Reference image 1 is the courier in the yellow raincoat. Reference image 2 is the narrow alley with neon signs. Shot 1: wide view of the alley in rain, the courier enters from the left. Shot 2: medium shot as he checks a parcel label. Shot 3: close-up of his hand knocking on a green door. Rain on metal, distant traffic, three knocks.

This one names each reference once and numbers the shots, so every cut points back to the same character and the same place.

Plan a few shot changes, not many. Divide the important visual changes into a small set of beats, and name the speaker, listener or surroundings the camera should show in each one, as in the examples above.

When you review a result, check eyelines and prop positions before you judge the audio, then listen for whether sound enters at the point in the action you intended. For a wider vocabulary of camera moves, see the camera movement prompt guide.

Price per second by resolution#

Vidu Q4 is billed per second of output video, and the rate depends on the resolution. These are the DreamTo prices as of December 2026, in USD per second, after the current 20% discount:

ResolutionPrice per second
540P$0.036
720P$0.076
1080P$0.096
2K$0.152
4K$0.312

Prices change, so check the prices page for the current rates. A clip costs the resolution price times its duration: 5 seconds at 1080P is 5 × $0.096 = $0.48.

Resolution moves the cost most. A second at 4K costs more than eight times a second at 540P, so test prompts and inputs at 540P or 720P and generate the final clip at the resolution you ship. Duration scales the cost linearly, so a 3 second clip at 540P is the cheapest test of whether a prompt and an image work together.

When you create a task, that estimated cost is reserved from your balance and settled to the actual usage when the task completes. With an insufficient balance, the create call returns HTTP 402 insufficient_balance and no task is created. Failed tasks and invalid requests are not charged.

Limits and error handling#

  • Media URLs must be publicly reachable from mainland China. Images on hosts such as raw.githubusercontent.com or upload.wikimedia.org fail to download, and the task ends as failed. It is not charged, but you have to submit again. Host inputs on your own CDN or object storage.
  • Download results promptly. video_url expires 7 days after completion, and querying a task that does not exist or whose result has expired returns HTTP 404.
  • Out-of-range numbers are named. A duration or media count outside its range returns HTTP 400 with a message of the form input.duration must be a number between <min> and <max>. No task is created.
  • Media formats and content are checked by the model. A violation does not reject the request; the task is created and then ends as failed, also without a charge.
  • HTTP status codes carry the error. 401 means a missing or invalid key, 402 insufficient balance, 429 a rate limit. Retry 429 and 5xx with exponential backoff, and fix the request for other 4xx errors. The errors reference has the handling advice for each status.

The complete parameter and response definitions are in the Vidu Q4 Preview docs.

When to use Vidu Q4 and when to pick another model#

Choose Vidu Q4 when you start from a picture and want speech, sound and camera cuts generated with it, or when a character has to hold across shots built from several reference images. Choose another model when you need text-to-video or a defined last frame. The Seedance 2.5 guide covers text, image and reference input on that model, and how to choose an AI video API compares six models side by side. The image-to-video API guide covers first-frame workflows across models.

You can try Vidu Q4 without writing code in the playground, and the model page has example clips with the prompt and parameters used for each.

FAQ#

Does Vidu Q4 support text-to-video?#

No. Every request must carry either image_url for image-to-video or reference_image_urls for reference-to-video. The model has no prompt-only mode.

Can I set the last frame of the video?#

No. First-and-last-frame generation is not supported. You can set the first frame with image_url, or steer the scene with up to 15 reference images.

How long can a Vidu Q4 video be, and at what resolution?#

Videos run from 3 to 16 seconds, set with an integer duration, and the default is 5. Resolution can be 540P, 720P, 1080P, 2K or 4K, with 720P as the default.

Does Vidu Q4 generate audio?#

Yes, by default. Dialogue and sound effects are generated together with the picture, and you can add up to three mp3 voice references of 3 to 12 seconds each. Send generate_audio: false if you want a silent video.

How much does Vidu Q4 cost?#

It is billed per second of output video, and the rate depends on resolution. As of December 2026 the price runs from $0.036 per second at 540P to $0.312 per second at 4K, after the current 20% discount; see the prices page for current rates. Failed tasks are not charged.

Why did my task fail with an image download error?#

Input media URLs must be publicly reachable from mainland China. Images on hosts such as raw.githubusercontent.com and upload.wikimedia.org fail to download, so use your own CDN or object storage. The task ends as failed with the reason in error.message, and it is not charged.

  • Vidu Q4
  • Video API