API 參考

下載鑑權影片內容

GET/v1/videos/{task_id}/content

同Key、成功且結清後下載MP4,上限512MiB;過期報錯,Range回傳416,不重新生成。

鑑權與許可權

使用當前 GloopAPI Key。模型、功能與許可權以當前 Key 的目錄及介面說明為準。

Authorization: Bearer $GLOOP_API_KEY

鑑權方案: BearerAuth

鑑權方案: VideoContentSignature

請求

路徑引數

查詢引數

  • variantstring選填
    預設值
    "video"
    列舉
    ["video"]
  • expiresinteger選填
    格式
    "int64"

響應與錯誤

HTTP 200

請求成功。

video/mp4

型別
string
格式
binary
{
  "type": "string",
  "format": "binary"
}

HTTP 400

請求失敗。

application/json

型別
object
必填欄位
error

HTTP 401

Key 缺失、無效、過期或已撤銷。

application/json

型別
object
必填欄位
error

HTTP 403

IP、賬戶、模型或工具許可權不足。

application/json

型別
object
必填欄位
error

HTTP 404

物件或能力不可用。

無響應正文。

HTTP 409

請求衝突、未準備或提交未知,先查詢原記錄,禁止盲重發。

無響應正文。

HTTP 410

物件或內容已失效。

無響應正文。

HTTP 416

請求失敗。

無響應正文。

HTTP 429

請求/佇列限流。

application/json

型別
object
必填欄位
error

HTTP 500

鑑權或資料儲存內部失敗。

application/json

型別
object
必填欄位
error