列出提供者同網絡模型
使用 provider_models:read 閱讀 ShareAI Provider API 網絡目錄、你嘅供應商目錄同埋準確嘅模型詳情。
喺呢頁面
使用網絡目錄發現可用嘅模型記錄,並使用你嘅目錄檢查與已驗證供應商相關聯嘅模型。一個目錄條目同一部活躍分享該模型嘅設備係唔同嘅。


GET
https://api.shareai.now/api/v1/console/provider/model-catalog閱讀網絡模型目錄。
- 基礎 URL
https://api.shareai.now- 認證
- HTTP Basic:提供者 UUID 同提供者訪問權杖
- 必需範圍
provider_models:read
GET
https://api.shareai.now/api/v1/console/provider/model-catalog/my閱讀呢個供應商嘅模型目錄。
- 基礎 URL
https://api.shareai.now- 認證
- HTTP Basic:提供者 UUID 同提供者訪問權杖
- 必需範圍
provider_models:read
查詢參數#
| 參數 | 使用 |
|---|---|
page | 分頁頁面,由第1頁開始。 |
limit | 請求嘅頁面大小;伺服器會應用其支持嘅範圍限制。 |
search | 篩選模型名稱或者識別碼。 |
type | 網絡目錄中可選支持嘅目錄類型篩選。 |
cURL
curl --fail-with-body --request GET \
"https://api.shareai.now/api/v1/console/provider/model-catalog/my?page=1&limit=20" \
-u "$PROVIDER_UUID:$PROVIDER_ACCESS_TOKEN"
Python
import json
import os
import urllib.request
import base64
credentials = os.environ["PROVIDER_UUID"] + ":" + os.environ["PROVIDER_ACCESS_TOKEN"]
headers = {"Authorization": "Basic " + base64.b64encode(credentials.encode()).decode()}
request = urllib.request.Request('https://api.shareai.now/api/v1/console/provider/model-catalog/my?page=1&limit=20', headers=headers, method='GET')
with urllib.request.urlopen(request, timeout=60) as response:
print(json.load(response))
TypeScript
const url = "https://api.shareai.now/api/v1/console/provider/model-catalog/my?page=1&limit=20";
const credentials = `${process.env.PROVIDER_UUID}:${process.env.PROVIDER_ACCESS_TOKEN}`;
const headers: Record = {
Authorization: `Basic ${Buffer.from(credentials).toString("base64")}`,
};
const response = await fetch(url, { method: "GET", headers });
if (!response.ok) throw new Error(`${response.status}: ${await response.text()}`);
console.log(await response.json());
閱讀準確模型#
GET
https://api.shareai.now/api/v1/console/provider/model-catalog/my/model查找一個準確嘅 full_model_identifier。
- 基礎 URL
https://api.shareai.now- 認證
- HTTP Basic:提供者 UUID 同提供者訪問權杖
- 必需範圍
provider_models:read
cURL
curl --get --fail-with-body https://api.shareai.now/api/v1/console/provider/model-catalog/my/model \
-u "$PROVIDER_UUID:$PROVIDER_ACCESS_TOKEN" \
--data-urlencode "full_model_identifier=$MODEL_IDENTIFIER"
解釋回應#
列表回應會識別所選目錄並返回其項目。一個已知模型即使未被添加到提供者,亦可以通過準確查找返回。喺提供定價或者共享操作之前,檢查返回嘅關聯性同權限狀態。
保持識別碼準確#
唔好根據模型嘅顯示名稱重建識別碼。保留其創建者/模型/標籤嘅標點符號,並對查詢值進行URL編碼。喺決定模型是否可以提供服務時,使用提供者當前嘅權限同模型嘅訪問條款。
最後更新日期:2026年9月15日