官方 API
取得影片
使用 CometAPI GET /v1/videos/ 取得 Sora 2 影片狀態、進度,以及像是時長、尺寸、時間戳記與到期時間等中繼資料。
GET
Retrieve a Sora video job
在你啟動 Sora 任務後,請使用此端點。它會回報目前的任務狀態、已設定的尺寸與時長,以及供應商回傳的任何錯誤。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.
關注這些欄位
status用於表示生命週期狀態progress用於提供粗略的進度訊號- 當供應商拒絕任務或任務失敗時,查看
error - 如果你需要知道暫時性資產何時到期,請在完成後查看
expires_at
輪詢直到完成
先建立或重混影片
先從 Create Video 或 Remix Video 開始。
下載檔案
當任務為
completed 時,前往 Retrieve Video Content。CometAPI 上的回應結構
此步驟與 Sora 的輪詢工作流程高度一致。CometAPI 保留 OpenAI 風格的物件結構,因此你可以幾乎不需額外轉換就完成狀態檢查。授權
Bearer token authentication. Use your CometAPI key.
路徑參數
Video id returned by the create or remix endpoint.