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
Body
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 elementsSupports 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}
3Metadata 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.