Skip to main content
POST
cURL
Gunakan endpoint ini untuk membuat tugas text-to-video Vidu Q3. API akan langsung mengembalikan task ID, jadi simpan id yang dikembalikan dan poll tugas tersebut hingga mencapai status terminal. POST /v1/videos menggunakan multipart/form-data; kirim kontrol skalar sebagai form field.

Pilih model

Atur durasi dan ukuran

Atur size ke salah satu nilai WxH di bawah ini.

Alur tugas

1

Create the task

Kirim permintaan multipart form dan simpan id yang dikembalikan.
2

Poll the task

Panggil Retrieve a Vidu video hingga status bernilai completed, failed, atau error.
3

Download the result

Saat tugas berstatus completed, panggil Retrieve Vidu video content untuk mengunduh file MP4.

Otorisasi

Authorization
string
header
wajib

Bearer authentication. Use your CometAPI API key.

Body

multipart/form-data
model
enum<string>
wajib

Vidu Q3 model ID for this endpoint.

Opsi yang tersedia:
viduq3-turbo,
viduq3
Contoh:

"viduq3-turbo"

prompt
string
wajib

Text prompt that describes the video to generate.

Contoh:

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

seconds
string

Requested clip duration in seconds. Use an integer from 1 through 16. Default is 5.

Contoh:

"1"

size
string

Supported WxH size values: 640x352, 960x528, 1280x720, 1920x1080. Default is 1280x720.

Respons

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

id
string
wajib

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

Contoh:

"task_example"

object
string
wajib

Object type. Video tasks return video.

Contoh:

"video"

model
string
wajib

Model ID used for the task.

Contoh:

"viduq3-turbo"

status
enum<string>
wajib

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

Opsi yang tersedia:
queued,
in_progress,
completed,
failed,
error
Contoh:

"queued"

progress
integer
wajib

Task progress as a coarse percentage.

Rentang yang diperlukan: 0 <= x <= 100
Contoh:

0

created_at
integer
wajib

Task creation time as a Unix timestamp in seconds.

Contoh:

1779938152

task_id
string

Compatibility alias for id when present.

Contoh:

"task_example"

completed_at
integer

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

Contoh:

1779938219

video_url
string

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

Contoh:

"<temporary-video-url>"

error
object

Failure details. This field appears when the task fails.