Skip to main content
POST
Use this endpoint to create a Vidu video task. Vidu Q3 models create text-to-video and image-to-video tasks. viduq4-preview creates image-to-video and reference-to-video tasks. The API returns a task ID immediately, so store the returned id and poll the task until it reaches a terminal status. POST /v1/videos uses multipart/form-data. Send scalar controls as form fields and reference images as input_reference fields.

Choose an input mode

viduq4-preview selects the mode from the request. One reference image without reference audio creates an image-to-video task. Two or more reference images, or one reference image with reference_audios, create a reference-to-video task. To confirm that viduq3 or viduq3-turbo is available to your API key, use List available models.

Use reference images

For Q3 image-to-video, upload one reference image through the input_reference multipart field. The file can be up to 20 MB. The image guides the composition and appearance of the generated video. Use the prompt to describe motion, camera behavior, and details that the video should preserve. For viduq4-preview image-to-video, send one image as an uploaded file or as a publicly accessible HTTPS URL in input_reference. The video starts from this image and keeps its aspect ratio. For viduq4-preview reference-to-video, send 2–12 publicly accessible HTTPS image URLs. Repeat input_reference once per image, and send each URL in its own field. Use PNG, JPEG, or WEBP images. In the prompt, refer to reference images by their order in the request: @1 is the first input_reference image, @2 is the second, and so on. For example: The pink car from @1 drives across the snowy hill from @2.

Add reference audio

For viduq4-preview reference-to-video, reference_audios adds voice references. Send up to 3 publicly accessible HTTPS URLs of MP3 clips, each 3–12 seconds long, and repeat reference_audios once per clip. Send at least one input_reference image in the same request.

Set duration and size

For Q3 models, set size to one of the WxH values below. For viduq4-preview, set size to one of the WxH values below. For reference-to-video, size sets the frame shape. For image-to-video, the output keeps the aspect ratio of the input image. viduq4-preview videos include a generated audio track.

Task flow

1

Create the task

Send the multipart form request and store the returned id.
2

Poll the task

Call Retrieve a Vidu video until status is completed, failed, or error.
3

Download the result

When the task is completed, call Retrieve Vidu video content to download the MP4 file.

Authorizations

Authorization
string
header
required

Bearer authentication. Use your CometAPI API key.

Body

multipart/form-data
model
string
required

Vidu model ID for this route: viduq3 or viduq3-turbo for text-to-video and image-to-video, or viduq4-preview for image-to-video and reference-to-video. Choose an available model from the Models page.

Example:

"viduq3-turbo"

prompt
string
required

Text prompt that describes the video to generate. For image-to-video, describe the motion and camera behavior that should animate the reference image. For viduq4-preview reference-to-video, refer to reference images as @1, @2, and so on, in the order of the input_reference fields. Up to 5000 characters for viduq4-preview.

Example:

"An astronaut walks through soft blue fog with a slow cinematic camera move."

seconds
string

Requested clip duration in seconds, sent as an integer string. Use 1 through 16 for viduq3 and viduq3-turbo, or 3 through 16 for viduq4-preview. Default is 5.

Example:

"1"

size
string

Output size as WxH. Supported WxH size values for viduq3 and viduq3-turbo: 960x528, 1280x720, 1920x1080. Supported WxH size values for viduq4-preview: 1280x720, 720x1280, 960x960, 1104x816, 816x1104. Default is 1280x720. For viduq4-preview reference-to-video, size sets the frame shape. For viduq4-preview image-to-video, the output keeps the aspect ratio of the input image.

input_reference

Reference images. For Q3 image-to-video, upload one image file up to 20 MB. For viduq4-preview image-to-video, send one image file or one publicly accessible HTTPS image URL. For viduq4-preview reference-to-video, send 2-12 publicly accessible HTTPS image URLs by repeating input_reference once per image. Use PNG, JPEG, or WEBP images. Omit this field for text-to-video.

reference_audios

Voice references for viduq4-preview reference-to-video. Send up to 3 publicly accessible HTTPS URLs of MP3 clips, each 3-12 seconds long, by repeating reference_audios once per clip. Send at least one input_reference image in the same request.

Pattern: ^https://

Response

Task created. Store the returned id and poll GET /v1/videos/{task_id}.

id
string
required

Task ID. Use this value with retrieve and content endpoints.

Example:

"task_example"

object
string
required

Object type. Video tasks return video.

Example:

"video"

model
string
required

Model ID used for the task, such as viduq3-turbo or viduq4-preview.

Example:

"viduq3-turbo"

status
enum<string>
required

Task lifecycle status. Poll until the value is completed, failed, or error.

Available options:
queued,
in_progress,
completed,
failed,
error
Example:

"queued"

progress
integer
required

Task progress as a coarse percentage.

Required range: 0 <= x <= 100
Example:

0

created_at
integer
required

Task creation time as a Unix timestamp in seconds.

Example:

1779938152

task_id
string

Compatibility alias for id when present.

Example:

"task_example"

completed_at
integer

Task completion time as a Unix timestamp in seconds. This field appears on completed tasks.

Example:

1779938219

video_url
string

Temporary video delivery URL. This field appears on completed tasks.

Example:

"<temporary-video-url>"

error
object

Failure details. This field appears when the task fails.

Last modified on October 27, 2026