API 參考
查詢影片工作區能力
/v1/video-models按模式返回可執行 presets 與幀限制;僅完整 preset 可組合,不能跨模式拼引數。
鑑權與許可權
使用當前 GloopAPI Key。模型、功能與許可權以當前 Key 的目錄及介面說明為準。
Authorization: Bearer $GLOOP_API_KEY鑑權方案: BearerAuth
請求
查詢引數
響應與錯誤
HTTP 200
查詢影片工作區能力成功
application/json
- 型別
- object
- 必填欄位
dataworkspace_enabledupload_enabledfile_storage_enabled
dataarray必填當前頁/目錄資料陣列。
data 子欄位(1)
[]object選填[] 子欄位(6)
idstring必填該物件的公開識別符號;用於對應詳情路徑。
namestring必填使用者可讀名稱。
capability_versionstring必填該公開模型能力版本。
modesarray必填該模型可執行模式及各自完整引數組合。
modes 子欄位(1)
[]object選填[] 子欄位(9)
modestring必填執行模式。
presetsarray必填可執行的完整引數組合,不能跨組合形成笛卡爾積。
presets 子欄位(1)
[]object選填[] 子欄位(4)
模型 preset 中的時長秒數。
resolutionstring選填模型 preset 中的解析度值。
aspect_ratiostring選填模型 preset 中的寬高比值。
該模型 preset 是否生成音訊。
audio_policystring必填當前模式音訊欄位策略。
aspect_policystring必填當前模式寬高比欄位策略。
duration_policystring必填當前模式時長欄位策略。
prompt_max_charsinteger必填當前模式提示詞最大 Unicode 字元數。
start_frameobject選填當前模式首幀限制。
start_frame 子欄位(5)
requiredboolean必填此模式是否要求該幀。
max_bytesinteger必填該幀允許的最大檔案位元組數。
max_pixelsinteger必填該幀允許的最大畫素總數。
max_edgeinteger必填該幀允許的最大單邊畫素數。
content_typesarray必填該幀允許的圖片 MIME 型別。
content_types 子欄位(1)
[]string選填
allOf 分支 1
型別: object
分支必填: required, max_bytes, max_pixels, max_edge, content_types
requiredboolean必填此模式是否要求該幀。
max_bytesinteger必填該幀允許的最大檔案位元組數。
max_pixelsinteger必填該幀允許的最大畫素總數。
max_edgeinteger必填該幀允許的最大單邊畫素數。
content_typesarray必填該幀允許的圖片 MIME 型別。
content_types 子欄位(1)
[]string選填
end_frameobject選填當前模式尾幀限制。
end_frame 子欄位(5)
requiredboolean必填此模式是否要求該幀。
max_bytesinteger必填該幀允許的最大檔案位元組數。
max_pixelsinteger必填該幀允許的最大畫素總數。
max_edgeinteger必填該幀允許的最大單邊畫素數。
content_typesarray必填該幀允許的圖片 MIME 型別。
content_types 子欄位(1)
[]string選填
allOf 分支 1
型別: object
分支必填: required, max_bytes, max_pixels, max_edge, content_types
requiredboolean必填此模式是否要求該幀。
max_bytesinteger必填該幀允許的最大檔案位元組數。
max_pixelsinteger必填該幀允許的最大畫素總數。
max_edgeinteger必填該幀允許的最大單邊畫素數。
content_typesarray必填該幀允許的圖片 MIME 型別。
content_types 子欄位(1)
[]string選填
cancel_policystring選填取消能力策略,取消請求不保證完成或退款。
cancel_policystring必填取消能力策略,取消請求不保證完成或退款。
pricing_kindsarray必填該模型允許的計價方式。
pricing_kinds 子欄位(1)
[]string選填
workspace_enabledboolean必填當前工作區新任務功能是否可用,不表示歷史物件被刪除。
upload_enabledboolean必填服務是否啟用參考圖上傳。
file_storage_enabledboolean必填服務是否啟用託管檔案儲存。
HTTP 400
請求欄位或引數無效。
application/json
- 型別
- object
- 必填欄位
error
errorobject必填error 子欄位(4)
codestring選填messagestring選填typestring選填request_idstring選填
HTTP 401
Key 缺失、無效、過期或已撤銷。
application/json
- 型別
- object
- 必填欄位
error
errorobject必填error 子欄位(4)
codestring選填messagestring選填typestring選填request_idstring選填
HTTP 403
IP、賬戶、模型或工具許可權不足。
application/json
- 型別
- object
- 必填欄位
error
errorobject必填error 子欄位(4)
codestring選填messagestring選填typestring選填request_idstring選填
HTTP 404
物件/能力不可用,或功能開關關閉。
application/json
- 型別
- object
- 必填欄位
error
errorobject必填error 子欄位(4)
codestring選填messagestring選填typestring選填request_idstring選填
HTTP 409
冪等/報價衝突、物件未準備或仍被引用。
application/json
- 型別
- object
- 必填欄位
error
errorobject必填error 子欄位(4)
codestring選填messagestring選填typestring選填request_idstring選填
HTTP 429
請求/佇列限流。
application/json
- 型別
- object
- 必填欄位
error
errorobject必填error 子欄位(4)
codestring選填messagestring選填typestring選填request_idstring選填
HTTP 500
鑑權或資料儲存內部失敗。
application/json
- 型別
- object
- 必填欄位
error
errorobject必填error 子欄位(4)
codestring選填messagestring選填typestring選填request_idstring選填
HTTP 503
服務、定價或儲存不可用。
application/json
- 型別
- object
- 必填欄位
error
errorobject必填error 子欄位(4)
codestring選填messagestring選填typestring選填request_idstring選填