AI 用量成本审计分析

SKILL研究检索

原名 AI Cost Audit · 标识 token-cost-audit-en

研究检索 未标注权限 许可证不明确
安装这个技能

导入用量导出数据后,按团队和任务拆分成本,算出单位经济性,并给出换用更便宜模型或自建的盈亏平衡点,帮你看清 AI 账单花在哪。

一句话选型结论

按资料字段整理

AI 用量成本审计分析是研究检索类的 Agent Skill,安装方式未标注,权限级别未标注,许可证不明确,有可直接复制的安装命令。技能本质是给模型读的说明书,效果取决于模型与客户端;装完先用一个小任务验证,再放进正式流程。

分类研究检索 安装方式未标注 权限级别未标注权限 许可证许可证不明确
累计安装 未标注 本周 未标注
GitHub 星标 未标注 仓库 未标注
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

未标注
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
skillhub install user_fe2bf65a/token-cost-audit-en
  1. 1
    确认客户端支持

    确认你的客户端支持 Skills(Claude、Codex、Cursor 等),并升级到较新的版本。

  2. 2
    拿到技能文件

    执行上面的命令安装;也可以把仓库里的 SKILL.md 手动放进客户端的 skills 目录。

  3. 3
    刷新技能列表

    重新打开客户端,或刷新技能列表,让新放进来的技能被加载。

  4. 4
    验证是否生效

    问一句「你有哪些技能」,确认列表里出现它,再拿一个小任务试跑。

技能档案

研究检索
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方user_fe2bf65a仓库 未标注 · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式未标注安装包 community
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验2026-11-06上游最后核验时间 · 数据更新 2026-11-06
正文体量11.8 KBSKILL.md 原文大小,越大说明说明书写得越细

能做什么

0 项能力
上游给出的能力概览与适用场景
查清 AI 账单去向按团队拆分模型成本测算换模型盈亏平衡

典型使用场景

3 类
按分类整理的常见用法,具体以 SKILL.md 为准
查资料并整理出处

让模型按主题查资料,并把引用来源整理成清单。

网页与文献要点提炼

把长文、论文、网页压成能直接看的要点。

竞品与行业汇总

按关键词汇总竞品动态与行业信息。

选择建议

装之前先看这几条
按条目字段给出的判断,不替你决定用不用

值得选的地方

  • 有可直接复制的安装命令,不用自己翻文档找入口。

先想清楚的地方

  • 没有标注权限级别,实际能做什么要装好后确认。
  • 许可证不明确,商用或二次分发前先到仓库确认条款。
  • 没有做站内核验,内容以作者仓库为准。
  • 技能只是说明书,实际效果取决于模型与客户端,装完先用小任务试一遍。

更适合

  • 需要在研究检索场景里给模型补一套做法的人。
  • 愿意先读一遍 SKILL.md、确认它会让模型做什么的人。

不太适合

  • 对许可证要求很严、必须明确可商用的人。
  • 只想装完就自动变强、不打算看说明书的人。

同类对比

6 个同类
同分类里挑最接近的几条,字段以各自详情页为准
技能权限级别安装方式累计安装宿主客户端安装命令
AI 用量成本审计分析当前 未标注权限 未标注 未标注 未标注 有
寻找技能 浏览器控制 GitHub 仓库 3120.0 万 Codex、Claude、Cursor 有
自我改进 Agent 接触敏感数据 ClawHub 市场 1646.4 万 OpenClaw 有
灵魂追踪 联网访问 GitHub 仓库 758.9 万 Codex、Claude、Cursor 有
自我完善 联网访问 ClawHub 市场 682.9 万 OpenClaw 有
微软代工厂 调用外部服务 GitHub 仓库 661.4 万 Codex、Claude、Cursor 有

SKILL.md 全文

11.8 KB
模型实际读到的说明书原文,来自技能仓库

AI Cost Audit (token-cost-audit-en)

Turn "why did the AI bill jump again" into data you can take into a meeting: where the money went, what a task actually costs, what switching would save, whether self-hosting pays off, and which lever to pull first.

When to use

Trigger:

  • "AI costs are too high", "audit our token spend", "how much did we spend on API calls"
  • "how do I analyze OpenRouter / LiteLLM / Helicone usage", "Claude Code billing"
  • "how much would switching to DeepSeek / GLM / a small model save, and what breaks"
  • "is self-hosting worth it", "at what volume should we buy GPUs"
  • Quarterly budget reviews, explaining AI ROI to leadership

Do not trigger:

  • Just wanting a vendor pricing page or a leaderboard — that is news, not an audit
  • Benchmarking model quality (running MMLU, SWE-bench and friends) — this skill does money and volume only
  • Optimizing non-AI cloud spend (EC2, object storage, egress)
  • Formal accounting treatment (capitalization, amortization policy)

Three things to settle first, or the numbers will be wrong

  1. Listed spend is not actual cost. Cache hits, batch discounts, free credits, flat subscriptions and grants all move the bill away from "tokens × unit price". Two public reference points: on OpenRouter, Chinese models account for roughly 65% of token volume but only 29% of listed spend — DeepSeek alone is about 32% of volume against 6% of spend. Reading a price table instead of your own bill produces conclusions that are off by half.
  2. Unit price is not comparable across models — cost per completed task is. A cheap model may emit longer output, retry more, and stuff more context, easily doubling real cost. An expensive model that gets it right in one pass can be cheaper. So the third column is always cost per task, never dollars per million tokens.
  3. Part of the saving turns into review labor. Drop a capability tier and rework plus review time goes up. Any savings figure must carry a "share requiring human review" column, or engineering will reject the plan in the first meeting.

Steps

0. Get the data (10 minutes, decides everything downstream)

Three sources, pick by availability, prefer the first:

Source What you get How
Gateway logs (best) per-call model, tokens, latency, caller, task tag LiteLLM / Helicone / self-built gateway export to CSV or JSONL; without task tags, use the app name from metadata
Vendor billing daily and per-model volume and amount Anthropic / OpenAI / cloud console billing export
OpenRouter activity per-model, per-key usage and spend Settings → Activity → Export, gives one record per call

Minimum column set (fill what is missing; if too much is missing, add instrumentation before optimizing):

timestamp,model,team,project,task_type,input_tokens,output_tokens,cache_read_tokens,cost_usd,tasks
2026-11-01T10:00:00Z,claude-haiku-5.5,platform,checkout,code_review,12000,1800,9000,0.0041,1

If cost_usd exists, use it — that is the accurate number. If not, the script estimates from the price table and the report says so.
tasks is the business volume for that row (one task, one PR, one session). Without it you can only reach dollars per million tokens.

Checkpoint: at least 14 days covering 80%+ of spend. One week gets skewed by release cycles.

1. Run the audit (one command)

python3 scripts/cost_audit.py --input usage.csv --prices prices.json --group-by team,task_type,model

Six sections out: totals (tokens / cost / blended price / cache hit rate), the four-dimension split, top spenders, unit economics, anomalies (a single row 10x the mean, cache hit rate below 20%, the same task spread across models), and any models missing a price.

Checkpoint: totals within 5% of the finance bill. If not, reconcile basis first (timezone, tax, credits).

2. Split the cost: find the actual 20%

Read three tables, not the total:

  • By team — who burns it, and does that match their output
  • By task type — 60–80% of spend usually sits in one or two task types (long-context code review, agent loops, bulk summarization)
  • By model — is anyone using a flagship model to classify, tag or format

Checkpoint: you can state the top three spenders, their shares, and who owns each.

3. Unit economics (the only basis business will discuss)

Use the four formulas in references/unit-economics.md: cost per task, per pull request, per active user, per thousand lines of code.

The one-line conclusion must read like: "code review costs $0.42 per PR, and 71% of that is stuffing the whole repository into context" — not "we spent $3,800 this month".

Checkpoint: one unit metric that can be compared month over month and has a target.

4. Model-switch simulation

python3 scripts/cost_audit.py --input usage.csv --prices prices.json --switch-to glm-5.3-flash,deepseek-v4-flash

Output is saving, saving percentage and price drop per candidate. Then add two columns by hand — the script cannot supply them:

Add How to estimate
Capability gap run 30–50 real tasks through both models, record first-pass success rate
Review delta every 10 points of first-pass success lost means about 10% of output needs rework; multiply by hourly labor cost

Net saving = model saving − rework labor − one-off migration cost. The third term is the one everyone forgets.

Checkpoint: every candidate has one sentence: "saves X%, needs Y% more review, net positive or negative".

5. Self-hosting TCO and break-even

python3 scripts/cost_audit.py --input usage.csv --self-host gpu_hour=2.4,gpus=8,utilization=0.55,ops_month=3000

The math: monthly fixed cost ÷ (current blended unit price − self-hosted variable unit price) = break-even monthly token volume. Below that volume, self-hosting is always more expensive.

Do not forget: idle capacity (real utilization is 40–60%), model generations falling behind, on-call staffing, and the fact that you will end up running a self-hosted primary plus an API fallback. The full checklist is in references/unit-economics.md.

Checkpoint: state "current volume is N times the break-even", not "self-hosting is cheaper".

6. Optimization list, sorted by ROI — do the first three

Lever Typical saving Cost of doing it When not to
Slim the context (retrieve relevant files, stop dumping the repo) 30–60% needs retrieval task genuinely needs global understanding
Cache hits (stable prompt prefix + enable prompt caching) 20–50% prompt restructure prompts are different every call
Model cascade (small model first, escalate on low confidence) 25–45% one extra hop of latency latency-sensitive paths
Batch / offline queue (batch discount) 40–50% not real-time interactive products
Retry governance (backoff + failure classification) 5–20% client changes failure rate already low
Subscription instead of metered varies per user admin overhead volatile usage

Checkpoint: every row has a monthly dollar figure and an owner. No orphan items.

7. Report and three plans

Report order: one-page conclusion → totals → three split tables → unit economics → switch comparison → self-host verdict → optimization list → appendix (basis and data sources).

Give decision-makers three options, never one:

  • Conservative — context slimming, caching, retry governance only; no model change. Lowest risk, usually 25–40%.
  • Balanced — conservative plus moving 2–3 low-risk task types (classify, summarize, format) to smaller models. 40–60%.
  • Aggressive — balanced plus moving primary coding and reasoning to open or domestic models, and evaluating self-hosting. 60%+, requires A/B and rollback.

Staged migration: move by team or task type, never more than 20% of traffic at once → watch first-pass success, review time and unit cost weekly → expand only after two clean weeks. The rollback switch must exist on day one.

Five traps

Symptom Cause Fix
Your number is far below the bill missing cache writes, image/audio billing, failed retries still billed calibrate against the bill, not tokens × price
Switched to a cheap model, total cost barely moved longer output, more retries, fatter context compare cost per task, not unit price
Cannot split by team logs carry no caller identity add team/key tags at the gateway, then wait two weeks
Self-hosting looks very cheap computed at 100% utilization recompute at real utilization (40–60%)
Engineering rejects the plan only savings were reported, not rework every plan carries a review-delta column

What done looks like

  • Totals within 5% of the finance bill, with the basis written down (tax in/out, credits in/out)
  • Top three spenders named with shares
  • At least one unit metric comparable month over month
  • Every switch candidate has saving / extra review / net result
  • Self-host verdict is a break-even multiple, not an adjective
  • All three plans carry a rollback path and an owner

Hard constraints

  1. Calibrate against the real bill; never present a public price table as a conclusion. Every price table carries a date and is re-checked after 30 days
  2. Always convert to cost per completed business task before comparing models
  3. No savings figure without the review delta beside it
  4. Never share a customer's usage detail or bill; redact client and project names before the report leaves the team
  5. Do not promise a specific saving percentage — give a range and its preconditions

常见问题

5 问
答案由本站依据条目字段整理
AI 用量成本审计分析怎么安装?

在支持 Skills 的客户端里执行:skillhub install user_fe2bf65a/token-cost-audit-en。安装方式为未标注。装完刷新技能列表或重开客户端。

AI 用量成本审计分析支持哪些客户端?

资料没有标注宿主客户端,但只要客户端支持 Skills(Claude、Codex、Cursor 等),一般都能加载。

AI 用量成本审计分析权限高吗,安全吗?

权限级别为未标注权限。安装前先看它会读取或写入哪些内容。

AI 用量成本审计分析收费吗?

本站不代收费用,也没有标注具体价格。是否收费取决于技能本身和所用的模型或客户端,正式使用前按作者说明确认。

AI 用量成本审计分析用什么许可证?

许可证标注为 未说明(许可证不明确)。商用或二次分发前请到仓库确认条款原文。

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 2026-11-06。