Pocketsflow
HumanAgent

Charge for your AI app with credits, usage and plans, from one API.

Sell a $25 credit pack, deduct each render from your backend and refill the balance before it runs out. Add a $29 a month plan next to it. Every change reaches your app by webhook, and tax in every buyer's country is ours to collect.

Works with
Create subscription wizard for Captionly Studio monthly credits with subscription type Credits, auto-refill enabled and a $15 credit pack each billing cycle, beside a subscription page previewCreate subscription wizard for Captionly Studio monthly credits with subscription type Credits, auto-refill enabled and a $15 credit pack each billing cycle, beside a subscription page preview

Prepaid credits with auto-refill, read and deducted through the API.

What is the best payment platform for an AI app?

Pocketsflow bills AI apps with prepaid credit packs, usage billing and monthly plans, paid from a checkout that opens inside your app. Your backend deducts usage in cents through the API, the balance refills from the buyer's saved card before it runs out, and every change reaches your app by signed webhook. Tax in every buyer's country is collected for you.

Best for
AI app developers who charge with credit packs, metered usage or a monthly plan, set up in code.

What AI apps sell here

Each line is one product or plan, on the same checkout and the same payout. The names and prices are examples.

The five features you will use most

Each one shown in the real dashboard, with the plan it starts on. The rest are on the features page.

Prepaid credits with auto-refill

Sell credit packs, deduct usage in cents through the API, and refill buyers from their saved card when the balance hits the threshold you set. The deduct call returns the new balance, so your app never has to guess.

See creditsFree on every plan

Product editor for Captionly AI credits ($25) with product type Credits, credit auto-refill enabled, a $25 top-off amount and a $25 credit pack amount, beside a product page previewProduct editor for Captionly AI credits ($25) with product type Credits, credit auto-refill enabled, a $25 top-off amount and a $25 credit pack amount, beside a product page preview

A checkout inside your app

Open the checkout in a popup over your editor or embed it in a page of your product. Buyers top up without leaving the tab they were working in.

See checkout pagesFree on every plan

Captionly's own website (Captions for every video you publish) with the Pocketsflow checkout open over it in a popup: Captionly AI credits ($25) with the coin-stack image, an order summary with total $25.00, a blue Pay $25.00 button and buyer protection badges

Plans, trials, seats and usage

A monthly or yearly plan with a free trial, plus seats or metered usage, all on one subscription the buyer manages from their portal.

See SaaS billingFree on every plan

Subscription editor for Captionly Pro, a $29 plan with subscription type Integrate (manage access in your app using the API and webhooks), beside its subscription page previewSubscription editor for Captionly Pro, a $29 plan with subscription type Integrate (manage access in your app using the API and webhooks), beside its subscription page preview

A webhook for every balance change

credit.granted, credit.balance_changed and credit.auto_refill.failed arrive signed with HMAC-SHA256, with a log of every delivery. Pause usage the moment a refill fails.

See the webhook docsFree on every plan

Developers, Webhooks: three enabled endpoints (captionly.app, framekit.app and hooks.northlight.studio) with the number of events and created dateDevelopers, Webhooks: three enabled endpoints (captionly.app, framekit.app and hooks.northlight.studio) with the number of events and created date

Your coding agent can wire it up

Claude Code, Cursor or Codex create the credit packs, the checkout and the webhook over MCP. You sign in and click Allow; there is no API key to paste into a prompt.

See MCPFree on every plan

Developers, MCP: Run your business from your AI, a Copy prompt for your AI button, one-tap buttons for Claude, ChatGPT, Codex, Grok, Grok Bot, Meta AI and Cursor, and three steps: copy the prompt, sign in and click Allow access, then ask for anythingDevelopers, MCP: Run your business from your AI, a Copy prompt for your AI button, one-tap buttons for Claude, ChatGPT, Codex, Grok, Grok Bot, Meta AI and Cursor, and three steps: copy the prompt, sign in and click Allow access, then ask for anything

Usage billing in three calls

Create a credit pack with auto-refill, deduct usage from your backend, and keep your app in step with the balance webhooks.

import { Pocketsflow } from "pocketsflow";

const pf = new Pocketsflow({ apiKey: process.env.POCKETSFLOW_API_KEY });

// A $20 credit pack. Buyers who opt in are topped off with
// another $20 when their balance hits zero.
const pack = await pf.products.create({
  name: "API credits",
  price: 20,
  productType: "credits",
  creditAutoRefill: { enabled: true, topOffCents: 2000 },
});

const session = await pf.checkout.create({
  productId: pack._id,
  successUrl: "https://example.com/app",
});

redirect(session.url);

Or ask your AI to set it up

Connect Claude, ChatGPT or Gemini once: paste our URL, sign in, click Allow. It gets the same tools as the dashboard, and anything that goes live or moves money asks you first.

Help me set up credits and usage billing for my AI app.

Every change it makes shows up in your dashboard.

Connect your AI

What you keep from a typical month

An example, not a promise: $25 credit packs, 300 a month, 55% abroad. Run through the same published fees as our fee calculator, checked November 2, 2026.

You keep $7,031.25 of $7,500.00.

2% per sale plus card processing at cost, with sales tax and VAT handled (2% tax handling fee on taxed sales). No monthly fee. Sales tax and VAT are handled for you.

Price per sale
$25
Sales per month
300
Buyers outside the US
55%
Revenue this month
$7,500

Compared with Gumroad, Lemon Squeezy and Payhip

That is $738.75 more than on Gumroad, $118.13 more than on Lemon Squeezy and $275.63 more than on Payhip.

PlatformFees / moYou keepEffective
PocketsflowDigital products$468.75$7,031.256.25%
GumroadDirect sales$1,207.50$6,292.5016.1%
Lemon SqueezyStandard$586.88$6,913.127.83%
PayhipFree Forever$744.38$6,755.629.93%

Comparing with a flat monthly plan like Stan or Kajabi? See the full breakdown.

Published fees for a seller in the US, with card processing added where a platform charges it separately. Gumroad, Lemon Squeezy and Payhip are trademarks of their owners, named only to compare published prices.

Selling on Lemon Squeezy or Gumroad today?

See how the fees compare, and how your products, customers and email list come with you.

Questions

How does my app spend a buyer's credits?

Deduct usage in cents through the API, from your own backend: POST /credits/deduct with the account and the amount. The response carries the new balance, and every change also reaches you as a webhook, so your app and Pocketsflow never disagree.

I already count credits in my own database. Can I keep that?

Yes. Open the checkout with your own user id as clientReferenceId, and the order.completed webhook carries it back with the product id, so you add the pack's credits to the right user, once per order. If you would rather not keep a ledger, a Credits product holds the balance and you find it by the same user id.

Can credits top up on their own?

Yes. Turn on auto-refill and the buyer opts in at checkout. When the balance runs low, we charge their saved card for the refill amount you set and add the credits.

Can I sell a plan and credits together?

Yes. Sell a monthly plan for access and credit packs for heavy use, or charge per unit with usage billing. Each one is its own product your app reads by webhook.

Does the checkout open inside my app?

Yes. Open it in a popup over any page, or embed it in a page of your product, so buyers pay without leaving. A hosted checkout link works too.

What does it cost?

No monthly fee to sell. You pay 2% a sale, plus card processing at cost, both itemized on every order. The platform fee covers checkout, sales tax and VAT handling and dispute prevention. In the worked example on this page, you keep $738.75 more a month than on Gumroad, $118.13 more a month than on Lemon Squeezy and $275.63 more a month than on Payhip. Selling $50,000 or more a month? The Volume plans lower the platform fee to 1% or 0.5%.

Selling something else?

  1. 01Apps and SaaSLicense keys, SaaS plans with trials, and a webhook for every change.
  2. 02Agencies and servicesPackages, retainers and paid calls, paid before the work starts.
  3. 03CoachesSessions, packages and group programs, paid before the first call.
  4. 04Course creatorsA course player, a sales page and launch pricing in one account.
  5. 05DesignersTemplates, presets, fonts and asset packs, delivered the second they pay.
  6. 06Musicians and producersBeats, sample packs, presets and stems, sold to fans anywhere, in their own currency when you turn it on.
  7. 07WritersEbooks, guides and a paid newsletter on one list.

Start selling to your users today.

No monthly fee to sell. Tax, fraud checks and payouts are handled from the first order.

Start selling free