Skip to main content
Users top up AI credits with LINK on Base, ETH on Arbitrum or USDC on Stellar.Users top up AI credits with LINK on Base, ETH on Arbitrum or USDC on Stellar.
Hosted checkout Funding intents Ledger

The idea

Your model is brilliant, your API is fast, and your users’ money is in five tokens on three networks. Sell credits in USDC and let anyone top up with what they hold. Ten thousand credits are one click away, whichever coin is in the wallet.

How it plays out

1

They pick a pack

“10,000 credits for 10 USDC.” Your server creates a funding intent and tags it with the user and the pack.
2

They pay

Send them to the hosted checkout. It works from a dashboard, a CLI that prints a link, or an email.
3

Credits appear

On funding.credited, add the credits to the user’s balance in your app.

The code

Make it your own

  • Low-balance nudges. When credits run low, email a link to a fresh top-up.
  • Team wallets. Put a team_id in metadata and credit the team instead of a person.
  • A CLI top-up. Print hosted_funding_url in the terminal; the payer opens it on any device.

Good to know

  • Crypto can’t be pulled from a wallet without its owner, so there is no automatic top-up: each purchase is a payment your user makes.
  • Price packs in a stable asset, so 10,000 credits cost the same tomorrow.
  • The nightly check is cheap insurance: it catches a handler that was down when the webhook came, even after every retry.