llm-api-cost-budgeter
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "llm-api-cost-budgeter" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-a4425704097adf35d7fbe263a92ff63b94d0b1da5eca3e5211ca5fd85d6c5cbf. Verify the upstream source and version against https://skillhub.cn/skills/user_b26bd65e/llm-api-cost-budgeter-b26bd65e before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Predicts, compares, and controls LLM API spending based on request volume, token distribution, model pricing, retries, caching, and growth scenarios. Suitable for monthly budgets, unit economics, model cost comparisons, quota planning, cost alerts, or financial review of AI workloads.
Introduction source: third_party · user_b26bd65e · 1.0.1 Reference
SkillPi interpretation
- Tasks
- 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.
- Inputs and outputs
- 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.
- Testing
- Not tested
Browse files
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: MITLLM API Cost Budgeter
Build an auditable cost model. State assumptions and separate catalog prices from measured bills.
Workflow
-
Collect model IDs, input/output price per million tokens, cached-token pricing, per-request fees, and currency.
-
Use P50 and P95 input/output tokens rather than one average when distributions are skewed.
-
Calculate base monthly cost per model:
requests * ((input_tokens / 1M) * input_price + (output_tokens / 1M) * output_price) -
Add retry amplification, tool-call subrequests, reasoning tokens, search/media fees, and provider markup.
-
Subtract only verified cache savings; show the assumed hit rate.
-
Produce low/base/high scenarios for traffic growth and token inflation.
-
Calculate cost per request, successful task, active user, and business outcome when data exists.
-
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.
Current listing version
1.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 解决 LLM API 成本控制这一企业级高频刚需场景
- 功能覆盖完整,支持多维度成本建模和预测
- 输出包含预算区间、单位经济性和告警阈值等可直接落地的建议
Highlights
- 触发词精准覆盖核心功能:预测、比较、控制 LLM API 支出
- 使用场景描述完整,包括月度预算、单位经济效益、模型成本比较等
- 边界清晰,不易与其他 Skill 混淆
Areas to improve
-
缺少 When to Use 章节和端到端示例 Reported severity: Minor
文档缺少显式的使用场景说明和完整示例
Recommendation: 建议补充 When to Use 章节和至少一个端到端的成本预算示例
Highlights
- Workflow 步骤清晰,共8个逻辑完整的步骤
- 包含具体计算公式和数据处理要求
- frontmatter 信息完整规范
Highlights
- 明确要求使用 P50/P95 分位数处理偏态分布,提升准确性
- 对缺失价格字段进行显式标记而非默认零值,避免误导
- 包含安全提醒:不暴露 API keys 或 billing identifiers
- 建议测量改进机制,当缺乏实际遥测数据时提供指导
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.