Top Up Your Credits
Add credits to your API key with USDC on Base or Monero (XMR). No minimum amount. Credits added instantly after on-chain confirmation. $0.002 per API call (500 credits per $1 USDC).
Any topup extends your credit expiration to 90 days from the payment date (free credits expire in 30 days).
If you don't have one yet, create a free key:
curl -s -X POST https://agent-gateway-kappa.vercel.app/api/keys/create
Save the key field from the response (starts with gw_).
Send USDC on Base chain (chain ID 8453) only. Do not send ETH, other tokens, or USDC on other chains (Ethereum, Polygon, etc.) to this address. Those funds would be lost.
How to get USDC on Base: Buy USDC on Coinbase (it's on Base by default), or bridge from Ethereum via bridge.base.org. You can also swap ETH for USDC on Uniswap (select Base network).
After sending, find the transaction hash (tx hash) in your wallet app or on Basescan.
It looks like: 0x7a8b9c... (66 characters, starts with 0x).
curl -X POST https://agent-gateway-kappa.vercel.app/api/credits/topup \
-H "Content-Type: application/json" \
-d '{
"api_key": "YOUR_API_KEY_HERE",
"tx_hash": "0xYOUR_TRANSACTION_HASH_HERE"
}'
Replace YOUR_API_KEY_HERE with your gw_... key and 0xYOUR_TRANSACTION_HASH_HERE with your tx hash from step 3.
curl -s https://agent-gateway-kappa.vercel.app/api/keys/balance \
-H "Authorization: Bearer YOUR_API_KEY_HERE"
Credits are added instantly after Base confirms the transaction (~2 seconds). Your credit expiration is extended to 90 days.
If you don't have one yet, create a free key:
curl -s -X POST https://agent-gateway-kappa.vercel.app/api/keys/create
Save the key field from the response (starts with gw_).
Send any amount. Credits are calculated at current XMR/USD rate (500 credits per $1 equivalent).
Monero requires 1 confirmation before credits can be added. This takes approximately 2 minutes.
Find your transaction hash (txid) in your wallet. It's a 64-character hex string (no 0x prefix).
curl -X POST https://agent-gateway-kappa.vercel.app/api/credits/topup-xmr \
-H "Content-Type: application/json" \
-d '{
"api_key": "YOUR_API_KEY_HERE",
"tx_hash": "YOUR_MONERO_TXID_HERE"
}'
Monero transaction hashes are 64 hex characters with no 0x prefix. Example: a1b2c3d4e5f6...
curl -s https://agent-gateway-kappa.vercel.app/api/keys/balance \
-H "Authorization: Bearer YOUR_API_KEY_HERE"
Credits are added after 1 Monero confirmation (~2 minutes). Your credit expiration is extended to 90 days. Monero payments are private by default.
Generate Your Topup Command
Paste your API key and transaction hash below to get a ready-to-run curl command.
Troubleshooting
api_key and tx_hash fields, and that you're sending with Content-Type: application/json header.gw_ and is the exact key you received when creating it. Keys are case-sensitive.0x and is from a confirmed transaction on Base chain. For XMR: the transaction needs at least 1 confirmation (~2 min). Wait and try again.0x559...3724) on Base. Transfers of ETH or other tokens won't work.