@angelyeye/dsh-cost-tracker 1.9.6 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +50 -0
- package/README.md +3 -3
- package/docs/THIRD-PARTY-NOTICES.md +1 -1
- package/docs/provider-pricing.json +585 -91
- package/index.js +1 -1
- package/package.json +1 -1
- package/pricing.js +36 -6
- package/vendor-catalog.js +7 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,56 @@
|
|
|
2
2
|
|
|
3
3
|
本文件用中文记录 dsh-cost-tracker 的版本变更。
|
|
4
4
|
|
|
5
|
+
## v1.10.0(2026-10-25)
|
|
6
|
+
|
|
7
|
+
**模型目录刷新到 2026-10-25 官方口径:15 家厂商 / 141 个条目(新增 51、改价 10、口径修正 25);火山方舟 Coding Plan 白名单按官方现行 13 个 Model Name 复核,并给「泛 volcengine」分支补上日期后缀容忍**
|
|
8
|
+
|
|
9
|
+
### 一、多厂商目录:新增了哪些新模型
|
|
10
|
+
|
|
11
|
+
目录上次刷新是 2026-08-18(`generatedAt` 可查),两个多月里各家的新旗舰与降价款都没进来。本次逐家复核,`providers` 从 14 家 90 条扩到 **15 家 141 条**(新增 51,改价 10,其余为来源/口径修正 25;删除 0 条,下线模型一律保留并打 `notes` 标记,便于历史记录核对)。
|
|
12
|
+
|
|
13
|
+
| 厂商 | 本次新增(部分) | 变化要点 |
|
|
14
|
+
|---|---|---|
|
|
15
|
+
| OpenAI | `gpt-6-astra` / `gpt-6-sol` / `gpt-6.1-sol` / `gpt-6-luna` | `gpt-5.6-sol` **降价 $5/$30 → $4/$20** |
|
|
16
|
+
| Anthropic | `claude-fable-5-1`、`claude-mythos-5-1`、`claude-opus-5-5`、`claude-sonnet-5-5`、`claude-haiku-5-5` | `claude-sonnet-5` 早鸟价 `$2/$10` 经官方 2026-08-10 公告**永久化**,notes 修正 |
|
|
17
|
+
| Google | `gemini-4-argon`(5 折至 2026-11-30)、`gemini-3.8-flash` | 3.7/3.8 Flash 促销口径两源冲突,notes 标「未核实」 |
|
|
18
|
+
| Moonshot | `kimi-k3.1-pro`、`kimi-k3.1-pro-highspeed` | `kimi-k2.5` 官方 2026-08-31 下线(保留 + notes) |
|
|
19
|
+
| 智谱 z-ai | `glm-5.3-flash`、`glm-5.3-flashx`;`glm-5.3` **由 unpriced 恢复精确价** `$1.40/$4.40` | 官方已公布单价,原「不编造价格」占位作废 |
|
|
20
|
+
| xAI | `grok-4.7`、`grok-4.20-0309-reasoning` / `-non-reasoning` / `multi-agent-0309` | `grok-4.3` 补 `cachedInput 0.20`;各档补 >200K 分档说明 |
|
|
21
|
+
| Alibaba | `qwen3.8-flash` | `qwen3.8-max` / `qwen3.7-max` 缓存读价按官方 10% 修正为 `0.20` / `0.25` |
|
|
22
|
+
| MiniMax | `minimax-m3.1-flash`(¥1/¥0.10/¥4,按 7.2 折算) | `minimax-m3` 补 >512K 档与 priority ×1.5 说明 |
|
|
23
|
+
| 腾讯混元 | `hy4-preview`(¥6/¥0.30/¥18 折算) | `hunyuan-a13b` 原值实为**人民币刊例价**,改为美元口径 `0.069/0.278`;`hy3` 升为 official |
|
|
24
|
+
| 小米 MiMo | `mimo-v2.6-pro` / `mimo-v2.6-flash` / `mimo-v2.6-pro-ultraspeed` | `mimo-v2.5` 系 2026-10-21 10:00 下线(保留 + notes) |
|
|
25
|
+
| Upstage | `solar-mini-4` | `solar-pro4` 2026-10-20 起 5 折;`solar-pro3` 2026-10-30 停服(notes) |
|
|
26
|
+
| NVIDIA | `nemotron-3.5-lightning-30b-a3b`、`nemotron-3.5-super-vl-120b-a12b` | 官方仍未公布 token 单价,保持 `unpriced` |
|
|
27
|
+
| Mistral | `mistral-large-4`(Public Preview)、`mistral-small-2603`(原 `mistral-small-4.0` 更名)、`ministral-14b/8b/3b-2512` | 官方价表未列缓存价,缓存值 notes 标「未核实」 |
|
|
28
|
+
| **Meta(新厂商)** | `muse-wonder-1.0`、`muse-spark-1.3`、`muse-spark-1.2` | 新增 provider 别名 `meta` / `meta-ai` / `muse` |
|
|
29
|
+
| OpenCode Go 档 | 补 17 条:`grok-4.7`、`glm-5.3`(原 unpriced → `$1.40/$4.40`)、`kimi-k3.1-pro`、`gpt-6-luna`、`gemini-4-argon`、`hy4-preview`、`deepseek-v4.1-flash` / `v4-pro` 等 | 订阅档按「固定月费 + 每模型月度美元额度」计量,token 单价与按量档一致 |
|
|
30
|
+
|
|
31
|
+
**未收录的模型与原因**(不编造价格):
|
|
32
|
+
- `Big Pickle` / `Beam` / `Flint 40B` / `LongCat 2.5 Preview`:仅以网关限时免费档存在,或厂商主体未披露,无公开 token 价 → 不落表(`LongCat-2.0` 有网关价,已收录在 OpenCode Go 档);
|
|
33
|
+
- 智谱国内 `bigmodel.cn` 人民币价、Kimi K2.7 / K2.6 官方 API 单价、MiniMax 国际站美元价:官方页本机抓不到正文 → 沿用网关值并在 `notes` 明确标注出处;
|
|
34
|
+
- OpenAI / Google 官方定价页本机返回 403 / DNS 不可达 → 这两家的值取自 OpenCode Console 网关价,`sourceUrl` 如实写网关地址,并用 OpenRouter 端点做交叉核对(一致 / 冲突都在 `notes` 写明)。
|
|
35
|
+
|
|
36
|
+
### 二、火山方舟 Coding Plan 白名单(`pricing.js`)
|
|
37
|
+
|
|
38
|
+
- 白名单从 14 个扩到 **24 个 id**:按官方 2026-10「Coding Plan 个人版快速开始」复核,补入 `kimi-k3`、`kimi-k3.1-pro`、`kimi-k2.8-preview`、`deepseek-v4.1-flash-economy`、`deepseek-v4-flash`、`glm-5.3`、`glm-latest`、`doubao-seed-2.1-lite`、`doubao-seed-2.0-mini`、`doubao-seed-evolving`;`glm-5.2` 列入(2026-08-31 起官方由 `glm-5.3` 承接)。
|
|
39
|
+
- 旧白名单里 9 个「4 月还在、10 月官方清单不列」的 id **不删**:下线公告页本机取不到正文,删错会把仍在售的套餐内模型误标成按量;保留的代价只是极端情况下少算按量花费(方向更安全,符合本项目「宁可漏配也不能错配」的门卫原则)。
|
|
40
|
+
- **新增日期后缀容忍**:方舟模型 id 普遍带 6 位日期后缀(`glm-5-3-flash-260828`、`deepseek-v4-1-flash-260910`、`doubao-seed-2-1-pro-260915`),而 `normalizeModelName` 只去分隔符。专属 coding 端点因「整档订阅」提前 return 不受影响,但**泛 `volcengine` 分支**下这些 id 会漏配 → 被标成「按量 · 估算」。现新增 `stripVolcDateSuffix()`:先剥尾部 `\d{6}` 再查白名单与前缀,`ep-20260413045435-2shmq` 这类接入点 id 仍不会被误判。
|
|
41
|
+
- Kimi 订阅侧无需改动(`SUBSCRIPTION_MODELS` 为 `null` = 整档订阅),`6.5/27.0/1.1/1.1` 仍是估算值——官方明确不公开套餐内 token 等效价。
|
|
42
|
+
|
|
43
|
+
### 三、数据纪律
|
|
44
|
+
|
|
45
|
+
- 每条新增/改动都带 `sourceUrl` + `checkedAt: 2026-10-25`;官方页优先,网关兜底时在 `notes` 写明「取自网关 / 未核实 / 两源冲突」,与仓库既有的「不编造价格」约定一致。
|
|
46
|
+
- `CATALOG_META.generatedAt` 同步为 `2026-10-25`(设置页「数据日期」与云端 `/api/v1/protocol` 都会回显)。
|
|
47
|
+
- 计费优先级不变:手动覆盖价 > 订阅归类 > 内置/同步时代精确价 > 目录 > provider 兜底 > 通用兜底。
|
|
48
|
+
|
|
49
|
+
### 四、测试
|
|
50
|
+
|
|
51
|
+
- `test/vendor-catalog.test.js` 新增断言:`meta` 厂商在列、`glm-5.3` / `gpt-6-astra` / `kimi-k3.1-pro` 可命中(防止「只加 JSON 不加别名」或「占位未清」回归)。
|
|
52
|
+
- `test/pricing.test.js` 更新火山门卫断言到 2026-10 官方白名单(含 `glm-latest` 别名),并新增「泛 volcengine 带日期后缀仍计为订阅」与「接入点 id 仍不误判」两侧断言。
|
|
53
|
+
- 全仓 22 个测试文件逐文件运行全绿,`npm test` 全绿。
|
|
54
|
+
|
|
5
55
|
## v1.9.6(2026-10-17)
|
|
6
56
|
|
|
7
57
|
**新增:余额查询兼容 DSH「DeepSeek 账号登录」——账号态改走宿主 `deepseekAccount.getBalance()`,读取 Platform 钱包(充值 / 赠金);API Key 路径原样保留**
|
package/README.md
CHANGED
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
| 💾 | **本地持久化** | 数据存本机 `~/.dsh/storages/cost-tracker-records.json`,重启不丢、不上传;**明细保留最近 180 天,更早自动压缩为永久日汇总,全时段统计永远精确且内存/磁盘有界** |
|
|
46
46
|
| 🕰️ | **历史导入(v1.9.0)** | 回放宿主会话日志,**把装插件之前的对话调用补录进账本**(按各自时间戳的旧价计费);只补插件不可能记到的部分(安装前 / 停机缺口),幂等可重复执行,导入记录标记 `source=import` 以便区分 |
|
|
47
47
|
| 🔄 | **官方价格同步(v1.9.0)** | 一键抓取官方定价页、解析各模型峰价并对比差异,应用后构建**新的计费时代**(只影响之后,历史口径不回改);每日可自动核对(只提示、不自动应用),页面改版时宁可不同步也绝不写错价 |
|
|
48
|
-
| 🌐 | **多厂商价格目录(v1.9.0)** | 内置
|
|
48
|
+
| 🌐 | **多厂商价格目录(v1.9.0)** | 内置 15 家厂商 / 141 个模型条目(USD→CNY 按可配汇率折算),OpenAI / Anthropic / Gemini / Qwen 等内置表之外的模型也能按**精确价**入账;支持宽松/严格匹配与**手动覆盖价** |
|
|
49
49
|
| ⚖️ | **Plan 与按量双轨(v1.9.0)** | 工具栏「含 Plan 总额」开关一键切换口径:关闭只算按量真金白银、订阅以附注展示;打开则金额 = 按量 + 订阅等值,图表按天并入「订阅等值」段 |
|
|
50
50
|
| 🔐 | **凭据零落盘(v1.9.0)** | 云端令牌与火山 SecretAccessKey 只写 DSH 凭据库(配置文件零明文,旧版明文启动时自动迁移);任何响应只回显布尔;出站请求白名单 + 强制 https + 拒绝跟随重定向(防凭据外带) |
|
|
51
51
|
| 📤 | **CSV 导出** | 一键导出明细 + 日汇总(purpose=rollup),方便用 Excel / Numbers 做进一步分析 |
|
|
@@ -290,7 +290,7 @@ docker compose up -d # 打开 http://<服务器>:8787 ,在「设置」页
|
|
|
290
290
|
### 官方价格同步与多厂商目录(v1.9.0)
|
|
291
291
|
|
|
292
292
|
- **官方价格同步**:配置页里点「核对官方价」抓取官方定价页(中文页直接给出人民币价),解析出各模型峰价并与当前生效价对比;点「应用新价」把结果构建为**新的计费时代** —— 只对生效时刻**之后**的记录生效,历史记录按各自时间戳选版,口径不回改。每日可自动核对(默认开,只提示差异,**绝不自动应用**)。解析器对页面改版 / 数字缺失 / 「空闲价 ≠ 高峰一半」一律抛错,宁可不同步也绝不写错价;
|
|
293
|
-
- **多厂商模型价格目录**:内置
|
|
293
|
+
- **多厂商模型价格目录**:内置 15 家厂商 / 141 个模型条目(OpenAI / Anthropic / Google / Moonshot / z-ai / xAI / Alibaba / MiniMax / Tencent / Xiaomi / Upstage / NVIDIA / Mistral / Meta / OpenCode;数据改编自 `dsh-cost-meter` 的初始目录,MIT,2026-10-25 起按各厂商官方定价页逐条复核),按 USD→CNY 汇率(默认 7.2,可改)折算。内置表之外的模型命中目录即记**精确价**(不再标「估算」);匹配模式可选宽松(归一化包含)或严格(名称全等);
|
|
294
294
|
- **手动覆盖价**:`provider/model` → 输入 / 输出 / 缓存价,优先级最高,用于自建端点或议价套餐;
|
|
295
295
|
- **计费优先级**:手动覆盖价 > 订阅归类(Plan)> 内置 / 同步时代精确价 > 多厂商目录 > provider 兜底 > 通用兜底。`cost_prices` 工具与 `/api/cost-tracker/prices` 会一并回显当前时代、同步时代、目录指纹与覆盖价;
|
|
296
296
|
- 云端(`dsh-cost-cloud ≥ v1.4.0`)有同源实现与对应的管理端点,两边口径可对照(`/api/v1/protocol` 回显云端实际使用的价格版本与目录指纹)。
|
|
@@ -485,7 +485,7 @@ POST /api/cost-tracker/export 导出 CSV
|
|
|
485
485
|
- **历史导入**:回放宿主会话日志(多 zstd frame 逐帧解压),补录「装插件之前」的调用。幂等三保险(清单快跳 + 逐调用键去重 + 覆盖判定),跨安装点会话按切割线截断,导入记录标记 `source=import`。默认开机自动执行(延迟 8 秒,不阻塞启动),新 Agent 工具 `cost_import`;
|
|
486
486
|
- **凭据外带防护**:令牌与火山 SK 只写 DSH 凭据库(配置文件零明文),启动时自动迁移旧版明文;所有出站请求走白名单 + 强制 https + `redirect:'manual'`(拒绝跟随 3xx,防重定向把 `Authorization` 带走);任何响应只回显布尔与存储位置;
|
|
487
487
|
- **价格同步**:解析官方定价页(转置价格表:列 = 模型、行 = 指标 × 时段)→ 构建新计费时代,只影响生效时刻之后的记录,历史口径不回改;页面改版 / 数字不齐 / 空闲价非半价一律抛错。每日自动核对只提示差异,应用需手动确认;
|
|
488
|
-
- **多厂商模型价格目录**:
|
|
488
|
+
- **多厂商模型价格目录**:15 家厂商 / 141 个模型条目(USD/1M tokens → 按汇率折 CNY),内置表之外的模型命中即记精确价;匹配模式宽松 / 严格可选;另有手动覆盖价表;
|
|
489
489
|
- **Plan 与按量双轨 + 「含 Plan 总额」开关**:金额卡与图表口径一键切换(关闭只算按量、订阅以附注展示;打开则按量 + 订阅等值并入,图表出现「订阅等值」段),选择存浏览器并回写服务端;
|
|
490
490
|
- **设置集中 + 卡片重设计**:`设置 → 插件 → 插件配置 → 花费统计` 成为唯一设置入口,按「多机汇总 / 峰谷计价与提示 / 订阅套餐与配额 / 计价与价格目录 / 历史导入 / 数据与界面 / 安全与凭据」七个折叠分组排列,顶部状态摘要条;看板上的峰谷面板改为只读回显;
|
|
491
491
|
- **测试**:新增 `test/import.test.js`(合成多帧 zstd 会话日志,37 条断言)、`test/price-sync.test.js`(含真实页面回归)、`test/vendor-catalog.test.js`、`test/credstore.test.js`,`client-render` 增加金额口径开关与卡片分组断言 —— 共 17 个测试文件全绿。
|
|
@@ -39,7 +39,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
39
39
|
SOFTWARE.
|
|
40
40
|
```
|
|
41
41
|
|
|
42
|
-
>
|
|
42
|
+
> 目录初始数据改编自 `dsh-cost-meter`(MIT);**2026-10-25 起**由本项目按各厂商官方定价页(OpenAI / Anthropic / Google / Moonshot / z-ai / xAI / Alibaba / MiniMax / Tencent / Xiaomi / Upstage / NVIDIA / Mistral / Meta / OpenCode)逐条复核刷新,官方页不可达时才使用网关价并在 `notes` 标注。每条都带 `sourceUrl` / `checkedAt` 便于溯源,
|
|
43
43
|
> 仅作**参考折算**用途;实际账单请以各厂商控制台为准。
|
|
44
44
|
|
|
45
45
|
---
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
|
-
"generatedAt": "2026-
|
|
3
|
-
"note": "
|
|
2
|
+
"generatedAt": "2026-10-25",
|
|
3
|
+
"note": "USD per 1M tokens. Refreshed 2026-10-25 from vendor pricing pages (official first, OpenCode Console gateway when official page unreachable; per-entry sourceUrl/checkedAt kept for tracing). Unpriced entries have no verified official price.",
|
|
4
4
|
"providers": {
|
|
5
5
|
"openai": {
|
|
6
6
|
"models": {
|
|
7
7
|
"gpt-5.6-sol": {
|
|
8
|
-
"input":
|
|
9
|
-
"cachedInput": 0.
|
|
10
|
-
"output":
|
|
8
|
+
"input": 4,
|
|
9
|
+
"cachedInput": 0.4,
|
|
10
|
+
"output": 20,
|
|
11
11
|
"billingMode": "flat",
|
|
12
|
-
"sourceUrl": "https://opencode.ai/docs/
|
|
13
|
-
"checkedAt": "2026-
|
|
14
|
-
"notes": "
|
|
12
|
+
"sourceUrl": "https://opencode.ai/v2/docs/console/models/",
|
|
13
|
+
"checkedAt": "2026-10-25",
|
|
14
|
+
"notes": "2026-10 降价(原 $5/$30);≤272K 档;超过 272K 按 $8/$30 计;缓存写入 $5"
|
|
15
15
|
},
|
|
16
16
|
"gpt-5.6-terra": {
|
|
17
17
|
"input": 2,
|
|
@@ -190,6 +190,42 @@
|
|
|
190
190
|
"cachedInput": 0.1,
|
|
191
191
|
"output": 1.6,
|
|
192
192
|
"billingMode": "flat"
|
|
193
|
+
},
|
|
194
|
+
"gpt-6-astra": {
|
|
195
|
+
"input": 10,
|
|
196
|
+
"cachedInput": 1,
|
|
197
|
+
"output": 50,
|
|
198
|
+
"billingMode": "flat",
|
|
199
|
+
"sourceUrl": "https://opencode.ai/v2/docs/console/models/",
|
|
200
|
+
"checkedAt": "2026-10-25",
|
|
201
|
+
"notes": "≤272K 档;超过 272K 按 $20/$75 计;缓存写入 $12.50(>272K $25);OpenRouter 端点交叉核对一致"
|
|
202
|
+
},
|
|
203
|
+
"gpt-6-sol": {
|
|
204
|
+
"input": 2,
|
|
205
|
+
"cachedInput": 0.2,
|
|
206
|
+
"output": 10,
|
|
207
|
+
"billingMode": "flat",
|
|
208
|
+
"sourceUrl": "https://opencode.ai/v2/docs/console/models/",
|
|
209
|
+
"checkedAt": "2026-10-25",
|
|
210
|
+
"notes": "≤272K 档;超过 272K 按 $4/$15 计;缓存写入 $2.50"
|
|
211
|
+
},
|
|
212
|
+
"gpt-6.1-sol": {
|
|
213
|
+
"input": 2,
|
|
214
|
+
"cachedInput": 0.1,
|
|
215
|
+
"output": 10,
|
|
216
|
+
"billingMode": "flat",
|
|
217
|
+
"sourceUrl": "https://opencode.ai/v2/docs/console/models/",
|
|
218
|
+
"checkedAt": "2026-10-25",
|
|
219
|
+
"notes": "≤272K 档;超过 272K 按 $4/$15 计;缓存写入 $2.50"
|
|
220
|
+
},
|
|
221
|
+
"gpt-6-luna": {
|
|
222
|
+
"input": 0.1,
|
|
223
|
+
"cachedInput": 0.01,
|
|
224
|
+
"output": 0.5,
|
|
225
|
+
"billingMode": "flat",
|
|
226
|
+
"sourceUrl": "https://opencode.ai/v2/docs/console/models/",
|
|
227
|
+
"checkedAt": "2026-10-25",
|
|
228
|
+
"notes": "≤272K 档;超过 272K 按 $0.20/$0.75 计;缓存写入 $0.125"
|
|
193
229
|
}
|
|
194
230
|
}
|
|
195
231
|
},
|
|
@@ -250,9 +286,9 @@
|
|
|
250
286
|
"cachedInput": 0.2,
|
|
251
287
|
"output": 10,
|
|
252
288
|
"billingMode": "flat",
|
|
253
|
-
"sourceUrl": "https://
|
|
254
|
-
"checkedAt": "2026-
|
|
255
|
-
"notes": "
|
|
289
|
+
"sourceUrl": "https://www.anthropic.com/claude/sonnet",
|
|
290
|
+
"checkedAt": "2026-10-25",
|
|
291
|
+
"notes": "官方 2026-08-10 公告:$2/$10 早鸟价已永久化($3/$15 不再生效);缓存写入 $2.50"
|
|
256
292
|
},
|
|
257
293
|
"claude-sonnet-4-6": {
|
|
258
294
|
"input": 3,
|
|
@@ -276,6 +312,50 @@
|
|
|
276
312
|
"output": 5,
|
|
277
313
|
"billingMode": "flat",
|
|
278
314
|
"notes": "缓存写入 $1.25"
|
|
315
|
+
},
|
|
316
|
+
"claude-fable-5-1": {
|
|
317
|
+
"input": 10,
|
|
318
|
+
"cachedInput": 0.25,
|
|
319
|
+
"output": 50,
|
|
320
|
+
"billingMode": "flat",
|
|
321
|
+
"sourceUrl": "https://www.anthropic.com/claude/fable",
|
|
322
|
+
"checkedAt": "2026-10-25",
|
|
323
|
+
"notes": "官方 2026-10:Fable 5.1;缓存读 $0.25(比 Fable 5 降 75%);缓存写入 $12.50"
|
|
324
|
+
},
|
|
325
|
+
"claude-mythos-5-1": {
|
|
326
|
+
"input": 10,
|
|
327
|
+
"output": 50,
|
|
328
|
+
"billingMode": "flat",
|
|
329
|
+
"sourceUrl": "https://www.anthropic.com/claude/mythos",
|
|
330
|
+
"checkedAt": "2026-10-25",
|
|
331
|
+
"notes": "官方:仅对受审核组织开放;缓存价未公布"
|
|
332
|
+
},
|
|
333
|
+
"claude-opus-5-5": {
|
|
334
|
+
"input": 4,
|
|
335
|
+
"cachedInput": 0.2,
|
|
336
|
+
"output": 20,
|
|
337
|
+
"billingMode": "flat",
|
|
338
|
+
"sourceUrl": "https://www.anthropic.com/claude/opus",
|
|
339
|
+
"checkedAt": "2026-10-25",
|
|
340
|
+
"notes": "官方 2026-10:比 Opus 5 便宜 20%;fast mode $8/$40;缓存写入 $5.00"
|
|
341
|
+
},
|
|
342
|
+
"claude-sonnet-5-5": {
|
|
343
|
+
"input": 2,
|
|
344
|
+
"cachedInput": 0.2,
|
|
345
|
+
"output": 10,
|
|
346
|
+
"billingMode": "flat",
|
|
347
|
+
"sourceUrl": "https://www.anthropic.com/claude/sonnet",
|
|
348
|
+
"checkedAt": "2026-10-25",
|
|
349
|
+
"notes": "官方 2026-10;缓存写入 $2.50"
|
|
350
|
+
},
|
|
351
|
+
"claude-haiku-5-5": {
|
|
352
|
+
"input": 0.1,
|
|
353
|
+
"cachedInput": 0.01,
|
|
354
|
+
"output": 0.5,
|
|
355
|
+
"billingMode": "flat",
|
|
356
|
+
"sourceUrl": "https://www.anthropic.com/claude/haiku",
|
|
357
|
+
"checkedAt": "2026-10-25",
|
|
358
|
+
"notes": "≤100K 档;超过 100K 按 $0.50/$2.50 计;缓存写入 $0.125"
|
|
279
359
|
}
|
|
280
360
|
}
|
|
281
361
|
},
|
|
@@ -283,11 +363,12 @@
|
|
|
283
363
|
"models": {
|
|
284
364
|
"gemini-3.7-flash": {
|
|
285
365
|
"input": 0.75,
|
|
366
|
+
"cachedInput": 0.075,
|
|
286
367
|
"output": 3.75,
|
|
287
368
|
"billingMode": "flat",
|
|
288
|
-
"sourceUrl": "https://ai
|
|
289
|
-
"checkedAt": "2026-
|
|
290
|
-
"notes": "2026
|
|
369
|
+
"sourceUrl": "https://opencode.ai/v2/docs/console/models/",
|
|
370
|
+
"checkedAt": "2026-10-25",
|
|
371
|
+
"notes": "2026 年底前促销价(列表价 $1.5/$7.5);OpenCode 列 $1.50 而 OpenRouter 现价 $0.75,口径未核实"
|
|
291
372
|
},
|
|
292
373
|
"gemini-3.6-flash": {
|
|
293
374
|
"input": 1.5,
|
|
@@ -353,6 +434,24 @@
|
|
|
353
434
|
"billingMode": "flat",
|
|
354
435
|
"sourceUrl": "https://ai.google.dev/gemini-api/docs/pricing",
|
|
355
436
|
"checkedAt": "2026-08-17"
|
|
437
|
+
},
|
|
438
|
+
"gemini-4-argon": {
|
|
439
|
+
"input": 2,
|
|
440
|
+
"cachedInput": 0.1,
|
|
441
|
+
"output": 10,
|
|
442
|
+
"billingMode": "flat",
|
|
443
|
+
"sourceUrl": "https://opencode.ai/v2/docs/console/models/",
|
|
444
|
+
"checkedAt": "2026-10-25",
|
|
445
|
+
"notes": "列表价 $4/$20;2026-11-30 前 5 折促销;Google 官方定价页本机不可达,数值取自网关"
|
|
446
|
+
},
|
|
447
|
+
"gemini-3.8-flash": {
|
|
448
|
+
"input": 1.5,
|
|
449
|
+
"cachedInput": 0.15,
|
|
450
|
+
"output": 7.5,
|
|
451
|
+
"billingMode": "flat",
|
|
452
|
+
"sourceUrl": "https://opencode.ai/v2/docs/console/models/",
|
|
453
|
+
"checkedAt": "2026-10-25",
|
|
454
|
+
"notes": "网关列 $1.50/$7.50;OpenRouter 端点标 5 折现价 $0.75/$3.75;两源口径不一致,未核实"
|
|
356
455
|
}
|
|
357
456
|
}
|
|
358
457
|
},
|
|
@@ -363,68 +462,112 @@
|
|
|
363
462
|
"cachedInput": 0.3,
|
|
364
463
|
"output": 15,
|
|
365
464
|
"billingMode": "flat",
|
|
366
|
-
"sourceUrl": "https://
|
|
367
|
-
"checkedAt": "2026-
|
|
368
|
-
"notes": "
|
|
465
|
+
"sourceUrl": "https://www.kimi.ai/zh-hans/resources/kimi-k3-1-pro-pricing",
|
|
466
|
+
"checkedAt": "2026-10-25",
|
|
467
|
+
"notes": "上一代旗舰;100 万上下文;官方 USD 价"
|
|
369
468
|
},
|
|
370
469
|
"kimi-k2.7-code": {
|
|
371
470
|
"input": 0.95,
|
|
372
471
|
"cachedInput": 0.19,
|
|
373
472
|
"output": 4,
|
|
374
473
|
"billingMode": "flat",
|
|
375
|
-
"sourceUrl": "https://opencode.ai/docs/
|
|
376
|
-
"checkedAt": "2026-
|
|
474
|
+
"sourceUrl": "https://opencode.ai/v2/docs/console/models/",
|
|
475
|
+
"checkedAt": "2026-10-25",
|
|
476
|
+
"notes": "官方 API 价目页由前端渲染抓不到;值取自 OpenCode;Batch API 为标准价 60%"
|
|
377
477
|
},
|
|
378
478
|
"kimi-k2.6": {
|
|
379
479
|
"input": 0.95,
|
|
380
480
|
"cachedInput": 0.16,
|
|
381
481
|
"output": 4,
|
|
382
482
|
"billingMode": "flat",
|
|
383
|
-
"sourceUrl": "https://opencode.ai/docs/
|
|
384
|
-
"checkedAt": "2026-
|
|
483
|
+
"sourceUrl": "https://opencode.ai/v2/docs/console/models/",
|
|
484
|
+
"checkedAt": "2026-10-25",
|
|
485
|
+
"notes": "官方 API 价目页抓不到;值取自 OpenCode;K2 系 2026-10-31 起停新注册、12 月底下线"
|
|
385
486
|
},
|
|
386
487
|
"kimi-k2.5": {
|
|
387
488
|
"input": 0.6,
|
|
388
489
|
"cachedInput": 0.1,
|
|
389
490
|
"output": 3,
|
|
390
491
|
"billingMode": "flat",
|
|
391
|
-
"sourceUrl": "https://
|
|
392
|
-
"checkedAt": "2026-
|
|
393
|
-
"notes": "2026-08-
|
|
492
|
+
"sourceUrl": "https://www.kimi.ai/zh-hans/resources/kimi-k3-1-pro-pricing",
|
|
493
|
+
"checkedAt": "2026-10-25",
|
|
494
|
+
"notes": "官方已于 2026-08-31 下线(保留条目供历史记录核对);网关过渡期仍在售"
|
|
495
|
+
},
|
|
496
|
+
"kimi-k3.1-pro": {
|
|
497
|
+
"input": 2,
|
|
498
|
+
"cachedInput": 0.2,
|
|
499
|
+
"output": 10,
|
|
500
|
+
"billingMode": "flat",
|
|
501
|
+
"sourceUrl": "https://www.kimi.ai/zh-hans/resources/kimi-k3-1-pro-pricing",
|
|
502
|
+
"checkedAt": "2026-10-25",
|
|
503
|
+
"notes": "2026-10-23 发布;100 万上下文全窗口统一价;缓存写入 5min $2.00 / 1h $4.00"
|
|
504
|
+
},
|
|
505
|
+
"kimi-k3.1-pro-highspeed": {
|
|
506
|
+
"input": 4,
|
|
507
|
+
"cachedInput": 0.2,
|
|
508
|
+
"output": 20,
|
|
509
|
+
"billingMode": "flat",
|
|
510
|
+
"sourceUrl": "https://www.kimi.ai/zh-hans/resources/kimi-k3-1-pro-pricing",
|
|
511
|
+
"checkedAt": "2026-10-25",
|
|
512
|
+
"notes": "高速版:输入/输出/写入为 2 倍价,缓存读仍 $0.20"
|
|
394
513
|
}
|
|
395
514
|
}
|
|
396
515
|
},
|
|
397
516
|
"z-ai": {
|
|
398
517
|
"models": {
|
|
399
518
|
"glm-5.3": {
|
|
400
|
-
"
|
|
519
|
+
"input": 1.4,
|
|
520
|
+
"cachedInput": 0.26,
|
|
521
|
+
"output": 4.4,
|
|
401
522
|
"billingMode": "flat",
|
|
402
|
-
"
|
|
523
|
+
"sourceUrl": "https://docs.z.ai/guides/overview/pricing",
|
|
524
|
+
"checkedAt": "2026-10-25",
|
|
525
|
+
"notes": "官方 Z.AI 已公布单价(原占位「未公布」作废);缓存存储限时免费"
|
|
403
526
|
},
|
|
404
527
|
"glm-5.2": {
|
|
405
528
|
"input": 1.4,
|
|
406
529
|
"cachedInput": 0.26,
|
|
407
530
|
"output": 4.4,
|
|
408
531
|
"billingMode": "flat",
|
|
409
|
-
"sourceUrl": "https://
|
|
410
|
-
"checkedAt": "2026-
|
|
532
|
+
"sourceUrl": "https://docs.z.ai/guides/overview/pricing",
|
|
533
|
+
"checkedAt": "2026-10-25",
|
|
534
|
+
"notes": "官方价(2026-10 复核);Mistral 分销侧 2026-10-31 退休"
|
|
411
535
|
},
|
|
412
536
|
"glm-5.1": {
|
|
413
537
|
"input": 1.4,
|
|
414
538
|
"cachedInput": 0.26,
|
|
415
539
|
"output": 4.4,
|
|
416
540
|
"billingMode": "flat",
|
|
417
|
-
"sourceUrl": "https://
|
|
418
|
-
"checkedAt": "2026-
|
|
541
|
+
"sourceUrl": "https://docs.z.ai/guides/overview/pricing",
|
|
542
|
+
"checkedAt": "2026-10-25",
|
|
543
|
+
"notes": "官方价(2026-10 复核)"
|
|
419
544
|
},
|
|
420
545
|
"glm-5": {
|
|
421
546
|
"input": 1,
|
|
422
547
|
"cachedInput": 0.2,
|
|
423
548
|
"output": 3.2,
|
|
424
549
|
"billingMode": "flat",
|
|
425
|
-
"sourceUrl": "https://
|
|
426
|
-
"checkedAt": "2026-
|
|
427
|
-
"notes": "2026-05-14
|
|
550
|
+
"sourceUrl": "https://docs.z.ai/guides/overview/pricing",
|
|
551
|
+
"checkedAt": "2026-10-25",
|
|
552
|
+
"notes": "Z.AI 仍列价;OpenCode 标注 2026-05-14 弃用"
|
|
553
|
+
},
|
|
554
|
+
"glm-5.3-flash": {
|
|
555
|
+
"input": 0.15,
|
|
556
|
+
"cachedInput": 0.03,
|
|
557
|
+
"output": 0.5,
|
|
558
|
+
"billingMode": "flat",
|
|
559
|
+
"sourceUrl": "https://docs.z.ai/guides/overview/pricing",
|
|
560
|
+
"checkedAt": "2026-10-25",
|
|
561
|
+
"notes": "新品;网关另有 Free 变体限时免费"
|
|
562
|
+
},
|
|
563
|
+
"glm-5.3-flashx": {
|
|
564
|
+
"input": 0.37,
|
|
565
|
+
"cachedInput": 0.075,
|
|
566
|
+
"output": 1.25,
|
|
567
|
+
"billingMode": "flat",
|
|
568
|
+
"sourceUrl": "https://docs.z.ai/guides/overview/pricing",
|
|
569
|
+
"checkedAt": "2026-10-25",
|
|
570
|
+
"notes": "新品;FlashX-Legal 同价"
|
|
428
571
|
}
|
|
429
572
|
}
|
|
430
573
|
},
|
|
@@ -435,32 +578,72 @@
|
|
|
435
578
|
"cachedInput": 0.5,
|
|
436
579
|
"output": 6,
|
|
437
580
|
"billingMode": "flat",
|
|
438
|
-
"sourceUrl": "https://
|
|
439
|
-
"checkedAt": "2026-
|
|
440
|
-
"notes": "≤200K
|
|
581
|
+
"sourceUrl": "https://docs.x.ai/developers/pricing",
|
|
582
|
+
"checkedAt": "2026-10-25",
|
|
583
|
+
"notes": "≤200K 档;超过 200K 按 $4/$1/$12 计"
|
|
441
584
|
},
|
|
442
585
|
"grok-4.5": {
|
|
443
586
|
"input": 2,
|
|
444
587
|
"cachedInput": 0.3,
|
|
445
588
|
"output": 6,
|
|
446
589
|
"billingMode": "flat",
|
|
447
|
-
"sourceUrl": "https://
|
|
448
|
-
"checkedAt": "2026-
|
|
449
|
-
"notes": "≤200K
|
|
590
|
+
"sourceUrl": "https://docs.x.ai/developers/pricing",
|
|
591
|
+
"checkedAt": "2026-10-25",
|
|
592
|
+
"notes": "≤200K 档;超过 200K 按 $4/$0.60/$12 计"
|
|
450
593
|
},
|
|
451
594
|
"grok-4.3": {
|
|
452
595
|
"input": 1.25,
|
|
596
|
+
"cachedInput": 0.2,
|
|
453
597
|
"output": 2.5,
|
|
454
598
|
"billingMode": "flat",
|
|
455
|
-
"sourceUrl": "https://docs.x.ai/developers/
|
|
599
|
+
"sourceUrl": "https://docs.x.ai/developers/pricing",
|
|
600
|
+
"checkedAt": "2026-10-25",
|
|
601
|
+
"notes": "≤200K 档;超过 200K 按 $2.50/$0.40/$5.00 计;1M 上下文"
|
|
456
602
|
},
|
|
457
603
|
"grok-build-0.1": {
|
|
458
604
|
"input": 1,
|
|
459
605
|
"cachedInput": 0.2,
|
|
460
606
|
"output": 2,
|
|
461
607
|
"billingMode": "flat",
|
|
462
|
-
"sourceUrl": "https://
|
|
463
|
-
"checkedAt": "2026-
|
|
608
|
+
"sourceUrl": "https://docs.x.ai/developers/pricing",
|
|
609
|
+
"checkedAt": "2026-10-25",
|
|
610
|
+
"notes": "256K 上下文;超过 200K 按 $2/$0.40/$4.00 计"
|
|
611
|
+
},
|
|
612
|
+
"grok-4.7": {
|
|
613
|
+
"input": 2,
|
|
614
|
+
"cachedInput": 0.5,
|
|
615
|
+
"output": 6,
|
|
616
|
+
"billingMode": "flat",
|
|
617
|
+
"sourceUrl": "https://docs.x.ai/developers/pricing",
|
|
618
|
+
"checkedAt": "2026-10-25",
|
|
619
|
+
"notes": "≤200K 档;超过 200K 按 $4/$1/$12 计;Batch -20%;Priority ×2"
|
|
620
|
+
},
|
|
621
|
+
"grok-4.20-0309-reasoning": {
|
|
622
|
+
"input": 1.25,
|
|
623
|
+
"cachedInput": 0.2,
|
|
624
|
+
"output": 2.5,
|
|
625
|
+
"billingMode": "flat",
|
|
626
|
+
"sourceUrl": "https://docs.x.ai/developers/pricing",
|
|
627
|
+
"checkedAt": "2026-10-25",
|
|
628
|
+
"notes": "≤200K 档;超过 200K 按 $2.50/$0.40/$5.00 计"
|
|
629
|
+
},
|
|
630
|
+
"grok-4.20-0309-non-reasoning": {
|
|
631
|
+
"input": 1.25,
|
|
632
|
+
"cachedInput": 0.2,
|
|
633
|
+
"output": 2.5,
|
|
634
|
+
"billingMode": "flat",
|
|
635
|
+
"sourceUrl": "https://docs.x.ai/developers/pricing",
|
|
636
|
+
"checkedAt": "2026-10-25",
|
|
637
|
+
"notes": "≤200K 档;超过 200K 按 $2.50/$0.40/$5.00 计"
|
|
638
|
+
},
|
|
639
|
+
"grok-4.20-multi-agent-0309": {
|
|
640
|
+
"input": 1.25,
|
|
641
|
+
"cachedInput": 0.2,
|
|
642
|
+
"output": 2.5,
|
|
643
|
+
"billingMode": "flat",
|
|
644
|
+
"sourceUrl": "https://docs.x.ai/developers/pricing",
|
|
645
|
+
"checkedAt": "2026-10-25",
|
|
646
|
+
"notes": "≤200K 档;超过 200K 按 $2.50/$0.40/$5.00 计"
|
|
464
647
|
}
|
|
465
648
|
}
|
|
466
649
|
},
|
|
@@ -468,54 +651,65 @@
|
|
|
468
651
|
"models": {
|
|
469
652
|
"qwen3.8-max": {
|
|
470
653
|
"input": 2,
|
|
471
|
-
"cachedInput": 0.
|
|
654
|
+
"cachedInput": 0.2,
|
|
472
655
|
"output": 6,
|
|
473
656
|
"billingMode": "flat",
|
|
474
|
-
"sourceUrl": "https://
|
|
475
|
-
"checkedAt": "2026-
|
|
476
|
-
"notes": "
|
|
657
|
+
"sourceUrl": "https://www.alibabacloud.com/help/en/model-studio/model-pricing",
|
|
658
|
+
"checkedAt": "2026-10-25",
|
|
659
|
+
"notes": "International(新加坡);缓存命中 = 输入价 10%;中国北京区更便宜($1.65/$4.951)"
|
|
477
660
|
},
|
|
478
661
|
"qwen3.7-max": {
|
|
479
662
|
"input": 2.5,
|
|
480
|
-
"cachedInput": 0.
|
|
663
|
+
"cachedInput": 0.25,
|
|
481
664
|
"output": 7.5,
|
|
482
665
|
"billingMode": "flat",
|
|
483
|
-
"sourceUrl": "https://
|
|
484
|
-
"checkedAt": "2026-
|
|
485
|
-
"notes": "
|
|
666
|
+
"sourceUrl": "https://www.alibabacloud.com/help/en/model-studio/model-pricing",
|
|
667
|
+
"checkedAt": "2026-10-25",
|
|
668
|
+
"notes": "International;缓存命中 = 输入价 10%"
|
|
486
669
|
},
|
|
487
670
|
"qwen3.7-plus": {
|
|
488
671
|
"input": 0.4,
|
|
489
672
|
"cachedInput": 0.04,
|
|
490
673
|
"output": 1.6,
|
|
491
674
|
"billingMode": "flat",
|
|
492
|
-
"sourceUrl": "https://
|
|
493
|
-
"checkedAt": "2026-
|
|
494
|
-
"notes": "
|
|
675
|
+
"sourceUrl": "https://www.alibabacloud.com/help/en/model-studio/model-pricing",
|
|
676
|
+
"checkedAt": "2026-10-25",
|
|
677
|
+
"notes": "International;≤256K 档,>256K 按 $1.20/$4.80 计;限时 20% off 标注"
|
|
495
678
|
},
|
|
496
679
|
"qwen3.6-plus": {
|
|
497
680
|
"input": 0.5,
|
|
498
681
|
"cachedInput": 0.05,
|
|
499
682
|
"output": 3,
|
|
500
683
|
"billingMode": "flat",
|
|
501
|
-
"sourceUrl": "https://
|
|
502
|
-
"checkedAt": "2026-
|
|
503
|
-
"notes": "
|
|
684
|
+
"sourceUrl": "https://www.alibabacloud.com/help/en/model-studio/model-pricing",
|
|
685
|
+
"checkedAt": "2026-10-25",
|
|
686
|
+
"notes": "International 档;官方 Global 部署域更便宜($0.276/$1.651,>256K $1.101/$6.602)"
|
|
504
687
|
},
|
|
505
688
|
"qwen3.5-plus": {
|
|
506
689
|
"input": 0.2,
|
|
507
690
|
"cachedInput": 0.02,
|
|
508
691
|
"output": 1.2,
|
|
509
692
|
"billingMode": "flat",
|
|
510
|
-
"sourceUrl": "https://
|
|
511
|
-
"checkedAt": "2026-
|
|
512
|
-
"notes": "
|
|
693
|
+
"sourceUrl": "https://www.alibabacloud.com/help/en/model-studio/model-pricing",
|
|
694
|
+
"checkedAt": "2026-10-25",
|
|
695
|
+
"notes": "International 档;官方 Global 部署域列 $0.115(≤128K)/$0.688,>256K $0.573/$3.44"
|
|
513
696
|
},
|
|
514
697
|
"qwen3-plus": {
|
|
515
698
|
"input": 0.4,
|
|
516
699
|
"output": 1.2,
|
|
517
700
|
"billingMode": "flat",
|
|
518
|
-
"sourceUrl": "https://www.alibabacloud.com/help/en/model-studio/model-pricing"
|
|
701
|
+
"sourceUrl": "https://www.alibabacloud.com/help/en/model-studio/model-pricing",
|
|
702
|
+
"checkedAt": "2026-10-25",
|
|
703
|
+
"notes": "官方价目页已不再列示该 id(疑似旧名),保留供历史匹配;新项目请用 qwen-plus / qwen3.x 系列"
|
|
704
|
+
},
|
|
705
|
+
"qwen3.8-flash": {
|
|
706
|
+
"input": 0.15,
|
|
707
|
+
"cachedInput": 0.015,
|
|
708
|
+
"output": 0.47,
|
|
709
|
+
"billingMode": "flat",
|
|
710
|
+
"sourceUrl": "https://www.alibabacloud.com/help/en/model-studio/model-pricing",
|
|
711
|
+
"checkedAt": "2026-10-25",
|
|
712
|
+
"notes": "2026-10 新增;缓存命中按输入价 10%;网关注明 cachedWrite $0.20"
|
|
519
713
|
}
|
|
520
714
|
}
|
|
521
715
|
},
|
|
@@ -526,44 +720,66 @@
|
|
|
526
720
|
"cachedInput": 0.06,
|
|
527
721
|
"output": 1.2,
|
|
528
722
|
"billingMode": "flat",
|
|
529
|
-
"sourceUrl": "https://
|
|
530
|
-
"checkedAt": "2026-
|
|
723
|
+
"sourceUrl": "https://platform.minimax.cn/docs/pricing/overview",
|
|
724
|
+
"checkedAt": "2026-10-25",
|
|
725
|
+
"notes": "官方人民币永久五折 ¥2.10/¥0.42/¥8.40(折算 0.292/0.058/1.167);>512K 档 ¥4.20/¥0.84/¥16.80;priority 档 ×1.5"
|
|
531
726
|
},
|
|
532
727
|
"minimax-m2.7": {
|
|
533
728
|
"input": 0.3,
|
|
534
729
|
"cachedInput": 0.06,
|
|
535
730
|
"output": 1.2,
|
|
536
731
|
"billingMode": "flat",
|
|
537
|
-
"sourceUrl": "https://
|
|
538
|
-
"checkedAt": "2026-
|
|
732
|
+
"sourceUrl": "https://platform.minimax.cn/docs/pricing/overview",
|
|
733
|
+
"checkedAt": "2026-10-25",
|
|
734
|
+
"notes": "官方 2026-10 价目表已不列示(仅 M3/M3.1-Flash);网关仍在售,值取自网关"
|
|
539
735
|
},
|
|
540
736
|
"minimax-m2.5": {
|
|
541
737
|
"input": 0.3,
|
|
542
738
|
"cachedInput": 0.06,
|
|
543
739
|
"output": 1.2,
|
|
544
740
|
"billingMode": "flat",
|
|
545
|
-
"sourceUrl": "https://opencode.ai/docs/
|
|
546
|
-
"checkedAt": "2026-
|
|
547
|
-
"notes": "2026-08-05
|
|
741
|
+
"sourceUrl": "https://opencode.ai/v2/docs/console/models/",
|
|
742
|
+
"checkedAt": "2026-10-25",
|
|
743
|
+
"notes": "2026-08-05 已弃用(网关仍列价,过渡期)"
|
|
744
|
+
},
|
|
745
|
+
"minimax-m3.1-flash": {
|
|
746
|
+
"input": 0.139,
|
|
747
|
+
"cachedInput": 0.014,
|
|
748
|
+
"output": 0.556,
|
|
749
|
+
"billingMode": "flat",
|
|
750
|
+
"sourceUrl": "https://platform.minimax.cn/docs/pricing/overview",
|
|
751
|
+
"checkedAt": "2026-10-25",
|
|
752
|
+
"notes": "官方人民币 ¥1.00/¥0.10/¥4.00,按 7.2 折算;2026-10 新品"
|
|
548
753
|
}
|
|
549
754
|
}
|
|
550
755
|
},
|
|
551
756
|
"tencent": {
|
|
552
757
|
"models": {
|
|
553
758
|
"hunyuan-a13b": {
|
|
554
|
-
"input": 0.
|
|
555
|
-
"output":
|
|
759
|
+
"input": 0.069,
|
|
760
|
+
"output": 0.278,
|
|
556
761
|
"billingMode": "flat",
|
|
557
|
-
"
|
|
762
|
+
"sourceUrl": "https://cloud.tencent.com/document/product/1729/97731",
|
|
763
|
+
"checkedAt": "2026-10-25",
|
|
764
|
+
"notes": "原值为人民币刊例价 ¥0.50/¥2.00,现按 7.2 折算为美元口径;旧混元生文平台已停止新增模型"
|
|
558
765
|
},
|
|
559
766
|
"hy3": {
|
|
560
|
-
"input": 0.
|
|
767
|
+
"input": 0.139,
|
|
561
768
|
"cachedInput": 0.035,
|
|
562
|
-
"output": 0.
|
|
769
|
+
"output": 0.556,
|
|
563
770
|
"billingMode": "flat",
|
|
564
|
-
"sourceUrl": "https://
|
|
565
|
-
"checkedAt": "2026-
|
|
566
|
-
"notes": "
|
|
771
|
+
"sourceUrl": "https://cloud.tencent.com/document/product/1823/130055",
|
|
772
|
+
"checkedAt": "2026-10-25",
|
|
773
|
+
"notes": "官方 TokenHub 模型价格:¥1.00/¥0.25/¥4.00(广州在线推理),按 7.2 折算"
|
|
774
|
+
},
|
|
775
|
+
"hy4-preview": {
|
|
776
|
+
"input": 0.833,
|
|
777
|
+
"cachedInput": 0.042,
|
|
778
|
+
"output": 2.5,
|
|
779
|
+
"billingMode": "flat",
|
|
780
|
+
"sourceUrl": "https://cloud.tencent.com/document/product/1823/130055",
|
|
781
|
+
"checkedAt": "2026-10-25",
|
|
782
|
+
"notes": "官方 TokenHub:¥6.00/¥0.30/¥18.00,按 7.2 折算;新一代生产力模型"
|
|
567
783
|
}
|
|
568
784
|
}
|
|
569
785
|
},
|
|
@@ -574,34 +790,76 @@
|
|
|
574
790
|
"cachedInput": 0.0028,
|
|
575
791
|
"output": 0.28,
|
|
576
792
|
"billingMode": "flat",
|
|
577
|
-
"sourceUrl": "https://
|
|
578
|
-
"checkedAt": "2026-
|
|
793
|
+
"sourceUrl": "https://mimo.mi.com/docs/zh-CN/price/pay-as-you-go",
|
|
794
|
+
"checkedAt": "2026-10-25",
|
|
795
|
+
"notes": "2026-10-21 10:00(UTC+8)正式下线,模型名失效(保留条目供历史核对)"
|
|
579
796
|
},
|
|
580
797
|
"mimo-v2.5-pro": {
|
|
581
798
|
"input": 0.435,
|
|
582
799
|
"cachedInput": 0.003625,
|
|
583
800
|
"output": 0.87,
|
|
584
801
|
"billingMode": "flat",
|
|
585
|
-
"sourceUrl": "https://
|
|
586
|
-
"checkedAt": "2026-
|
|
802
|
+
"sourceUrl": "https://mimo.mi.com/docs/zh-CN/price/pay-as-you-go",
|
|
803
|
+
"checkedAt": "2026-10-25",
|
|
804
|
+
"notes": "2026-10-21 10:00(UTC+8)正式下线,模型名失效(保留条目供历史核对)"
|
|
805
|
+
},
|
|
806
|
+
"mimo-v2.6-pro": {
|
|
807
|
+
"input": 0.435,
|
|
808
|
+
"cachedInput": 0.0036,
|
|
809
|
+
"output": 0.87,
|
|
810
|
+
"billingMode": "flat",
|
|
811
|
+
"sourceUrl": "https://mimo.mi.com/docs/zh-CN/price/pay-as-you-go",
|
|
812
|
+
"checkedAt": "2026-10-25",
|
|
813
|
+
"notes": "海外价 $;国内 ¥3.00/¥0.025/¥6.00;Batch 半价"
|
|
814
|
+
},
|
|
815
|
+
"mimo-v2.6-flash": {
|
|
816
|
+
"input": 0.14,
|
|
817
|
+
"cachedInput": 0.0028,
|
|
818
|
+
"output": 0.28,
|
|
819
|
+
"billingMode": "flat",
|
|
820
|
+
"sourceUrl": "https://mimo.mi.com/docs/zh-CN/price/pay-as-you-go",
|
|
821
|
+
"checkedAt": "2026-10-25",
|
|
822
|
+
"notes": "国内 ¥1.00/¥0.02/¥2.00;Batch 半价"
|
|
823
|
+
},
|
|
824
|
+
"mimo-v2.6-pro-ultraspeed": {
|
|
825
|
+
"input": 4.35,
|
|
826
|
+
"cachedInput": 0.036,
|
|
827
|
+
"output": 8.7,
|
|
828
|
+
"billingMode": "flat",
|
|
829
|
+
"sourceUrl": "https://mimo.mi.com/docs/zh-CN/price/pay-as-you-go",
|
|
830
|
+
"checkedAt": "2026-10-25",
|
|
831
|
+
"notes": "国内 ¥30.00/¥0.25/¥60.00;不支持 batch"
|
|
587
832
|
}
|
|
588
833
|
}
|
|
589
834
|
},
|
|
590
835
|
"upstage": {
|
|
591
836
|
"models": {
|
|
592
837
|
"solar-pro4": {
|
|
593
|
-
"input": 0.
|
|
594
|
-
"cachedInput": 0.
|
|
595
|
-
"output":
|
|
838
|
+
"input": 0.15,
|
|
839
|
+
"cachedInput": 0.03,
|
|
840
|
+
"output": 0.6,
|
|
596
841
|
"billingMode": "flat",
|
|
597
|
-
"sourceUrl": "https://www.upstage.ai/pricing/api"
|
|
842
|
+
"sourceUrl": "https://www.upstage.ai/pricing/api",
|
|
843
|
+
"checkedAt": "2026-10-25",
|
|
844
|
+
"notes": "2026-10-20 起 5 折促销(标价 $0.30/$0.06/$1.20,截止日未公布)"
|
|
598
845
|
},
|
|
599
846
|
"solar-pro3": {
|
|
600
847
|
"input": 0.15,
|
|
601
848
|
"cachedInput": 0.015,
|
|
602
849
|
"output": 0.6,
|
|
603
850
|
"billingMode": "flat",
|
|
604
|
-
"sourceUrl": "https://www.upstage.ai/pricing/api"
|
|
851
|
+
"sourceUrl": "https://www.upstage.ai/pricing/api",
|
|
852
|
+
"checkedAt": "2026-10-25",
|
|
853
|
+
"notes": "2026-10-30(KST)停服(保留条目供历史核对)"
|
|
854
|
+
},
|
|
855
|
+
"solar-mini-4": {
|
|
856
|
+
"input": 0.1,
|
|
857
|
+
"cachedInput": 0.01,
|
|
858
|
+
"output": 0.4,
|
|
859
|
+
"billingMode": "flat",
|
|
860
|
+
"sourceUrl": "https://www.upstage.ai/pricing/api",
|
|
861
|
+
"checkedAt": "2026-10-25",
|
|
862
|
+
"notes": "2026-10-23 起回到标价(促销期曾 $0.03/$0.05)"
|
|
605
863
|
}
|
|
606
864
|
}
|
|
607
865
|
},
|
|
@@ -610,7 +868,23 @@
|
|
|
610
868
|
"nvidia/nemotron-3-ultra-550b-a55b": {
|
|
611
869
|
"unpriced": true,
|
|
612
870
|
"billingMode": "flat",
|
|
613
|
-
"
|
|
871
|
+
"sourceUrl": "https://build.nvidia.com/models",
|
|
872
|
+
"checkedAt": "2026-10-25",
|
|
873
|
+
"notes": "官方 API Catalog 未公布 token 单价,仅提供免费 trial;OpenCode 限时免费端点"
|
|
874
|
+
},
|
|
875
|
+
"nvidia/nemotron-3.5-lightning-30b-a3b": {
|
|
876
|
+
"unpriced": true,
|
|
877
|
+
"billingMode": "flat",
|
|
878
|
+
"sourceUrl": "https://build.nvidia.com/models",
|
|
879
|
+
"checkedAt": "2026-10-25",
|
|
880
|
+
"notes": "官方未公布 token 单价(1M 上下文,30B/A3B);OpenCode 限时免费端点"
|
|
881
|
+
},
|
|
882
|
+
"nvidia/nemotron-3.5-super-vl-120b-a12b": {
|
|
883
|
+
"unpriced": true,
|
|
884
|
+
"billingMode": "flat",
|
|
885
|
+
"sourceUrl": "https://build.nvidia.com/models",
|
|
886
|
+
"checkedAt": "2026-10-25",
|
|
887
|
+
"notes": "官方未公布 token 单价(120B/A12B 视觉语言);OpenCode 限时免费端点"
|
|
614
888
|
}
|
|
615
889
|
}
|
|
616
890
|
},
|
|
@@ -620,19 +894,69 @@
|
|
|
620
894
|
"input": 0.5,
|
|
621
895
|
"cachedInput": 0.05,
|
|
622
896
|
"output": 1.5,
|
|
623
|
-
"billingMode": "flat"
|
|
897
|
+
"billingMode": "flat",
|
|
898
|
+
"sourceUrl": "https://docs.mistral.ai/inference/pricing",
|
|
899
|
+
"checkedAt": "2026-10-25",
|
|
900
|
+
"notes": "GA;官方价表未列缓存价,缓存值未核实"
|
|
624
901
|
},
|
|
625
902
|
"mistral-medium-3.5": {
|
|
626
903
|
"input": 1.5,
|
|
627
904
|
"cachedInput": 0.15,
|
|
628
905
|
"output": 7.5,
|
|
629
|
-
"billingMode": "flat"
|
|
906
|
+
"billingMode": "flat",
|
|
907
|
+
"sourceUrl": "https://docs.mistral.ai/inference/pricing",
|
|
908
|
+
"checkedAt": "2026-10-25",
|
|
909
|
+
"notes": "GA(API 名 mistral-medium-3-5);官方未列缓存价,缓存值未核实"
|
|
630
910
|
},
|
|
631
911
|
"mistral-small-4.0": {
|
|
632
912
|
"input": 0.15,
|
|
633
913
|
"cachedInput": 0.015,
|
|
634
914
|
"output": 0.6,
|
|
635
|
-
"billingMode": "flat"
|
|
915
|
+
"billingMode": "flat",
|
|
916
|
+
"sourceUrl": "https://docs.mistral.ai/inference/pricing",
|
|
917
|
+
"checkedAt": "2026-10-25",
|
|
918
|
+
"notes": "GA;官方 API 名已改为 mistral-small-2603;官方未列缓存价,缓存值未核实"
|
|
919
|
+
},
|
|
920
|
+
"mistral-large-4": {
|
|
921
|
+
"input": 1.36,
|
|
922
|
+
"cachedInput": 0.14,
|
|
923
|
+
"output": 4.18,
|
|
924
|
+
"billingMode": "flat",
|
|
925
|
+
"sourceUrl": "https://docs.mistral.ai/inference/pricing",
|
|
926
|
+
"checkedAt": "2026-10-25",
|
|
927
|
+
"notes": "Public Preview(2026-10-06);官方三处材料均无 50% 促销字样,网关标 \"(50% off)\" 且未给截止日"
|
|
928
|
+
},
|
|
929
|
+
"mistral-small-2603": {
|
|
930
|
+
"input": 0.15,
|
|
931
|
+
"output": 0.6,
|
|
932
|
+
"billingMode": "flat",
|
|
933
|
+
"sourceUrl": "https://docs.mistral.ai/inference/pricing",
|
|
934
|
+
"checkedAt": "2026-10-25",
|
|
935
|
+
"notes": "原 mistral-small-4.0 的 API 名(官方 2026-10 更名);官方价表未列缓存价"
|
|
936
|
+
},
|
|
937
|
+
"ministral-14b-2512": {
|
|
938
|
+
"input": 0.2,
|
|
939
|
+
"output": 0.2,
|
|
940
|
+
"billingMode": "flat",
|
|
941
|
+
"sourceUrl": "https://docs.mistral.ai/inference/pricing",
|
|
942
|
+
"checkedAt": "2026-10-25",
|
|
943
|
+
"notes": "输入=输出同价;官方未列缓存价"
|
|
944
|
+
},
|
|
945
|
+
"ministral-8b-2512": {
|
|
946
|
+
"input": 0.15,
|
|
947
|
+
"output": 0.15,
|
|
948
|
+
"billingMode": "flat",
|
|
949
|
+
"sourceUrl": "https://docs.mistral.ai/inference/pricing",
|
|
950
|
+
"checkedAt": "2026-10-25",
|
|
951
|
+
"notes": "输入=输出同价;官方未列缓存价"
|
|
952
|
+
},
|
|
953
|
+
"ministral-3b-2512": {
|
|
954
|
+
"input": 0.1,
|
|
955
|
+
"output": 0.1,
|
|
956
|
+
"billingMode": "flat",
|
|
957
|
+
"sourceUrl": "https://docs.mistral.ai/inference/pricing",
|
|
958
|
+
"checkedAt": "2026-10-25",
|
|
959
|
+
"notes": "输入=输出同价;官方未列缓存价"
|
|
636
960
|
}
|
|
637
961
|
}
|
|
638
962
|
},
|
|
@@ -647,9 +971,13 @@
|
|
|
647
971
|
"checkedAt": "2026-08-17"
|
|
648
972
|
},
|
|
649
973
|
"glm-5.3": {
|
|
650
|
-
"
|
|
974
|
+
"input": 1.4,
|
|
975
|
+
"cachedInput": 0.26,
|
|
976
|
+
"output": 4.4,
|
|
651
977
|
"billingMode": "flat",
|
|
652
|
-
"
|
|
978
|
+
"sourceUrl": "https://opencode.ai/v2/docs/console/go",
|
|
979
|
+
"checkedAt": "2026-10-25",
|
|
980
|
+
"notes": "Go 档在线(:额度 $15);原占位「未公布」作废"
|
|
653
981
|
},
|
|
654
982
|
"glm-5.2": {
|
|
655
983
|
"input": 1.4,
|
|
@@ -770,8 +1098,174 @@
|
|
|
770
1098
|
"billingMode": "flat",
|
|
771
1099
|
"sourceUrl": "https://opencode.ai/docs/go",
|
|
772
1100
|
"checkedAt": "2026-08-17"
|
|
1101
|
+
},
|
|
1102
|
+
"glm-5.3-flash": {
|
|
1103
|
+
"input": 0.15,
|
|
1104
|
+
"cachedInput": 0.03,
|
|
1105
|
+
"output": 0.5,
|
|
1106
|
+
"billingMode": "flat",
|
|
1107
|
+
"sourceUrl": "https://opencode.ai/v2/docs/console/go",
|
|
1108
|
+
"checkedAt": "2026-10-25",
|
|
1109
|
+
"notes": "Go 档在线(额度 $60)"
|
|
1110
|
+
},
|
|
1111
|
+
"grok-4.7": {
|
|
1112
|
+
"input": 2,
|
|
1113
|
+
"cachedInput": 0.5,
|
|
1114
|
+
"output": 6,
|
|
1115
|
+
"billingMode": "flat",
|
|
1116
|
+
"sourceUrl": "https://opencode.ai/v2/docs/console/go",
|
|
1117
|
+
"checkedAt": "2026-10-25",
|
|
1118
|
+
"notes": "Go 档在线(额度 $15);>200K 按 $4/$1/$12 计"
|
|
1119
|
+
},
|
|
1120
|
+
"gpt-6-luna": {
|
|
1121
|
+
"input": 0.1,
|
|
1122
|
+
"cachedInput": 0.01,
|
|
1123
|
+
"output": 0.5,
|
|
1124
|
+
"billingMode": "flat",
|
|
1125
|
+
"sourceUrl": "https://opencode.ai/v2/docs/console/go",
|
|
1126
|
+
"checkedAt": "2026-10-25",
|
|
1127
|
+
"notes": "Go 档在线(额度 $15);>272K 按 $0.20/$0.02/$0.75 计"
|
|
1128
|
+
},
|
|
1129
|
+
"claude-haiku-5-5": {
|
|
1130
|
+
"input": 0.1,
|
|
1131
|
+
"cachedInput": 0.01,
|
|
1132
|
+
"output": 0.5,
|
|
1133
|
+
"billingMode": "flat",
|
|
1134
|
+
"sourceUrl": "https://opencode.ai/v2/docs/console/go",
|
|
1135
|
+
"checkedAt": "2026-10-25",
|
|
1136
|
+
"notes": "Go 档在线(额度 $15);≤100K 档"
|
|
1137
|
+
},
|
|
1138
|
+
"gemini-4-argon": {
|
|
1139
|
+
"input": 2,
|
|
1140
|
+
"cachedInput": 0.1,
|
|
1141
|
+
"output": 10,
|
|
1142
|
+
"billingMode": "flat",
|
|
1143
|
+
"sourceUrl": "https://opencode.ai/v2/docs/console/go",
|
|
1144
|
+
"checkedAt": "2026-10-25",
|
|
1145
|
+
"notes": "Go 档在线(额度 $30);50% 促销至 2026-11-30"
|
|
1146
|
+
},
|
|
1147
|
+
"kimi-k3.1-pro": {
|
|
1148
|
+
"input": 2,
|
|
1149
|
+
"cachedInput": 0.2,
|
|
1150
|
+
"output": 10,
|
|
1151
|
+
"billingMode": "flat",
|
|
1152
|
+
"sourceUrl": "https://opencode.ai/v2/docs/console/go",
|
|
1153
|
+
"checkedAt": "2026-10-25",
|
|
1154
|
+
"notes": "Go 档在线(额度 $15)"
|
|
1155
|
+
},
|
|
1156
|
+
"longcat-2.0": {
|
|
1157
|
+
"input": 0.3,
|
|
1158
|
+
"cachedInput": 0.006,
|
|
1159
|
+
"output": 1.2,
|
|
1160
|
+
"billingMode": "flat",
|
|
1161
|
+
"sourceUrl": "https://opencode.ai/v2/docs/console/go",
|
|
1162
|
+
"checkedAt": "2026-10-25",
|
|
1163
|
+
"notes": "美团 LongCat(Go 档额度 $60);LongCat 2.5 Preview 为限时免费"
|
|
1164
|
+
},
|
|
1165
|
+
"step-5-preview": {
|
|
1166
|
+
"input": 1,
|
|
1167
|
+
"cachedInput": 0.1,
|
|
1168
|
+
"output": 2.7,
|
|
1169
|
+
"billingMode": "flat",
|
|
1170
|
+
"sourceUrl": "https://opencode.ai/v2/docs/console/go",
|
|
1171
|
+
"checkedAt": "2026-10-25",
|
|
1172
|
+
"notes": "Go 档在线(额度 $15)"
|
|
1173
|
+
},
|
|
1174
|
+
"mimo-v2.6-flash": {
|
|
1175
|
+
"input": 0.14,
|
|
1176
|
+
"cachedInput": 0.0028,
|
|
1177
|
+
"output": 0.28,
|
|
1178
|
+
"billingMode": "flat",
|
|
1179
|
+
"sourceUrl": "https://opencode.ai/v2/docs/console/go",
|
|
1180
|
+
"checkedAt": "2026-10-25",
|
|
1181
|
+
"notes": "Go 档在线(额度 $60)"
|
|
1182
|
+
},
|
|
1183
|
+
"mimo-v2.6-pro": {
|
|
1184
|
+
"input": 0.435,
|
|
1185
|
+
"cachedInput": 0.003625,
|
|
1186
|
+
"output": 0.87,
|
|
1187
|
+
"billingMode": "flat",
|
|
1188
|
+
"sourceUrl": "https://opencode.ai/v2/docs/console/go",
|
|
1189
|
+
"checkedAt": "2026-10-25",
|
|
1190
|
+
"notes": "Go 档在线(额度 $15)"
|
|
1191
|
+
},
|
|
1192
|
+
"minimax-m3.1-flash": {
|
|
1193
|
+
"input": 0.15,
|
|
1194
|
+
"cachedInput": 0.015,
|
|
1195
|
+
"output": 0.6,
|
|
1196
|
+
"billingMode": "flat",
|
|
1197
|
+
"sourceUrl": "https://opencode.ai/v2/docs/console/go",
|
|
1198
|
+
"checkedAt": "2026-10-25",
|
|
1199
|
+
"notes": "Go 档在线(额度 $20)"
|
|
1200
|
+
},
|
|
1201
|
+
"qwen3.8-flash": {
|
|
1202
|
+
"input": 0.15,
|
|
1203
|
+
"cachedInput": 0.016,
|
|
1204
|
+
"output": 0.47,
|
|
1205
|
+
"billingMode": "flat",
|
|
1206
|
+
"sourceUrl": "https://opencode.ai/v2/docs/console/go",
|
|
1207
|
+
"checkedAt": "2026-10-25",
|
|
1208
|
+
"notes": "Go 档在线(额度 $30)"
|
|
1209
|
+
},
|
|
1210
|
+
"deepseek-v4.1-flash": {
|
|
1211
|
+
"input": 0.3,
|
|
1212
|
+
"cachedInput": 0.006,
|
|
1213
|
+
"output": 1.2,
|
|
1214
|
+
"billingMode": "flat",
|
|
1215
|
+
"sourceUrl": "https://opencode.ai/v2/docs/console/go",
|
|
1216
|
+
"checkedAt": "2026-10-25",
|
|
1217
|
+
"notes": "Go 档在线(额度 $80);闲时 $0.15/$0.003/$0.60 为高峰半价"
|
|
1218
|
+
},
|
|
1219
|
+
"deepseek-v4-pro": {
|
|
1220
|
+
"input": 1.74,
|
|
1221
|
+
"cachedInput": 0.145,
|
|
1222
|
+
"output": 3.48,
|
|
1223
|
+
"billingMode": "flat",
|
|
1224
|
+
"sourceUrl": "https://opencode.ai/v2/docs/console/go",
|
|
1225
|
+
"checkedAt": "2026-10-25",
|
|
1226
|
+
"notes": "Go 档在线(额度 $15)"
|
|
1227
|
+
},
|
|
1228
|
+
"hy4-preview": {
|
|
1229
|
+
"input": 0.834,
|
|
1230
|
+
"cachedInput": 0.042,
|
|
1231
|
+
"output": 2.501,
|
|
1232
|
+
"billingMode": "flat",
|
|
1233
|
+
"sourceUrl": "https://opencode.ai/v2/docs/console/go",
|
|
1234
|
+
"checkedAt": "2026-10-25",
|
|
1235
|
+
"notes": "Go 档在线(额度 $30)"
|
|
1236
|
+
}
|
|
1237
|
+
}
|
|
1238
|
+
},
|
|
1239
|
+
"meta": {
|
|
1240
|
+
"models": {
|
|
1241
|
+
"muse-wonder-1.0": {
|
|
1242
|
+
"input": 4,
|
|
1243
|
+
"cachedInput": 0.2,
|
|
1244
|
+
"output": 20,
|
|
1245
|
+
"billingMode": "flat",
|
|
1246
|
+
"sourceUrl": "https://opencode.ai/v2/docs/console/models/",
|
|
1247
|
+
"checkedAt": "2026-10-25",
|
|
1248
|
+
"notes": "Meta Model API(dev.meta.ai);标准档"
|
|
1249
|
+
},
|
|
1250
|
+
"muse-spark-1.3": {
|
|
1251
|
+
"input": 1.25,
|
|
1252
|
+
"cachedInput": 0.15,
|
|
1253
|
+
"output": 4.25,
|
|
1254
|
+
"billingMode": "flat",
|
|
1255
|
+
"sourceUrl": "https://opencode.ai/v2/docs/console/models/",
|
|
1256
|
+
"checkedAt": "2026-10-25",
|
|
1257
|
+
"notes": "Meta;另有 Contributor 训练授权折扣档 $0.10/$0.002/$0.20"
|
|
1258
|
+
},
|
|
1259
|
+
"muse-spark-1.2": {
|
|
1260
|
+
"input": 1.25,
|
|
1261
|
+
"cachedInput": 0.15,
|
|
1262
|
+
"output": 4.25,
|
|
1263
|
+
"billingMode": "flat",
|
|
1264
|
+
"sourceUrl": "https://opencode.ai/v2/docs/console/models/",
|
|
1265
|
+
"checkedAt": "2026-10-25",
|
|
1266
|
+
"notes": "Meta;另有 Contributor 训练授权折扣档 $0.10/$0.002/$0.20"
|
|
773
1267
|
}
|
|
774
1268
|
}
|
|
775
1269
|
}
|
|
776
1270
|
}
|
|
777
|
-
}
|
|
1271
|
+
}
|
package/index.js
CHANGED
|
@@ -37,7 +37,7 @@ import { readSettingsSection } from './settings.js'
|
|
|
37
37
|
import { listSessionLogs, planAndBuildImports, loadManifest, IMPORT_SOURCE } from './import.js'
|
|
38
38
|
|
|
39
39
|
/** 插件版本(写入上报信封,便于云端排查版本差异) */
|
|
40
|
-
const PLUGIN_VERSION = '1.
|
|
40
|
+
const PLUGIN_VERSION = '1.10.0'
|
|
41
41
|
setPluginVersion(PLUGIN_VERSION)
|
|
42
42
|
|
|
43
43
|
/** 配置面板可写的字段(与 settings 命名空间一致)。
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angelyeye/dsh-cost-tracker",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"description": "DeepSeek Harness (DSH) plugin: LLM token usage & cost tracking with a settings dashboard, agent tools, HTTP API, persistent storage, multi-device cloud sync, session-log history import, official price sync and a multi-vendor price catalog.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
package/pricing.js
CHANGED
|
@@ -289,10 +289,14 @@ export const VOLCENGINE_PLAN_DEDICATED_PROVIDERS = [
|
|
|
289
289
|
/**
|
|
290
290
|
* 火山方舟 Coding Plan 覆盖的具体模型(原始名,归一化后匹配)。
|
|
291
291
|
*
|
|
292
|
-
*
|
|
293
|
-
*
|
|
294
|
-
*
|
|
295
|
-
*
|
|
292
|
+
* 清单按官方 2026-10 文档「Coding Plan 个人版快速开始」复核:可配置 Model Name
|
|
293
|
+
* 共 13 个(另有控制台托管的 ark-code-latest / Auto)。方舟模型 id 普遍带
|
|
294
|
+
* **6 位日期后缀**(`glm-5-3-flash-260828`、`deepseek-v4-1-flash-260910`、
|
|
295
|
+
* `doubao-seed-2-1-pro-260915`),故匹配时先剥掉该后缀再查表——否则泛
|
|
296
|
+
* volcengine 分支会把套餐内模型漏配成「按量计费 · 价格为估算」。
|
|
297
|
+
*
|
|
298
|
+
* 沿用旧清单的 9 个 id 未删:官方下线公告页本机取不到正文,删错会把仍在售的
|
|
299
|
+
* 套餐内模型误标按量;保留的代价只是极端情况下少算按量花费,方向更安全。
|
|
296
300
|
*/
|
|
297
301
|
const VOLCENGINE_PLAN_MODEL_IDS = [
|
|
298
302
|
'ark-code-latest',
|
|
@@ -302,15 +306,30 @@ const VOLCENGINE_PLAN_MODEL_IDS = [
|
|
|
302
306
|
'doubao-seed-2.0-pro',
|
|
303
307
|
'doubao-seed-2.0-lite',
|
|
304
308
|
'doubao-seed-2.1-pro',
|
|
309
|
+
// 2026-10 官方清单新增:豆包 2.1 Lite / 2.0 Mini / 自动演进档
|
|
310
|
+
'doubao-seed-2.1-lite',
|
|
311
|
+
'doubao-seed-2.0-mini',
|
|
312
|
+
'doubao-seed-evolving',
|
|
305
313
|
// 智谱(含用户配置里的 5.3 flash 带日期变体)
|
|
306
314
|
'glm-4.7',
|
|
307
315
|
'glm-5.1',
|
|
316
|
+
'glm-5.2',
|
|
317
|
+
'glm-5.3',
|
|
308
318
|
'glm-5.3-flash',
|
|
319
|
+
// glm-latest 是官方给 glm-5.3 的别名,归一化后是另一个键,必须单独登记
|
|
320
|
+
'glm-latest',
|
|
309
321
|
// Kimi / DeepSeek / MiniMax
|
|
310
322
|
'kimi-k2.5',
|
|
323
|
+
// 2026-08 起方舟新增的 Kimi 档(原生侧叫 kimi-for-coding / k3 系)
|
|
324
|
+
'kimi-k2.8-preview',
|
|
325
|
+
'kimi-k3',
|
|
326
|
+
'kimi-k3.1-pro',
|
|
311
327
|
'deepseek-v3.2',
|
|
312
328
|
'deepseek-v4-pro',
|
|
313
329
|
'deepseek-v4.1-flash',
|
|
330
|
+
// 2026-10 官方清单新增:经济档与旧名 V4-Flash
|
|
331
|
+
'deepseek-v4.1-flash-economy',
|
|
332
|
+
'deepseek-v4-flash',
|
|
314
333
|
'minimax-m2.5',
|
|
315
334
|
]
|
|
316
335
|
|
|
@@ -345,6 +364,15 @@ export function volcenginePlanModels() {
|
|
|
345
364
|
return out
|
|
346
365
|
}
|
|
347
366
|
|
|
367
|
+
/**
|
|
368
|
+
* 剥掉方舟模型 id 的 6 位日期后缀(归一化后的尾部 `\d{6}`)。
|
|
369
|
+
* 只用于火山白名单匹配,不改变全局 normalizeModelName 的语义。
|
|
370
|
+
* @param {string} n - 已归一化的模型名
|
|
371
|
+
*/
|
|
372
|
+
export function stripVolcDateSuffix(n) {
|
|
373
|
+
return String(n == null ? '' : n).replace(/\d{6}$/, '')
|
|
374
|
+
}
|
|
375
|
+
|
|
348
376
|
/**
|
|
349
377
|
* 解析某次调用是否命中订阅套餐。
|
|
350
378
|
* @param {string} np - 归一化 provider 名
|
|
@@ -366,9 +394,11 @@ export function subscriptionPlanFor(np, model) {
|
|
|
366
394
|
if (VOLCENGINE_PLAN_PROVIDER_KEYS.indexOf(np) < 0) return null
|
|
367
395
|
if (VOLCENGINE_PLAN_DEDICATED_PROVIDERS.indexOf(np) >= 0) return VOLC_PLAN_RATES
|
|
368
396
|
const n = normalizeModelName(model)
|
|
369
|
-
|
|
397
|
+
const bare = stripVolcDateSuffix(n)
|
|
398
|
+
const idx = volcModelIndex()
|
|
399
|
+
if (idx[n] !== undefined || (bare !== n && idx[bare] !== undefined)) return VOLC_PLAN_RATES
|
|
370
400
|
for (const p of VOLCENGINE_PLAN_MODEL_PREFIXES) {
|
|
371
|
-
if (n.startsWith(p)) return VOLC_PLAN_RATES
|
|
401
|
+
if (n.startsWith(p) || (bare !== n && bare.startsWith(p))) return VOLC_PLAN_RATES
|
|
372
402
|
}
|
|
373
403
|
return null
|
|
374
404
|
}
|
package/vendor-catalog.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
// ============================================================
|
|
2
2
|
// DSH 花费统计插件 —— 多厂商模型价格目录(纯逻辑,可独立测试)
|
|
3
3
|
//
|
|
4
|
-
// 数据来源:docs/provider-pricing.json ——
|
|
5
|
-
//
|
|
6
|
-
// sourceUrl / checkedAt
|
|
4
|
+
// 数据来源:docs/provider-pricing.json —— 初版改编自 dsh-cost-meter(MIT License)
|
|
5
|
+
// 的「已核对官方价格目录」,2026-10-25 起按各厂商官方定价页逐条复核刷新
|
|
6
|
+
// (官方页不可达时才用网关价并标注),保留每个条目的 sourceUrl / checkedAt
|
|
7
|
+
// 以便溯源;条目单价为 **USD / 1M tokens**。
|
|
7
8
|
//
|
|
8
9
|
// 本插件账本恒以人民币(CNY)入账,因此目录价在计费时按 `catalogFxRate`
|
|
9
10
|
// (默认 7.2,可在配置面板修改)折算为 CNY。缓存写入价沿用目录约定:
|
|
@@ -25,9 +26,9 @@ import { readFileSync } from 'node:fs'
|
|
|
25
26
|
import { createHash } from 'node:crypto'
|
|
26
27
|
|
|
27
28
|
export const CATALOG_META = {
|
|
28
|
-
generatedAt: '2026-
|
|
29
|
+
generatedAt: '2026-10-25',
|
|
29
30
|
note: 'USD per 1M tokens; unpriced entries have no verified official price.',
|
|
30
|
-
origin: 'adapted from dsh-cost-meter docs/provider-pricing.json (MIT)',
|
|
31
|
+
origin: 'adapted from dsh-cost-meter docs/provider-pricing.json (MIT); refreshed from vendor pricing pages 2026-10-25',
|
|
31
32
|
}
|
|
32
33
|
|
|
33
34
|
/** 目录价 USD→CNY 默认汇率(可在配置中覆盖) */
|
|
@@ -53,6 +54,7 @@ export const PROVIDER_ALIASES = {
|
|
|
53
54
|
upstage: 'upstage', solar: 'upstage',
|
|
54
55
|
nvidia: 'nvidia', 'nvidia-nim': 'nvidia',
|
|
55
56
|
mistral: 'mistral', mistralai: 'mistral',
|
|
57
|
+
meta: 'meta', 'meta-ai': 'meta', muse: 'meta',
|
|
56
58
|
opencode: 'opencode-go', 'opencode-go': 'opencode-go', opencodego: 'opencode-go',
|
|
57
59
|
}
|
|
58
60
|
|