usage-based-pricing
它能做什么
这个工具可以帮你设计技术服务的计费模式,让开发者容易理解、乐于接受、也能提前预估费用,避免账单上出现令人不快的意外。
适用场景
- ✓当你要推出一项新服务,并需要确定如何收费时。
- ✓当你想审视现有服务的定价,让它更清晰易懂时。
- ✓当你想把自己的定价与竞争对手的做法做比较时。
技能链接
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/usage-based-pricing/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“为一个图片 API 设计按量计费模式,按调用次数和传输的数据量收费。”
每周 5 个新技能,1 分钟读完。
工作原理
这个工具会分析常见的、开发者普遍接受的计量指标,例如 API 调用次数、处理时长或数据传输量。它会根据知名公司的案例,建议你使用哪些指标,以及如何把它们清楚地呈现出来。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Usage-Based Pricing
Detailed Guide
Read the detailed guide before executing this skill. It retains the complete procedure and reference material. Treat its safety, prerequisites, and validation requirements as mandatory. For focused work, load the relevant sections; for end-to-end work, read the guide completely.
When to Use
Use this skill when you need to design pricing models that developers understand, accept, and can predict. Trigger phrases: usage-based pricing, API pricing, metered billing, developer pricing, pricing page, cost calculator, pay as you go, pricing transparency, competitive pricing, developer billing.
Design pricing models that developers understand, accept, and can predict—without surprise bills or confusing metrics.
Usage Metrics Developers Accept
Good Metrics: Direct Value Correlation
API calls/requests
- Developers understand what triggers a call
- Easy to monitor and predict
- Scales with actual usage
- Example: Stripe charges per transaction, Twilio per message
Compute time
- Clear relationship to server costs
- Predictable for consistent workloads
- Fair for variable workloads
- Example: AWS Lambda per GB-second, Vercel build minutes
Storage
- Simple to understand
- Easy to predict growth
- Clear cost driver
- Example: S3 per GB stored, databases per GB
Bandwidth/data transfer
- Makes sense for CDN and hosting
- Can be surprising if not monitored
- Example: Cloudflare per GB, Vercel bandwidth
Active users (MAU)
- Works for auth and user-facing tools
- Aligns with customer's growth
- Example: Auth0, Firebase Auth
Problematic Metrics
"Compute units" or proprietary measures
Bad: "1 CU = 0.25 CPU seconds at 1.5GHz equivalent with 256MB memory allocation"
Developers can't estimate usage.
Compound metrics
Bad: "Charged per operation, where operation = read OR write OR delete,
multiplied by document size factor"
Too complex to predict.
Metrics that punish success
Bad: Per-user pricing that penalizes viral growth
Developer's successful launch becomes a cost crisis.
Metrics with hidden multipliers
Bad: "Per request, but each retry counts, and warming requests count,
and health checks count"
Actual usage is unpredictable.
Metric Selection Framework
| Metric | When It Works | When It Fails |
|---|---|---|
| API calls | Discrete operations | Streaming, persistent connections |
| Compute time | Variable workloads | Idle resources still cost |
| Storage | Data products | Temporary/cache data |
| Bandwidth | CDN, media | Retry-heavy protocols |
| MAU | User-facing apps | Machine-to-machine |
| Seats | Collaboration tools | Individual developers |
Examples: Pricing That Works
Provider names illustrate pricing structures, not current price/plan endorsements. Verify each current regional plan and fee schedule from its official source before comparison or quoting. Designing a model does not authorize live billing changes.
Stripe
- Percentage plus fixed-fee structure; verify the current country, currency and payment-method schedule before quoting a rate
- Aligns with customer revenue
- Predictable and simple
- Volume discounts for scale
Twilio
- Per-message/per-minute pricing
- Clear unit costs
- Usage dashboard and alerts
- Prepaid credits for discount
Vercel
- Clear tier structure
- Generous free tier
- Usage-based for bandwidth/builds
- Team pricing separate
DigitalOcean
- Predictable monthly pricing
- Clear size/price relationship
- Hourly billing option
- Bandwidth included in pricing
Examples: Pricing Problems
Confusing Unit Pricing
Some cloud providers:
- Per "compute unit" (undefined)
- Multiple meters per service
- Different rates for different operations
- Bill requires expert interpretation
Enterprise Tax
Some companies:
- SSO requires enterprise tier
- SSO tier is 10x team tier
- No intermediate option
- Punishes security-conscious teams
Punishing Success
Some user-based pricing:
- Free tier: 100 users
- Paid tier: $0.10/user
- Viral success = immediate $$$
- Discourages growth
Limitations
- Use this skill only when the task clearly matches its upstream source and local project context.
- Verify commands, generated code, dependencies, credentials, and external service behavior before applying changes.
…
常见问题
对开发者来说,最容易理解的计费指标有哪些?
像 API 调用次数、处理时长、存储空间和数据传输量这类指标,通常既容易理解,也便于预估。
我应该避免哪些类型的指标?
应避免定义不清的“计算单元”之类的令人困惑的指标、过于复杂的组合指标,以及会惩罚用户成功使用产品的指标。
“定价透明”是什么意思?
指用户能够准确理解价格是怎么算出来的、哪些操作会产生费用,以及大致的账单金额是多少,不会有意外。
详情
作者的原始描述
Design pricing models that developers understand, accept, and can predict. Trigger phrases: usage-based pricing, API pricing, metered billing, developer pricing, pricing page, cost calculator, pay as you go, pricing transparency, competitive pricing, developer billing
热度
- GitHub 星标
- 48k
- 排名
- #6075
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
00-andruia-consultant
48k帮你的智能体启动或改进 AI 项目。它可以分析代码、推荐工具,并用西班牙语制定行动计划。
007
48k让你的智能体执行安全审计和威胁建模。它有助于保护项目免受攻击和漏洞的威胁。
10-andruia-skill-smith
48k帮你的智能体创建或改进 AI 工具。它可以定义工具的工作方式、编写文档,并验证其结构。
20-andruia-niche-intelligence
48k让你的智能体创建某个特定行业的摘要。它有助于借助可靠的信息来源,了解项目的背景、规则、使用模式和风险。