API $$ v0.4.0
API $$ v0.4.0
在 v0.3.0 的本机 DSH 用量统计上,新增 V4 Flash / V4 Pro 分模型查看与 DeepSeek 官方人民币单价估算。现在可以从余额、Token、每日趋势一路看到每款模型在不同价格时段预计花了多少。
Adds V4 Flash / V4 Pro usage views and CNY cost estimates based on DeepSeek's official pricing to the retained-local-session analytics introduced in v0.3.0.
主要变化 / Highlights
全部 / V4 Flash / V4 Pro三档可点选视图- 每档独立显示今日、本周、本月、累计 Token、预计费用与每日柱状图
- 生效前、空闲、高峰三套官方每百万 Token 单价可切换查看
- 界面标出当前价档、北京时间高峰区间与官方价格来源
- 缓存命中、缓存未命中和输出 Token 分别计价
- 未识别模型继续统计 Token,但明确标为未计价
- 中文、英文、桌面与 390 px 移动端布局
- 候选版升级到正式版时,仅提升安装清单版本,不重复覆盖相同运行文件
- Selectable
All / V4 Flash / V4 Proviews - Per-view today, week, month, all-time Token totals, estimated cost, and daily chart
- Inspectable pre-change, off-peak, and peak official per-million-Token prices
- Separate cache-hit, cache-miss, and output pricing
- Chinese, English, desktop, and 390 px mobile layouts
价格边界 / Pricing scope
费用按每次请求实际发生时刻选择价档:北京时间 2026-08-17 00:00 前使用旧价;之后的高峰窗口是 09:00-12:00 与 14:00-18:00,其余时间使用空闲价。DSH 的 outputTokens 已包含思考 Token,不会再次叠加 reasoningTokens。
The price tier is selected from each call's actual timestamp. Prices before 2026-08-17 00:00 Beijing time remain on the earlier schedule; after that, peak windows are 09:00-12:00 and 14:00-18:00.
价格来源:DeepSeek API 官方定价。面板金额是本机日志估算值,最终扣费以 DeepSeek 官方账单为准。
数据边界 / Data scope
Note
用量和费用只覆盖本机仍保留的 DSH 会话,不包含已删除日志、其他电脑、其他客户端或直接 API 调用。
Usage and cost estimates cover retained local DSH sessions only. Deleted logs and calls from other machines or clients are excluded.
/api/llm.usage 不需要 API Key、不访问外部服务,也不返回提示词或回复正文。
兼容性 / Compatibility
Important
仅支持 @deepseek-ai/dsh@0.1.0-rc.6。这是非官方、版本锁定的补丁包,不是原生 Cordis 插件。
Supports @deepseek-ai/dsh@0.1.0-rc.6 only. This is an unofficial, version-locked patch package, not a native Cordis plugin.
- Windows 10 / 11
- macOS with Bash 3.2 or newer
安装与升级 / Install and upgrade
Read the Chinese install guide or English install guide.
从 v0.2.0、v0.3.0 或 v0.4.0-rc.1 升级时,优先复用原安装目录及其校验备份。完整变化见 CHANGELOG.md。