跳轉到主要內容
GET
/
v1
/
videos
/
{video_id}
/
content
Download finished Sora video content
curl --request GET \
  --url https://api.cometapi.com/v1/videos/{video_id}/content \
  --header 'Authorization: Bearer <token>'
"<string>"

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.

當工作狀態達到 completed 後,請使用此端點下載已完成的 Sora 輸出。在此之前,端點會回傳錯誤,而不是影片檔案。

下載前須知

  • 等待 擷取影片 回報 status: completed
  • 傳入建立或混音步驟中的 video_id
  • 如果你需要讓檔案在供應商的暫時提供期間之後仍可存取,請將其儲存到你自己的 bucket 或 CDN

下載流程

1

建立或混音影片

建立影片混音影片 開始。
2

輪詢直到完成

使用 擷取影片 直到工作狀態達到 completed
3

取得二進位檔案

呼叫此端點以下載 MP4 或其他支援的資產變體。

暫時提供期間

轉譯完成後,請盡快擷取檔案。供應商提供的交付 URL 並非永久有效。

授權

Authorization
string
header
必填

Bearer token authentication. Use your CometAPI key.

路徑參數

video_id
string
必填

Completed video id.

查詢參數

variant
string

Optional content variant such as the main video, thumbnail, or spritesheet when supported by the provider.

回應

Binary video content.

The response is of type file.