Vidu Image-to-Video viduq4-preview
Use Vidu’s latest flagship model (preview) viduq4-preview to convert an image to video. This model supports audio-visual sync and automatic shot switching. 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 audio-visual sync and automatic shot switching
viduq4-preview Start frame image. The model uses the image provided as the first frame to generate the video. Note 1: Supports image Base64 encoding or image URL (ensure accessibility); Note 2: Only 1 image is supported; Note 3: Supports png, jpeg, jpg, webp formats; Note 4: Image size must not exceed 50 MB; Note 5: Note that the http body must be less than 20M, and the encoding must include an appropriate content-type string, e.g.: data:image/png;base64,{base64_encode}
1 elementText prompt. Text description for video generation. Note: Character length must not exceed 20000 characters
20000Whether 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
Whether to enable AI prompt rewriting
- true: enabled
- false: disabled (default value)
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.
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, 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.
Images parameter used for this call.
Sounds parameter used 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.
Credits consumed for this call.
Whether a watermark was used for this task submission.
Task creation time.