AI content creation app with metered billing
Top 82.4% on sourcepulse
This project provides a complete, production-ready example of an AI content generation application with integrated metered billing and subscription management. It's designed for developers looking to quickly implement usage-based pricing for OpenAI-powered applications, offering features like feature access control, usage reporting, and customer portals.
How It Works
The application leverages Next.js 13 with the App Router for its frontend and backend. It integrates Tier.run for managing subscriptions, metered billing, and feature access, decoupling these concerns from the core application logic. OpenAI is used for AI content generation, and Stripe handles payment processing. Authentication is managed via Auth.js, and Prisma serves as the ORM, with Vercel Postgres as the default database option.
Quick Start & Requirements
npm i
.env.example
to .env.local
and configure variables.npm run dev
Highlighted Details
Maintenance & Community
The project is maintained by tierrun. Further community and roadmap information can be found via their official channels.
Licensing & Compatibility
Licensed under the MIT license, permitting commercial use and integration with closed-source applications.
Limitations & Caveats
While the project provides a comprehensive example, users will need to configure their own OpenAI, Stripe, and Tier API keys, as well as set up their database and authentication providers. The demo link provided may not reflect the latest updates.
1 year ago
1 week