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
Start the free report

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)
Sell your API

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
Get a free API key

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

  1. Have an API key. Get one free (it starts with $0.05 of trial credit).
  2. Send POST https://aipaygen.com/v1/topup with Authorization: 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.
  3. Pay the quote from a wallet with USDC on Base: sign it and send the same request again with the payment-signature header. No ETH is needed for fees. The x402 client below does this step for you.
  4. 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