Skip to main content
POST
cURL
使用此端點可建立 Vidu Q3 文生影片任務。API 會立即回傳任務 ID,因此請儲存回傳的 id,並持續輪詢任務,直到其進入終止狀態。 POST /v1/videos 使用 multipart/form-data;請將純量控制參數作為表單欄位傳入。

選擇模型

設定時長與尺寸

size 設為下列其中一個 WxH 值。

任務流程

1

建立任務

送出 multipart 表單請求並儲存回傳的 id
2

輪詢任務

呼叫 擷取 Vidu 影片,直到 statuscompletedfailederror
3

下載結果

當任務為 completed 時,呼叫 擷取 Vidu 影片內容 以下載 MP4 檔案。

授權

Authorization
string
header
必填

Bearer authentication. Use your CometAPI API key.

主體

multipart/form-data
model
enum<string>
必填

Vidu Q3 model ID for this endpoint.

可用選項:
viduq3-turbo,
viduq3
範例:

"viduq3-turbo"

prompt
string
必填

Text prompt that describes the video to generate.

範例:

"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.

範例:

"1"

size
string

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

回應

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

id
string
必填

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

範例:

"task_example"

object
string
必填

Object type. Video tasks return video.

範例:

"video"

model
string
必填

Model ID used for the task.

範例:

"viduq3-turbo"

status
enum<string>
必填

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

可用選項:
queued,
in_progress,
completed,
failed,
error
範例:

"queued"

progress
integer
必填

Task progress as a coarse percentage.

必填範圍: 0 <= x <= 100
範例:

0

created_at
integer
必填

Task creation time as a Unix timestamp in seconds.

範例:

1779938152

task_id
string

Compatibility alias for id when present.

範例:

"task_example"

completed_at
integer

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

範例:

1779938219

video_url
string

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

範例:

"<temporary-video-url>"

error
object

Failure details. This field appears when the task fails.