llm-api-cost-budgeter

基于请求量、令牌分布、模型定价、重试、缓存和增长情景,预测、比较并控制 LLM API 支出。适用于月度预算、单元经济、模型成本比较、配额规划、成本预警或 AI 工作负载的财务审查。

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "llm-api-cost-budgeter":https://skillpi.com/zh/skills/deepskill-a4425704097adf35d7fbe263a92ff63b94d0b1da5eca3e5211ca5fd85d6c5cbf。安装前核对上游来源和版本:https://skillhub.cn/skills/user_b26bd65e/llm-api-cost-budgeter-b26bd65e。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

skillhub.cn

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

基于请求量、令牌分布、模型定价、重试、缓存和增长情景,预测、比较并控制 LLM API 支出。适用于月度预算、单元经济、模型成本比较、配额规划、成本预警或 AI 工作负载的财务审查。

0 下载

介绍来源: third_party · user_b26bd65e · 1.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
输入和输出
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: llm-api-cost-budgeter
description: Forecast, compare, and control LLM API spend using request volume, token distributions, model pricing, retries, caching, and growth scenarios. Use for monthly budgets, unit economics, model cost comparisons, quota planning, cost alerts, or finance reviews of AI workloads.
slug: llm-api-cost-budgeter-b26bd65e
displayName: LLM API 成本预算器
version: 1.0.1
summary: 根据请求量、Token、重试、缓存和增长情景预测大模型成本,给出预算区间、单位经济性和告警阈值。
license: MIT

LLM API Cost Budgeter

Build an auditable cost model. State assumptions and separate catalog prices from measured bills.

Workflow

  1. Collect model IDs, input/output price per million tokens, cached-token pricing, per-request fees, and currency.

  2. Use P50 and P95 input/output tokens rather than one average when distributions are skewed.

  3. Calculate base monthly cost per model:

    requests * ((input_tokens / 1M) * input_price + (output_tokens / 1M) * output_price)

  4. Add retry amplification, tool-call subrequests, reasoning tokens, search/media fees, and provider markup.

  5. Subtract only verified cache savings; show the assumed hit rate.

  6. Produce low/base/high scenarios for traffic growth and token inflation.

  7. Calculate cost per request, successful task, active user, and business outcome when data exists.

  8. Set warning and critical thresholds below the hard account limit.

Output

Return an assumptions table, monthly model, low/base/high forecast, top three cost drivers, and concrete controls. Flag missing price fields rather than treating them as zero. Never expose API keys or billing identifiers.

Recommend measurement changes when estimates lack actual token and retry telemetry.

当前收录版本

1.0.1

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值92/100

亮点

  • 解决 LLM API 成本控制这一企业级高频刚需场景
  • 功能覆盖完整,支持多维度成本建模和预测
  • 输出包含预算区间、单位经济性和告警阈值等可直接落地的建议
触发精准95/100

亮点

  • 触发词精准覆盖核心功能:预测、比较、控制 LLM API 支出
  • 使用场景描述完整,包括月度预算、单位经济效益、模型成本比较等
  • 边界清晰,不易与其他 Skill 混淆
结构规范85/100

待提升项

  • 缺少 When to Use 章节和端到端示例 原报告严重程度:轻微

    文档缺少显式的使用场景说明和完整示例

    改进建议:建议补充 When to Use 章节和至少一个端到端的成本预算示例

亮点

  • Workflow 步骤清晰,共8个逻辑完整的步骤
  • 包含具体计算公式和数据处理要求
  • frontmatter 信息完整规范
执行可靠90/100

亮点

  • 明确要求使用 P50/P95 分位数处理偏态分布,提升准确性
  • 对缺失价格字段进行显式标记而非默认零值,避免误导
  • 包含安全提醒:不暴露 API keys 或 billing identifiers
  • 建议测量改进机制,当缺乏实际遥测数据时提供指导
证据可验 (前四项均值)91/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。