Payments
Pay for API calls using USDC on Base Sepolia via the x402 protocol.Requirements
- Wallet - MetaMask, Coinbase Wallet, or WalletConnect-compatible
- Test USDC - On Base Sepolia testnet
Getting Testnet USDC
Circle USDC Faucet
Get free test USDC on Base Sepolia
Add Base Sepolia to your wallet: Chain ID
84532, RPC https://sepolia.base.orgPay-Per-Call
Sign each request individually. Best for testing and occasional use. Pros: No upfront commitment, pay exactly what you use Cons: Wallet popup every request, higher gas costsPre-paid Sessions
Deposit USDC once, make unlimited calls until balance depletes. Pros: One signature for many calls, lower gas, faster Cons: Upfront deposit, 1-hour expiryHow Sessions Work
- Deposit - Choose amount, sign once
- Call - Each request deducts from balance automatically
- Reclaim - Get unused balance back after expiry
At 10 deposit enables ~200 calls.
Cost Comparison
For 100 calls at $0.05 each:| Method | Gas Cost | Total |
|---|---|---|
| Pay-Per-Call | ~$1.00 | ~$6.00 |
| Pre-paid Session | ~$0.02 | ~$5.02 |
Security
- Non-custodial - You control your wallet
- Bounded exposure - Sessions limit max loss to deposit
- Transparent - All transactions verifiable on Base
Troubleshooting
Transaction stuck
Transaction stuck
Check Base Sepolia Explorer for status.
Insufficient balance
Insufficient balance
Get test tokens from the faucets above. Check you’re on Base Sepolia (Chain ID 84532).
Session expired
Session expired
Sessions last 1 hour. Create a new one. Reclaim unused balance.