Create your Nozle account
Sign up at app.nozle.app and create your first workspace.Get your API keys
From the dashboard, navigate to Settings > API Keys. You will see two keys:| Key prefix | Purpose | Use in |
|---|---|---|
pk_ | Publishable key | Client-side (React, browser) |
sk_ | Secret key | Server-side only (Node.js, Python) |
Install the SDK
- Tab Title
- Tab Title
Initialize the client
Create a Nozle client instance with your secret key.- Tab Title
- Tab Title
nozle.ts
Track your first event
Send a billable event with metadata. Nozle automatically resolves the customer’s active subscription.- Tab Title
- Tab Title
tokens property can drive usage-based charges, while the event name (api_call) increments count-based meters.Check entitlements
Before executing an expensive operation, check whether the customer still has capacity on their plan.- Tab Title
- Tab Title
remaining, limit, and used fields so you can show usage progress in your UI.Add React billing components
Install the React SDK to get pre-built billing UI components.BillingProvider using your publishable key:app/providers.tsx
Show a pricing table and checkout
Drop in aPricingTable to display your plans, and use CheckoutButton to let customers subscribe.app/pricing/page.tsx
useCan hook:What’s next
- SDK Reference — full API docs for Node.js, Python, and React
- Billing Concepts — plans, metrics, and subscriptions
- Entitlements — advanced gating with margin-aware rules
- Self-Hosting — deploy Nozle in your own infrastructure