Vidu Image-to-Video viduq3-turbo
Convert images to videos using the Vidu model. After submission, query status via GET /vidu/ent/v2/tasks/{task_id}. Uses model viduq3-turbo.
Authorizations
Pass Authorization: Bearer <token> in the request header.
Body
Video generation model name.
- viduq3-turbo: Compared to viduq3-pro, the generation speed is faster
viduq3-turbo An image to be used as the start frame of the generated video.
- Only accepts 1 image
- Accepts public URL or Base64 format
- Supported formats: png, jpeg, jpg, webp
- The aspect ratio of the images must be between 1:4 and 4:1
- Single image limited to 50MB
- HTTP request body should not exceed 20MB
- Base64 format example:
data:image/png;base64,{base64_encode}
1 elementText prompt for describing video generation content. Note: If the recommended prompt feature is enabled (is_rec=true), the model will ignore the manually entered prompt parameter.
5000Whether to use the recommended prompt.
- true: Yes, the system will automatically generate and apply a recommended prompt. Number of recommended prompts = 1
- false: No, the video will be generated based on the user-provided prompt Note: When the recommended prompt feature is enabled, each task will consume an additional 10 credits.
Whether to use direct audio-video generation capability.
- false: No direct audio-video generation, outputs silent video
- true: Direct audio-video generation required, outputs video with sound (including dialogue and sound effects) Note 1: The voice_id parameter takes effect only when this parameter is true Note 2: When this parameter is true, staggered mode is not supported (q3 model supports staggered mode) Note 3: When model is q3, the default value for this parameter is true
Audio type, required when audio is true.
- all: Sound effects + vocals
- speech_only: Vocal only
- sound-effect_only: Sound effects only Note: Currently, this parameter only supports audio splitting for q2, q1, and 2.0 series models.
all, speech_only, sound_effect_only Video duration in seconds. Default values vary by model:
- viduq3-pro-fast, viduq3-pro, viduq3-turbo: default 5, available: 1-16
1 <= x <= 16Random seed.
- Defaults to a random seed number
- Manually set values will override the default random seed
Resolution (based on model & duration):
- viduq3-pro-fast (1-16s): default 720p, options: 720p, 1080p
- viduq3-pro, viduq3-turbo (1-16s): default 720p, options: 540p, 720p, 1080p
540p, 720p, 1080p Transparent transmission parameters. No processing, only data transmission, with a maximum length of 1048576 characters.
1048576Off peak mode.
- true: Off peak generate mode
- false: Normal generate mode The off_peak mode consumes lower points (see Pricing for details). Tasks submitted in off peak mode will be generated within 48 hours. Tasks that are not completed will be automatically cancelled and their points will be refunded. We also support cancel off_peak tasks.
Callback. 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).
Whether to add a watermark.
- true: Add watermark
- false: Do not add watermark
Note 1: Currently the watermark content is fixed, default is no watermark Note 2: You can retrieve watermarked video content through the watermarked_url parameter in the query task API
Watermark position 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 image URL. When not specified, the default watermark is used.
Metadata identifier, a JSON format string used as a passthrough field. You can customize the format or use the example format below:
When this parameter is empty, the Vidu-generated metadata identifier is used by default.
Response
Submission successful, returns a video task object.
Task ID.
Task processing state:
- created: Task created successfully
- queueing: Task in queue
- processing: Task processing
- success: Generation successful
- failed: Task failed
created, queueing, processing, success, failed Model parameter used for this call.
Text prompt used for this call.
Images used for this call.
Video duration parameter used for this call.
Whether to use audio for this call.
Audio type parameter used for this call.
Random seed parameter used for this call.
Resolution parameter used for this call.
Payload parameter used for this call.
Off-peak mode parameter used for this call.
Credits consumed for this call.
Task creation time.
本次提交任务是否使用水印