Vidu Reference-to-Video viduq4-preview
Use Vidu’s latest flagship model (preview) viduq4-preview to generate a video based on reference images and reference audio. This model supports referencing 1-15 images and 0-3 audio files. After submitting a task, query its status via GET /vidu/ent/v2/tasks/{task_id}/creations. Uses model viduq4-preview.
Authorizations
Pass Authorization: Bearer <token> in the request header.
Body
Model name. Available value: viduq4-preview
- viduq4-preview: Vidu's latest flagship model (preview), supports referencing 1-15 images and 0-3 audio files
viduq4-preview Supports multiple images. The model generates a video with subject consistency based on the subjects in the images provided. Requirements: Note 1: viduq4-preview model supports uploading 1-15 images; Note 2: Supports image Base64 encoding or image URL (ensure accessibility); Note 3: Supports png, jpeg, jpg, webp formats, max 50MB per image; Note 4: http request post body must not exceed 20MB, and encoding must include an appropriate content-type string, e.g.: data:image/png;base64,{base64_encode}
1 - 15 elementsText prompt for video generation. Note: Character length must not exceed 20000 characters
20000Supports uploading 0-3 audio files. The model uses the audio provided as reference to generate a video with subject consistency. Note 1: Each reference audio duration range is 3-12s; Note 2: Supports mp3 format; Note 3: Each audio file must not exceed 50MB; Note 4: http request post body must not exceed 20MB, and encoding must include an appropriate content-type string, e.g.: data:video/mp3;base64,{base64_encode}
3Whether to use audio-visual direct output
- false: no audio-visual direct output, outputs a silent video
- true: requires audio-visual sync, outputs a video with sound (including dialogue and sound effects) Note: viduq4-preview model default is true
Video duration parameter Default: 5 Enum: 3 - 16
3 <= x <= 16Random seed. When not provided or set to 0, a random number is used; when manually set, the configured seed is used.
Video aspect ratio parameter Default: 16:9 Enum: 1:1 / 9:16 / 16:9 / 3:4 / 4:3
16:9, 9:16, 1:1, 3:4, 4:3 Video resolution parameter Default: 720p Enum: 540p / 720p / 1080p / 2K / 4K Note: viduq4-preview supports 2K and 4K video output
540p, 720p, 1080p, 2K, 4K Passthrough parameter, no processing, only data transmission. Note: maximum 1048576 characters.
1048576Whether to add watermark
- true: add watermark
- false: no watermark Note: Currently watermark content is fixed and AI-generated; not added by default
Watermark position, indicating where the watermark appears on the image. Options: 1: top-left 2: top-right 3: bottom-right 4: bottom-left Default: 3
1, 2, 3, 4 1 <= x <= 4Watermark content. This is an image URL; when not provided, the default watermark (AI-generated content) is used.
Metadata identifier, a JSON format string passthrough field. You can customize the format or use the example format below: { "Label": "your_label","ContentProducer": "your_content_producer","ContentPropagator": "your_content_propagator","ProduceID": "your_product_id", "PropagateID": "your_propagate_id","ReservedCode1": "your_reserved_code1", "ReservedCode2": "your_reserved_code2" } When this parameter is empty, the Vidu-generated metadata identifier is used by default.
Callback protocol You need to actively set callback_url when creating a task. The request method is POST. When the video generation task changes status, Vidu will send a callback request containing the latest task status to this address. The callback request body structure is consistent with the query task API response body. The "status" returned by the callback includes the following states:
- processing: task is being processed
- success: task completed (if sending fails, callback retries three times)
- failed: task failed (if sending fails, callback retries three times) Vidu uses a callback signature algorithm for authentication, see: https://platform.vidu.cn/docs/callback-signature
Response
Submission successful, returns a video task object.
Task ID generated by Vidu.
Processing state Available values: created: task created successfully queueing: task in queue processing: task being processed success: task succeeded failed: task failed
created, queueing, processing, success, failed Model name used for this call.
Prompt parameter used for this call.
Image parameter used for this call.
The sound parameter for this call
Video duration parameter used for this call.
Random seed parameter used for this call.
Resolution parameter used for this call.
Passthrough parameter passed in for this call.
Number of credits consumed for this call.
Whether a watermark was used for this task submission.
Task creation time.