Skip to content

Refresh AI API pricing calculator (2026-10-20 official prices + cache estimator) - #242

Draft
chicogong wants to merge 1 commit into
masterfrom
cursor/ai-pricing-refresh-e973
Draft

chicogong wants to merge 1 commit into
masterfrom
cursor/ai-pricing-refresh-e973

Conversation

@chicogong

@chicogong chicogong commented Oct 20, 2026 •

Copy link
Copy Markdown
Owner

描述 / Description

翻新现有 tools/ai/ai-pricing.html:换成 2026-10-20 核过的官方 API 价,并新增「主 Agent 大模型 + 子 Agent 小模型 + 提示缓存」一次任务估算器,附 3 个与手算一致的算例。

不合 master、不上线。未改 #239 / #240 / Dependabot。未跑 npm audit fix --force。

对照范围:Notion 范围页 B;核价表已填进可安壳页。

预览

验证 / Validation

本地四检(本变更相关,全部通过):

npm run build
npm test
npm run lint
npm run format:check
  • 74/74 测试通过
  • 本地 HTMLHint / Stylelint / ESLint / Prettier 通过
  • 浏览器打开本地页:算例 A/B/C 显示「页内重算与手算一致」,「填入估算器」后合计分别为 $0.034752 / $0.077740 / $0.035710

未跑 npm run test:e2e(仓库对存量工具页无对应 e2e)。未登录、未付费。

CI 说明(预存在、与本 PR 无关):GitHub Lint job 里的 npm audit --audit-level=high 会因 lockfile 里已有的 braces / brace-expansion / undici 等高危项失败。这是仓库既有审计债(#240 一类),不是本页改出来的。按停止线不修 Dependabot / braces、不 npm audit fix --force、不放宽 CI。

核价表

缺官方价的行(o1-mini、Claude 3.5 Sonnet、Gemini 2.0 Flash、DeepSeek V3/R1、Llama 3.3/3.1)待核=是,不写数字。页内对比表也不列入这些模型。

算例(页内 = 手算 = 核价表)

算例 主 / 子 合计
A Claude Sonnet 5.5 + Haiku 5.5(≤100K) $0.034752
B GPT-6 Sol + GPT-6 Luna $0.077740
C Gemini 4 Argon(核价日促销价)+ Gemini 3.5 Flash-Lite $0.035710

算法不含首次 cache write 溢价、Batch、Fast、区域加价、Gemini 缓存存储小时费。

检查清单 / Checklist

  • 我已运行 npm run build && npm test && npm run lint && npm run format:check。
  • 我已检查 git diff / git status --short,差异只包含本 PR 预期改动。
  • 已更新 tools.json 描述/关键词并运行 npm run sync:tools。
  • 已写明本地计算、不上传用量、字体走 Google Fonts、价格不实时拉取厂商接口。
  • 已用浏览器核对算例填入与合计;未跑 e2e。
  • 我已经进行了自我代码审查。
Open in Web Open in Cursor 

Replace the stale 2025-01 model list with official API prices, add a
large-plus-small-plus-cache task estimator, and include three worked
examples that match the verification table hand math.

Co-authored-by: chico gong <chicogong@users.noreply.github.com>
@netlify

netlify Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for localtools ready!

Name Link
🔨 Latest commit 310da8b
🔍 Latest deploy log https://app.netlify.com/projects/localtools/deploys/6ad6dd4cf44a08968f466b72
😎 Deploy Preview https://deploy-preview-242--localtools.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@vercel

vercel Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
html-tools Ready Ready Preview Oct 20, 2026 3:17am UTC

This branch was successfully deployed

1 active deployment
Preview — 310da8ba Deployed Oct 20, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants