透過 CometAPI 中的 POST /v1/videos 非同步生成 Veo3 影片,回傳任務 id,並支援 8 秒片段的首幀/末幀引導。
curl --request POST \
--url https://api.cometapi.com/v1/videos \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'prompt=A paper kite floats above a field.' \
--form input_reference='@example-file'{
"created_at": 1773297229,
"id": "task_pa9CKKtYlTdxO7IIHOKKhXfjxEu4EQoR",
"model": "veo_3_1-4K",
"object": "video",
"progress": 0,
"seconds": "",
"size": "16x9",
"status": "queued"
}/v1/videos 路由啟動 Veo 任務。設定 model 時,請從模型頁面選擇目前可用的 Veo 別名。
input_reference 檔案input_referenceinput_reference 檔案輪詢共用影片端點
veo-3.1-generate-preview 這類 model 名稱。CometAPI 保留共用的 /v1/videos 路由,並在請求時從模型頁面解析目前可用的 Veo 別名。在 2026-03-12 的實際驗證期間,使用 veo3-fast 的請求已被接受並回傳非同步任務 id,而回應中的 model 解析為供應商 model id,而不是直接回傳提交的別名。Bearer token authentication. Use your CometAPI key.
Text prompt for the video job.
"A paper kite floats above a field."
CometAPI Veo alias. Use a current Veo alias from the Models page. The response may resolve this alias to a provider model id.
"veo3-fast"
Orientation hint used by the wrapper. Use a landscape-like value such as 16x9 or a portrait-like value such as 9x16.
"16x9"
Optional image input. Send one file for image-to-video or two ordered files for first-frame and last-frame guidance.
curl --request POST \
--url https://api.cometapi.com/v1/videos \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form 'prompt=A paper kite floats above a field.' \
--form input_reference='@example-file'{
"created_at": 1773297229,
"id": "task_pa9CKKtYlTdxO7IIHOKKhXfjxEu4EQoR",
"model": "veo_3_1-4K",
"object": "video",
"progress": 0,
"seconds": "",
"size": "16x9",
"status": "queued"
}