Pricing
Free for website owners and API sellers: payments go straight to your wallet and we take nothing. Agents pay per call, from $0.001.
Website owners
0%
You set the price per page. AI crawlers pay your wallet.
- Free report mode, no wallet needed
- WordPress, Cloudflare, Nginx, Apache, Next.js, Express
- People and search engines read free
API sellers
0%
You set the price per call. Buyers pay your wallet.
- No-code gateway, up to 10 routes per key
- Settled only when your API answers 2xx
- Gasless x402 facilitator, no fee (mainnet: keys with bought credit or a verified site)
Agents
$0.001–$0.02
Per call; most tools cost $0.001. Failed calls are free.
- 3 free calls a day on tools up to $0.005
- Pay with x402 (USDC on Base) or prepaid credit
- New keys get $0.05 of free credit
Every tool's exact price is in its 402 quote, in /v1/tools and in the docs. Buying from other x402 sites with paid_fetch costs the site's price plus 15%.
Your credit
Check balance
Add credits
Or top up with USDC on Base, from $1 to $100 at a time: the steps.
Add credit with USDC
- Have an API key. Get one free (it starts with $0.05 of trial credit).
- Send
POST https://aipaygen.com/v1/topupwithAuthorization: Bearer apg_…and{"amount_usd": 5}, any amount from $1 to $100. It answers 402 with a quote for exactly that amount in USDC on Base. - Pay the quote from a wallet with USDC on Base: sign it and send the same request again with the
payment-signatureheader. No ETH is needed for fees. The x402 client below does this step for you. - The answer shows what was credited, the key's new balance and the transaction. A payment is credited once. If it says
CREDIT_PENDING, send the same request with the same payment again to finish it; it is never charged twice.
Code18 lines
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPaymentFromConfig } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm";
import { privateKeyToAccount } from "viem/accounts";
// A wallet holding the USDC on Base you want to add. It needs no ETH: the facilitator pays the gas.
const account = privateKeyToAccount(process.env.WALLET_KEY);
const pay = wrapFetchWithPaymentFromConfig(fetch, {
schemes: [{ network: "eip155:8453", client: new ExactEvmScheme(account) }],
});
// Asks for a $5 top-up, gets the 402 quote, signs it and sends the request again.
const res = await pay("https://aipaygen.com/v1/topup", {
method: "POST",
headers: { "content-type": "application/json", authorization: "Bearer " + process.env.AIPAYGEN_KEY },
body: JSON.stringify({ amount_usd: 5 }),
});
console.log(await res.json()); // { credited, balance_micro, transaction, ... }Check the balance above or with GET /v1/balance.
Refunds
- Unused credit you bought can be refunded on request within 30 days of the purchase.
- Credit already spent, the free trial credit and referral bonuses aren't refundable.
- A refund goes back the way the credit was paid: a USDC top-up to the wallet that paid it, in USDC on Base; a card payment to the card.
- To ask, email hello@aipaygen.com with the key's first 10 characters (apg_ and six more, as
GET /v1/balanceshows them; never the whole key) and the purchase's transaction hash or receipt. - Refunds are made by hand, usually within a few business days.