Launched November 10, 2026
UsageRail

UsageRail

API keys, rate limits, quotas and Stripe usage billing for your API

SubscriptionCodeAPIPayments86 impressions#66 of its week1 comment

Comments

>log in to comment
  • Super[maker]· 22d ago

    I'm the maker. The design choice that shaped everything else was keeping UsageRail out of the request path: the SDK checks keys and limits in your own process, and request and response bodies never leave your server. Framework guides cover Express, Hono, Fastify, Next.js, Cloudflare Workers, FastAPI, Flask and Django. If your stack isn't on that list, or something's missing for how you bill, I'd like to hear about it.

UsageRail is for small teams that sell an API. Its SDK runs inside your own server (Node.js or Python), so requests never pass through a gateway: it checks the API key, applies each customer's rate limit and quota, and counts usage per customer and per route. The hosted service turns those counts into usage billing in your own Stripe account. Overage goes on the customer's renewal invoice, and customers can also buy prepaid credit packs through Stripe Checkout. There's a developer portal where your customers create and rotate their own keys. Free while you bill up to $1,000 a month through it, then from $29 a month. No revenue share.

More Code tools →80 free dev tools →

UsageRail adds API keys, rate limits, quotas and Stripe usage billing to your own server.

for
Small teams that sell an API and want to monetize it themselves.
pricing
freemium
license
MIT
usagerail/sdk 1 0TypeScriptupdated 19 days ago
works withStripe Checkout

Key features

6 features of UsageRail
  • SDK middleware — Node.js and Python SDKs check keys, rate limits and quotas in your server. Node.js benchmark p99: 14.8 µs (overage plan), 19.5 µs (stop at quota), framework excluded.
  • Hosted developer portal — Customers sign up, create/rotate keys, view usage and manage plans on your domain.
  • Stripe usage billing — Usage totals are sent to your Stripe account and added to customers' invoices.
  • Prepaid credit packs — Customers can buy credit packs via Stripe Checkout; balances, expiry and refunds are tracked.
  • Analytics dashboard — View usage by customer, endpoint and outcome with 7-365 days history depending on plan.
  • HTTP check fallback — For non-Node/Python languages you can call a HTTP check endpoint, adding one network call per request.

Use cases

  • Charge per request or per custom unit (e.g., tokens) with overage handling.
  • Offer tiered plans with included request quotas and rate limits.
  • Sell prepaid credit packs for burst usage.
  • Provide a branded self-service portal for API consumers to manage keys and billing.

UsageRail pricing

  • Free$0Bill up to $1,000/month · 1M requests/month · 1 live app · 1,000 end customers
  • Starter$29/month2M requests/month · 1 live app · 10,000 end customers · 30 days analytics
  • Growth$79/month10M requests/month · 3 live apps · Unlimited customers · 90 days analytics
  • Scale$199/month50M requests/month · 10 live apps · Unlimited customers · 365 days analytics

UsageRail vs alternatives

UsageRailZuplo API MonetizationKindeStripe
Best forSelf-hosted API monetization with StripeAPI gateway with monetization built inLogin plus billing for SaaS appsPayments and billing; API access and metering are yours to build
PricingFreemiumFreeSubscriptionSubscription
DevHunt upvotes1100
LaunchedNov 2026Apr 2024——
  • UsageRail vs Zuplo API Monetization: Zuplo covers keys, limits, quotas, plans and a dev portal, but traffic goes through its gateway. UsageRail's SDK runs in your server; requests never pass through us.
  • UsageRail vs Kinde: Kinde creates a new Stripe account for metered billing and leaves rate limiting to your code. UsageRail uses your existing Stripe account and enforces limits in its SDK.
  • UsageRail vs Stripe: Stripe has Checkout, a billing portal and metering; you still issue API keys, enforce limits and report usage. UsageRail does that part, with no revenue share.

UsageRail FAQ

Which languages and frameworks does UsageRail support?+

Node.js SDK works with Express, Hono, Fastify and Next.js; Python SDK works with FastAPI, Flask and Django. Other languages can use the HTTP check endpoint.

What happens if UsageRail is down?+

The SDK keeps a local copy of keys for up to 24 hours, so requests continue serving; unknown keys return 503 and quota-exceeding requests are counted later.

Do you take a cut of my revenue?+

No. Your customers pay into your Stripe account. You pay for your UsageRail plan; on paid monthly plans, HTTP checks over the allowance cost $5 per million.

Can I charge by usage, subscription or prepaid credits?+

Yes. Plans can include a flat fee with included usage, overage charges, or prepaid credit packs that draw down as usage occurs.

Is there a free trial?+

There is no separate trial; the free plan lets you take real payments and you can upgrade or get a full refund within the first month if needed.

Do I have to move existing Stripe customers?+

No. You map existing Stripe prices to UsageRail plans; customers keep their current subscriptions and payments stay in Stripe.

Edited by the makers, based on usagerail.com · Nov 15, 2026. Details may change; check the official site.