Skip to content
Use case · API credits

Top up API credits with crypto

Sell request packs or a prepaid balance. Customers pay in crypto, and your system adds the credits when a verified webhook arrives.

Top up credits
Balance 412,300
100K requests
12 USDC
1M requests
99 USDC
10M requests
790 USDC
Pay 99 USDC
Credits added
+1,000,000 · verified

Packs, balances or both

Pick the model that fits your product. Yolfi collects the payment; you keep the ledger.

100K12 USDC
1M99 USDC
10M790 USDC
Request packs
Sell 100K, 1M or 10M requests. Each pack is one payment link or one price.
Add to balance
25.00USDC
1025100
Internal balance
Let users add any amount in USD to a balance you track yourself.
BalanceLow · 8%
Top-up link sent to the account owner
Top-up reminders
Warn users when their balance is low and send them a link to refill.

Credit only what is verified

Never add credits from a browser redirect. Wait for the signed webhook, then update the balance in your database.

Verify the yolfi-signature header
Use the payment ID once, so retries are safe
Credit the amount that was actually paid
credits.js
// Add credits after a verified payment
if (isVerified(req)) {
const payment = JSON.parse(req.body);
awaitaddCredits(payment.accountId, creditsFor(payment));
}

How a top-up works

From low balance to more requests, in four steps.

01
User picks a pack
Your dashboard shows packs and prices in USD.
02
Pays in crypto
Hosted checkout takes the exact amount on the chosen network.
03
Webhook verified
Your server checks the signature and the payment ID.
04
Credits added
The balance updates and the user keeps building.

Why developers pick it

Accept Ethereum, Polygon, Solana, Arbitrum, Tron, BNB Chain and Base.

No chargebacks
Prepaid credits stay prepaid.
Global customers
Sell to teams and indie developers worldwide.
POST /v1/payments
→ 201 created
API and webhooks
Create payments in code and listen for the result.
Confirmedin 12 s
Real-time updates
Know the moment a payment is confirmed.
Straight to your wallet
Non-custodial settlement, no payout waiting.
One flat 1% fee
Simple pricing for packs of any size.
1%

Sell API credits and prepaid balances in crypto

API products, AI tools and developer platforms usually sell usage in advance: a pack of requests, tokens or a prepaid balance. Crypto payments fit this model well, because the customer pays once, the payment is final, and there is no card fraud to absorb.

Create one payment link per pack, or generate a payment for the exact amount a customer wants to add. When the signed webhook arrives, verify it, and add the credits to the account. Using the payment ID once makes retries safe.

Yolfi collects the payment and settles to your wallet. The ledger, usage metering and invoices stay in your own system.

Wire up API credits with your agent

Describe the goal. Your agent connects to Yolfi, creates the payment links and wires the confirmation. You approve each step.

AGENT SESSION
Let users buy 100K, 1M and 10M request packs and add credits after a verified payment.
I will connect to Yolfi, create the three packs and add signature verification.
yolfi_auth_status → authenticated
yolfi_create_payment_link → pay/credits-1m
Done. Packs are live. Credits are added only after a verified payment.

Frequently asked questions

How do I know a payment is real?

Verify the webhook signature with your secret. Credit the account only after the verified event.

Can customers pay any amount?

Use fixed-price packs or an open-amount link. Your system maps the confirmed amount to the credits it grants.

Are credits refunded?

You define the refund policy and manage refunds from your wallet. Your system also adjusts the customer’s credit balance.

Can I use it for usage-based billing?

Yolfi can collect prepaid top-ups. Your application measures usage and deducts credits from the balance.

Can I use it for AI and LLM products?

Yes. Sell request packs or a prepaid balance for your AI or LLM service and add credits after a verified payment.

How fast are credits available?

Your application can add credits when it receives the verified confirmation webhook. Timing depends on the selected blockchain.

Let your API accept crypto

Create a pack, connect the webhook and start crediting accounts.