The DIY approach: issue keys, meter usage, invoice

Paywall vs API keys + metered billing

The traditional way to monetise an API is to issue API keys, meter usage, and invoice (often via a metered-billing provider). It works for known customers but assumes a human signs up first. Paywall lets agents pay per call with no key to provision.

Paywall (x402)API keys + metered billing
OnboardingNo signup — pay per callCaller signs up, gets a key
BillingPaid at call time in USDCMeter usage, invoice later
Unknown callersNative — agents just payHard — must provision first
Build effortOne middlewareKeys + metering + invoicing
ReconciliationSigned, retried webhooksYour own pipeline
Where API keys + metered billing is strong
  • Familiar and fully under your control
  • Great for known, contracted customers with monthly plans
  • Mature billing providers exist for usage metering
  • No new protocol for your existing human customers to learn
Where Paywall differs
  • No key/plan provisioning for callers you’ll never meet
  • Payment happens in the request itself (signed 402), not a monthly invoice
  • Test mode proves the whole loop before going live
  • Fail-closed: unpaid or unverifiable requests get a 502, never free content
Choose API keys + metered billing if…

Your customers are known businesses on monthly contracts, and you already have key management and billing in place.

Choose Paywall if…

You want to charge unknown, autonomous callers without provisioning anything, and bill per request instead of per month.

FAQ

Can I keep my API keys and add x402?

Yes. You can gate only the routes you choose with the SDK; existing keyed routes and customers are untouched.

Do I still need a billing system?

For pay-per-call agents, no — payment happens in the request and payouts are automatic. You can keep your existing billing for human customers.