设计与多媒体

metronome

stripe/ai

Guides Metronome usage-based billing integration decisions — event ingestion (single and batch, idempotency, billable metrics), contract design (rate cards, overrides, dimensional pricing, products), invoicing lifecycle (grace periods, finalization, Stripe sync), credit and commit management (prepaid, postpaid, thresholds, auto-recharge), and Stripe integration (arrears invoicing, tax providers, line item limits). Use when building, modifying, or reviewing any Metronome integration — including ingesting usage events, creating customers, contracts, or rate cards, designing billable metric group keys, managing credits and commits, configuring invoicing, syncing invoices with Stripe Billing, billing AI applications for token usage, setting up self-serve (PLG) pricing, reviewing customer health, commit burn, portfolios, or renewals, or migrating from Stripe Billing Meters to Metronome.

  • 511 次安装
  • 2000 星标
  • 收录于

安装命令

npx skills add https://github.com/stripe/ai --skill metronome

SKILL.md

Metronome API base: https://api.metronome.com. Authenticate with a Bearer token in the Authorization header. Always use Contracts (not legacy Plans) for new integrations.

Integration routing

Building… Recommended API Details
Ingesting usage events POST /v1/ingest (batch) Send usage events, the API quickstart, the Ingest API reference, and Set ingest aliases
Defining what to measure Billable Metrics API Create billable metrics
Enterprise pricing agreements Contracts + Rate Cards Provision a customer contract, Create and manage rate cards, and the Create a contract and Add rates API references
Mid-term contract changes Contract Edits Edit a contract, Contract edits and overrides, and Manage contract lifecycle
Invoice lifecycle and finalization Invoices API How Metronome invoices work
Prepaid or postpaid commitments and one-off top-ups Commits + Credits Apply credits and commits to contracts and Payment-gated commits
Syncing invoices to Stripe Stripe billing provider config Invoice with Stripe
Prepaid balances, auto-recharge, spend alerts, and thresholds Notifications API Set prepaid balance thresholds, Enforce spend thresholds, and Threshold notifications

Read the linked page before answering any integration question or writing code; the links return plain Markdown. If no row fits, use the documentation index to find the right page, and append .md to the page URL to fetch it as Markdown.

Operational workflows