获取模型目录

读取公开模型资料和价格。按 provider 和 model 筛选,避免返回过大的完整目录。 两个筛选条件均为精确匹配,同时提供时必须都满足;省略的条件不作限制。 没有匹配项时返回空 items,并保留目录状态。到期刷新始终拉取完整目录。 保存模型时,将所选条目的 characteristics、pricing 和 ref 分别填入模型的 config.characteristics、pricing 和 catalog_ref。

GET/api/v1/model-catalog

读取公开模型资料和价格。按 provider 和 model 筛选,避免返回过大的完整目录。

两个筛选条件均为精确匹配,同时提供时必须都满足;省略的条件不作限制。 没有匹配项时返回空 items,并保留目录状态。到期刷新始终拉取完整目录。 保存模型时,将所选条目的 characteristics、pricing 和 ref 分别填入模型的 config.characteristics、pricing 和 catalog_ref。

认证与授权

认证与授权Bearer <token>

工作空间 API 密钥(a13n_...)

传递位置: header

查询参数

provider?|

精确匹配的目录渠道 ID,例如 openrouter。

model?|

目录渠道中的模型 ID,区分大小写并精确匹配。

view?string

查找资源时使用 compact;detailed 保留原有响应。

默认值"detailed"

可选值

  • "detailed"
  • "compact"
query?|

在完整名称和说明中匹配子串,不区分大小写。

capability?|null
limit?|null
cursor?string|null
section?|null
offset?Offset

以 Unicode 码点计量的偏移量;通过 next_offset 继续读取。

范围0 <= value
默认值0
text_limit?Text Limit

本片段最多包含的 Unicode 码点数。

范围1 <= value <= 4000
默认值4000
version?|

首次读取返回的内容版本;偏移量大于 0 时必填。

响应体

application/json

application/json

application/json

curl -X GET "https://example.com/api/v1/model-catalog"
{  "items": [    {      "characteristics": {        "capabilities": [          "string"        ],        "compact_threshold": 0.9,        "context_window_tokens": 1,        "image_input": {          "image_retention_ratio": 0.6,          "image_split_max_height": 4096,          "image_split_overlap": 50,          "max_image_bytes": 5242880,          "max_image_dimension": 8000,          "max_images": 20,          "split_large_images": true,          "support_gif": true        },        "proactive_context_management_threshold": 0.65,        "url_input": {          "video": [            "string"          ]        },        "video_input": {          "max_video_bytes": 10485760        }      },      "identity": "string",      "model_api": "string",      "name": "string",      "pricing": {        "context_window": 1,        "model": "string",        "provider": "string",        "rules": [          {            "constraint": {              "end_time": "14:15:22Z",              "kind": "always",              "start_date": "2019-08-24",              "start_time": "14:15:22Z",              "weekdays": []            },            "max_input_tokens": 1,            "prices": [              {                "price": "string",                "price_key": "string",                "tiers": []              }            ],            "rule_id": "string",            "service_tier": "string"          }        ],        "source": "string",        "source_revision": "string",        "source_url": "http://example.com"      },      "pricing_warning": "string",      "provider_name": "string",      "ref": {        "model": "string",        "provider": "string"      },      "release_date": "2019-08-24"    }  ],  "status": "ready"}