API 參考
查詢參考圖
GET
/v1/image-assets/{asset_id}同賬戶同 Key;失效 410,未完成任務引用時刪除 409。
鑑權與許可權
使用當前 GloopAPI Key。模型、功能與許可權以當前 Key 的目錄及介面說明為準。
Authorization: Bearer $GLOOP_API_KEY鑑權方案: BearerAuth
請求
路徑引數
asset_idstring必填同 Key 上傳的 ia_ 圖片資產 ID。
響應與錯誤
HTTP 200
查詢參考圖成功
application/json
- 型別
- object
- 必填欄位
idmime_typesize_byteswidthheightexpires_at
file_idstring選填同賬戶同 Key 的託管檔案公開 ID。
idstring必填該物件的公開識別符號;用於對應詳情路徑。
mime_typestring必填已核驗檔案 MIME 型別。
size_bytesinteger必填檔案位元組數。
widthinteger必填圖片畫素寬度。
heightinteger必填圖片畫素高度。
expires_atinteger必填Unix 秒;0 表示無固定過期時間。上傳關聯託管檔案;讀取必須使用同賬戶同 Key。
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 410
參考圖已過期或已刪除(asset_expired)。
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選填