Source: https://01router.com/zh/docs/project-models Base URL: https://01router.com/api/v1 # 项目模型目录 使用 GET /api/v1/models?project={id} 读取指定项目的公开模型目录,包含选定供应商与转售价格。不传 project 时返回平台模型;可追加 &type=video 等类型筛选参数。 `GET /api/v1/models` 公开接口 · 无需 API Key ## 输入参数 | Field | Type | Required | Description | Constraints | | --- | --- | --- | --- | --- | | project | string · query | no | 可选项目 ID,使用该项目公开的模型目录和路由配置。 | | | type | string | no | video / image / audio / chat | options: [ "video", "image", "audio", "chat" ] | ## 输出字段 | Field | Type | Required | Description | Constraints | | --- | --- | --- | --- | --- | | project | object | — | id, name | | | data | array | — | 项目模型对象包含 slug、name、type、vendor、description、tags、coverUrl、provider、providerName、params、prices、fromMicros 和 fromUnit。价格包含项目加价;每项为单个 provider,不含 providers 数组。 | | ## cURL ```bash curl 'https://01router.com/api/v1/models?project=YOUR_PROJECT_ID' ``` ## cURL ```bash curl 'https://01router.com/api/v1/models?project=YOUR_PROJECT_ID&type=video' ``` ## 200 · application/json ```json { "object": "list", "project": { "id": "YOUR_PROJECT_ID", "name": "Example project" }, "data": [] } ```