AI appsOne-time

Tokenfold

Credits, metered billing and rate limits for AI products, on Next.js

About this starter

Tokenfold focuses on the part of AI products that usually gets built last: charging for them. It includes prepaid credit packs, monthly plans with included usage, Stripe billing meters, per-user and per-team rate limits in Redis, spend alerts by email, and a usage page that shows customers exactly where their credits went. A sample chat and summarizer app demonstrate the metering hooks.

It is opinionated that every model call goes through one wrapper that records cost before returning. That rule makes margins visible from day one. The limitation: the sample apps are thin. The kit is strongest when you already know what your AI feature does and need the billing around it.

Highlights

  • 01Prepaid credits and plans with included usage
  • 02Per-team rate limits and spend alerts
  • 03Customer usage page broken down by feature

Tags

Related starters

More in AI apps
  • Image-generation SaaS starter with credits, galleries and R2 storage

    • image generation
    • credits
    • replicate
    One-time$149 once
  • Django pipeline starter for AI document extraction, priced per page

    • extraction
    • ocr
    • django
    Subscription$29/mo
  • Ragbag

    NewFeatured

    Next.js RAG starter: upload documents, chat with citations, bill by usage

    • rag
    • pgvector
    • ai sdk
    One-time$199 once
Live demo · Stackyard— View template →