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