Usage based billing

Meter usage. Control access. Collect money worldwide

Send usage events. Set limits, credits, and overages. We handle checkout, taxes, invoices, and local payment methods as your Merchant of Record.

Merchant of Record ON
Metric
API calls
Rate: $0.02 / 1K calls
Used
Included
100,000 calls
Hard limit
150,000 calls
Region
Sales tax 7%

MoR collects tax and issues invoices.

Invoice preview
What the customer sees at checkout
Total bill

$213.36

Base subscription $199.00
API calls
Included: 100,000 calls • Used: 120,000 calls • Hard limit: 150,000 calls
Metered charges $0.4
Subtotal $199.4
Sales tax $13.96
Total
Due now

$213.36

Powered by

Kudos to the Kelviq team for supporting usage-based billing natively. While learning about it and implementing it for Hydrafetch, I realized how many things need to be handled correctly, especially when you’re planning for scale. For Kelviq to support this natively for all its customers, I can only imagine how well thought out the system must be.

Akash Rajpurohit Akash Rajpurohit CEO, Hydrafetch
All-IN-ONE BILLING SYSTEM

Built for usage, credits, and complex pricing

Kelviq unifies usage, access, and checkout in one system.

Meter usage in real time

Count API calls, tokens, storage, or active seats as it happens. Add limits and overages in minutes.

  • Exact-once processing to prevent double billing.
  • Soft and hard limits
  • Alerts when usage spikes

Prepaid credits that customers can top up

Sell credit packs, include credits in plans, and let customers buy more in one click.

  • Credits included in plan
  • Top ups and rollovers
  • Auto-expiring balances
TypeScript example: guardOrThrow fetches an organisation's entitlements, throws UPGRADE when export_pdf is off and LIMIT when export credits are used up, and exportPdf reports one export_credits unit after building the PDF.
1import { kelviq } from "@kelviq/node";2 3async function guardOrThrow(orgId: string) {4  const ent = await kelviq.entitlements.get(orgId);5 6  if (!ent.bool("export_pdf")) throw { code: "UPGRADE" };7 8  const credits = ent.metered("export_credits");9  if (credits.remaining < 1) throw { code: "LIMIT" };10 11  return { maxMb: ent.config("max_upload_mb").number ?? 20 };12}13 14export async function exportPdf(orgId: string, input: any) {15  const { maxMb } = await guardOrThrow(orgId);16 17  const pdf = await buildPdf({ ...input, maxMb });18  await kelviq.usage.report(orgId, { meter: "export_credits",19  amount: 1 });20 21  return { url: pdf.url };22}

Gate features with entitlements

Verify access at the edge or backend. Block features, run trials, and enforce limits with one line of code.

  • Under 100 ms checks
  • Boolean, config, and metered
  • Works with your auth

Plan versions, migrations, and grandfathering

Upgrade customers safely. Roll back changes instanty. Grandfather legacy users without code forks.

  • Version plans without chaos
  • Migrate by segment
  • Override limits per customer

From event to money

  1. 1 Ingest event
  2. 2 Update ledger
  3. 3 Check entitlement
  4. 4 Invoice
  5. 5 Checkout and tax (MoR)

Fast by default

100ms

Entitlement checks stay fast at scale.

  • Cached checks
  • Low latency APIs
  • Zero-latency overhead

Merchant of Record

Sell globally with automated taxes, invoicing, and local payments.

  • Tax ready invoices
  • Local payments
  • Compliance coverage
DROP-IN INFRASTRUCTURE

One API for all usage

Ingest events from any service. Offload aggregation and entitlements to our typed SDKs.

INTEGRATION DETAILS

Common questions

Everything your team needs to know before integrating.

We automatically remove duplicates. If you send the same event twice, we only bill for it once.

Yes. Turn on a hard limit and gate features with entitlements. When usage hits the limit, access can be blocked or routed to upgrade.

Yes. Include credits in the plan, allow top ups, and charge overages when credits run out.

Late events are recorded in the ledger. You can choose how they impact the next invoice.

Yes. Version plans and grandfather customers. You can migrate by segment and roll back if needed.

We can handle taxes, invoices, and local payment methods for global sales. You focus on product.

Start your
software monetization.

Global tax, billing, metering, and entitlements. Ship your revenue stack in one deploy.