Skip to main content
Fork the OpenRouter + Polar chatbot demo, add your API keys, and deploy it to ship usage-based billing without building metering from scratch.

Live demo

OpenRouter + Polar chatbot

Chat UI with per-user usage tracking and Polar billing events.

Source repository

Fork and deploy from GitHub:

What the demo shows

  • Vercel AI SDK chat route with Narev billing middleware
  • providerOptions['ai-billing-tags'] with a stable userId on every billed call
  • Polar as the usage destination

What to do next