supabase-community / vercel-ai-chatbot

A full-featured, Supabaseified Next.js AI chatbot built by Vercel Labs & Supabase
https://github.com/thorwebdev/vercel-ai-chatbot/pull/1
Other
577 stars 88 forks source link

Is it possible to integrate token usage based payments with Stripe? #11

Open tsathe opened 1 year ago

tsathe commented 1 year ago

Add Stripe Integration for Token Based Usage

No current problem

I am building an educational chatbot and would like to charge users based on how many tokens they use.

Describe the solution you'd like

I would like users to be able to try one conversation on the platform, then use Stripe to hook up a credit card, buy credits, and be charged for usage.

Describe alternatives you've considered

One possible alternative would be a flat monthly subscription free which is also fine. I am making an MVP and would appreciate help with either option.

Additional context

None