← is-real-biz

How AI agents pay APIs with x402

AI agents pay APIs using x402 by making a normal HTTP request, receiving a 402 response containing payment requirements (network, asset, amount, payTo address), signing a stablecoin transfer with their wallet, and retrying with the signed payload in an X-PAYMENT header. is-real-biz implements x402 v1 end-to-end: every paid endpoint (/check, /check_batch) returns structured 402 envelopes, verified and settled through the PayAI facilitator on Base / Base Sepolia.

Try it now

curl 'https://is-real-biz.is-real-biz.workers.dev/check?domain=stripe.com'

Run a live check Read the docs

Step-by-step

  1. Agent sends the request. GET /check?domain=stripe.com (no auth)
  2. Server returns 402. Response body lists scheme=exact, network=base-sepolia, asset=USDC, payTo=0x..., maxAmountRequired=50000 (5¢)
  3. Agent signs USDC transfer. Using a client like wrapFetchWithPayment(fetch, signer) the agent crafts an EIP-3009 transferWithAuthorization, base64-encodes it, attaches X-PAYMENT header.
  4. Server verifies + settles. is-real-biz POSTs to facilitator.payai.network/verify and /settle. On success the verdict is returned plus an X-PAYMENT-RESPONSE header with the settlement receipt.

Frequently asked

Do agents need an account?

No. Any wallet with USDC on Base can pay. No KYC, no API key, no signup.

What is the minimum payment?

$0.05 per call on is-real-biz. The protocol itself supports sub-cent micropayments down to $0.001.

How fast is settlement?

PayAI facilitator settles in ~1–2 seconds on Base. The whole request-pay-respond cycle is under 3 seconds.

Can I test without real funds?

Yes. Default network is Base Sepolia (testnet USDC, free from public faucets).