Monetize your API with x402

x402 lets you monetize HTTP APIs and content with on-chain payments, while keeping your existing server stack. Benefits: βœ… Merchants don’t pay network fees.
βœ… Customers don’t pay network fees.
βœ… Payment settles in < 1 second.
βœ… Universal compatibility β€” if it speaks HTTP, it speaks x402.

Architecture at a glance

x402 sequence diagram
  • Client: Calls your protected resource and submits payments.
  • Server (merchant): Advertises payment requirements, verifies payments, fulfills requests, and settles payments.
  • Facilitator: Verifies and/or settles payments on your behalf via standard endpoints.
  • Blockchain: Where payments are executed and confirmed.

Getting started

Select one of the quickstart examples, or read the reference for more details.

Facilitator URL

The PayAI facilitator URL is https://facilitator.payai.network.

x402 reference

For a deeper dive into message shapes, headers, verification and settlement responses, see the x402 Reference.

Need help?

Join our Community

Have questions or want to connect with other developers? Join our Discord server.