Api reference
模型列表
公开的模型目录与定价查询接口,无需鉴权。
GET /api/models
公开接口,无需任何鉴权。返回平台模型数组,与词元广场同源。
主要返回字段:
| 字段 | 说明 |
|---|---|
| name | 模型名,即 chat/completions 请求中的 model |
| vendor | 厂商 |
| description | 模型简介 |
| tags | 能力标签数组 |
| contextLength | 上下文长度说明 |
| category | 模型分类 |
| badge | 角标(如「新」「限时折扣」),无则 null |
| inputPrice / outputPrice | 输入 / 输出单价,单位「元 / 百万 tokens」 |
| cachedInputPrice / cacheWritePrice | 缓存命中 / 缓存写入单价,未配置时按输入价计 |
| originalInputPrice / originalOutputPrice | 划线原价,用于折扣展示 |
| billingMode | 计费模式:TOKEN 按 token;PER_CALL 按次(unitPrice = 元/次);PER_CHARACTER 按字符(unitPrice = 元/万字符) |
| unitPrice | 按次 / 按字符模式的单价 |
| status | LIVE 表示可调用;其他值待上线(词元广场标注「敬请期待」) |
GET /api/models/{name}
返回单个模型详情,字段同上。
- 模型不存在时返回
404。