CometAPI 封裝器
非同步影片生成
透過 CometAPI 的 POST /v1/videos 非同步生成 Veo3 影片,回傳任務 id,並支援 8 秒片段的首幀/尾幀引導。
POST
Create a Veo video job
使用此頁面透過共用的 CometAPIDocumentation Index
Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt
Use this file to discover all available pages before exploring further.
/v1/videos 路由啟動 Veo 任務。設定 model 時,請從模型頁面選擇目前可用的 Veo 別名。
選擇請求模式
- 文字轉影片:不要傳送
input_reference檔案 - 圖片轉影片:傳送一個
input_reference - 首幀與尾幀引導:依序傳送兩個
input_reference檔案
任務流程
輪詢共用影片端點
使用 Veo3 Retrieve 追蹤非同步任務,直到其進入最終狀態。
別名解析
回應中的model 欄位可能會顯示已解析的後端模型 id,而非您提交的別名。請使用模型頁面查找目前可用的 Veo 別名。授權
Bearer token authentication. Use your CometAPI key.
主體
multipart/form-data
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. 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.