BazaarLinkBazaarLink
登入
文件API 參考SDK 參考Agent 應用AI Skills
模型

列出可用模型

回傳所有可用模型,可用 output_modalities 篩選(見 列出嵌入向量模型 頁——那其實是同一個端點加上 output_modalities=embeddings)。省略帳戶端 Authorization 時回傳完整公開清單並公開快取;傳入屬於組織的 Bearer 金鑰時,回應會依組織的模型白名單過濾,且改為私有、短效快取。

GET/api/v1/models

查詢參數

output_modalities
string

以逗號分隔的單一字串(不是重複同名 query key),例如 image 或 text,image。傳 all 取得全部模態。省略時預設只有 text。傳入無法辨識的值會回 400。常見用途:只要文字模型維持預設或明確傳 text;圖片模型傳 image;嵌入向量傳 embeddings;文字轉語音傳 speech、語音轉文字傳 transcription;audio、video、rerank 依需求傳入(部分類別目前上架數量較少);要一次取得全部類別的聯集(不是加總,同一模型可能橫跨多個類別)則傳 all。

comma-separated, single value
textimageembeddingsaudiovideorerankspeechtranscriptionall
Example: "text,image"
GET /api/v1/models
curl "https://bazaarlink.ai/api/v1/models?output_modalities=all"
回應範例

成功。id 在不同供應商間名稱唯一時是簡稱(如 "gpt-4o"),否則(或該模型是媒體計費模型)為 canonical 形式(如 "openai/gpt-4o"),canonical 一律另外列在 aliases。免費模型會多出一筆 canonical id 加 :free 的條目(zero pricing,用於發現,不是另一個真實模型)。當篩選涵蓋 text 時,清單還會包含 auto 與 auto:free 兩個虛擬路由項目(owned_by 為 "bazaarlink",背後沒有單一真實模型);auto 的 pricing 是 "-1"/"-1"(代表由實際路由結果決定),只有 auto:free 才是真正零成本。

{
  "object": "list",
  "data": [
    {
      "id": "gpt-4o",
      "object": "model",
      "owned_by": "openai",
      "name": "OpenAI: GPT-4o",
      "description": "OpenAI's multimodal flagship model.",
      "context_length": 128000,
      "aliases": [
        "openai/gpt-4o"
      ],
      "pricing": {
        "prompt": "0.0000025",
        "completion": "0.00001"
      },
      "architecture": {
        "modality": "text+image->text",
        "input_modalities": [
          "text",
          "image"
        ],
        "output_modalities": [
          "text"
        ]
      },
      "knowledge_cutoff": "2023-10",
      "max_completion_tokens": 16384
    },
    {
      "id": "openai/gpt-4o:free",
      "object": "model",
      "owned_by": "openai",
      "name": "OpenAI: GPT-4o (free)",
      "description": "Rate-limited free tier. OpenAI's multimodal flagship model.",
      "context_length": 128000,
      "aliases": [],
      "pricing": {
        "prompt": "0",
        "completion": "0"
      },
      "architecture": {
        "modality": "text+image->text",
        "input_modalities": [
          "text",
          "image"
        ],
        "output_modalities": [
          "text"
        ]
      }
    },
    {
      "id": "auto",
      "object": "model",
      "owned_by": "bazaarlink",
      "name": "Auto Router",
      "description": "Automatically selects the best model for the request.",
      "aliases": [],
      "pricing": {
        "prompt": "-1",
        "completion": "-1"
      },
      "architecture": {
        "modality": "text->text",
        "input_modalities": [
          "text"
        ],
        "output_modalities": [
          "text"
        ]
      }
    }
  ]
}
客服
客服
您好!有什麼可以協助?
請留下訊息,我們會盡快回覆。
列出可用模型 — BazaarLink API