Live demo
OpenRouter + Polar chatbot
Chat UI with per-user usage tracking and Polar billing events.
Source repository
Fork and deploy from GitHub:- Repo: narevai/chatbot-with-billing-polar
- Stack: OpenRouter,
@ai-billing/openrouter,@ai-billing/polar,@ai-billing/nextjs
What the demo shows
- Vercel AI SDK chat route with Narev billing middleware
providerOptions['ai-billing-tags']with a stableuserIdon every billed call- Polar as the usage destination