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
  • Gimbal

    AI apps

    One-time

    Image-generation SaaS starter with credits, galleries and R2 storage

    $149 once4.1
    • image generation
    • credits
  • Wrenfield

    AI apps

    Subscription

    Django pipeline starter for AI document extraction, priced per page

    $29/mo4.3
    • extraction
    • ocr
  • Ragbag

    AI apps

    One-time

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

    $199 once4.6
    • rag
    • pgvector
Live demo · Starter Bench— View template →