Vidu Reference-to-Image
Generate images using the Vidu model based on reference images.
POST
Authorizations
Body
application/json
Reference image list.
- viduq2: Supports input of 0 to 7 images The model will generate an image with consistent subjects based on the input images.
- Supports Base64 or URL format (URL must be accessible)
- Supported formats: png, jpeg, jpg, webp
- Image resolution must be no smaller than 128×128
- Aspect ratio must be between 1:4 and 4:1
- Single image size must not exceed 50MB
- The post body of the HTTP request should not exceed 20MB, and encoding must include proper content type string
- Base64 format example:
data:image/png;base64,{base64_encode}
Maximum array length:
7Callback When creating a task, you need to actively set the callback_url with a POST request. When the video generation task changes its status, Vidu will send a callback request to this URL, containing the latest status of the task. The structure of the callback request content will be the same as the return body of the Get Generation API. The "status" in the callback response includes the following states:
- processing: Task is being processed.
- success: Task is completed (if sending fails, it will retry the callback three times).
- failed: Task failed (if sending fails, it will retry the callback three times). Vidu uses a callback signature algorithm for verification, check out the details here: Callback Signature
Response
Submission successful, returns an image task object.