Two models
Choose based on what people pay for. If cost tracks how much someone uses the AI, charge for usage with credits, so people who use it more pay more. If the value is having the feature, charge for access with a plan. A common setup is a paid tier that includes a monthly credit allowance, which combines both.
Sell credits
Price each AI tool in credits and sell packs. Each person pays in proportion to what they run. Best for expensive or variable AI calls.
Sell a plan
Require access on premium tools and sell a subscription that grants it. People pay a fixed amount for access, so revenue is predictable. Best when the feature itself is the upgrade.
Sell credit packs
Give each AI tool a credit price, then let people buy packs. Every call spends from their balance, and the purchase is a normal payment.
await g.payments.buy("credits-500"); // a configured product
const { balance } = await g.credits.balance();Credits sit on a grant, and credit packs never expire. See how charging credits works.
Where the money goes
Payments go to your own provider account. Stripe is built in, any provider that signs its webhooks to a supported standard connects through a relay, and App Store and Play purchases come through RevenueCat. Gemmein records who holds what, and who is on which plan, from the provider's signed webhook.
Prompt for your coding agent
Paste this into Cursor, Claude, Bolt or Lovable so your agent sets up payments correctly.
Read https://docs.gemmein.com/llms.txt. I want to monetise the AI features in my app. Show me both models: selling credit packs that AI tools spend (g.payments.buy, g.credits.balance) and putting premium tools behind a paid plan (g.subscriptions.checkout, g.subscriptions.mine, requiring access). Explain that the money goes to my own payment provider account and that access is granted on the signed payment webhook and never on the redirect.
npx gemmein devRead the getting-started guideFrequently asked questions
Does Gemmein take a cut of payments?
No. Gemmein never holds, moves or processes money.