跳轉到主要內容
GET
/
v1
/
videos
/
{video_id}
Retrieve a Veo video job
curl --request GET \
  --url https://api.cometapi.com/v1/videos/{video_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "task_pa9CKKtYlTdxO7IIHOKKhXfjxEu4EQoR",
  "size": "16x9",
  "model": "veo_3_1-4K",
  "object": "video",
  "status": "queued",
  "task_id": "task_pa9CKKtYlTdxO7IIHOKKhXfjxEu4EQoR",
  "progress": 0,
  "created_at": 1773297229
}

Documentation Index

Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt

Use this file to discover all available pages before exploring further.

使用此端點輪詢 Veo 工作。它會回傳目前的任務狀態,以及解析後的後端 model 資訊。

輪詢迴圈

1

先建立工作

先從 Veo3 非同步生成 開始,並保存回傳的 id
2

輪詢直到任務進入終態

持續呼叫此端點,直到工作離開 queuedin_progress,並進入完成狀態。
3

儲存結果

輸出準備完成後,如果你的應用程式需要可持久保存的副本,請將其移動到你自己的儲存空間。

為什麼 model ID 可能會改變

回應中可能會顯示解析後的後端 model id,而不是你提交的別名。這是預期行為。

授權

Authorization
string
header
必填

Bearer token authentication. Use your CometAPI key.

路徑參數

video_id
string
必填

Task id returned by the create endpoint.

回應

200 - application/json

Current job state.

id
string
必填
size
string
必填
model
string
必填
object
string
必填
status
string
必填
progress
integer
必填
created_at
integer
必填
task_id
string