Tools / 402 response generator
402 response generator
Fill in four fields and get everything your server needs to demand x402 payment: the 402 JSON body, a curl command to test it, and a copy-paste Cloudflare Worker snippet.
1 · Your 402 response body
2 · Test it with curl
3 · Minimal Cloudflare Worker
What's next
A 402 quote is the easy half — production servers verify the agent's X-PAYMENT retry through a facilitator before releasing data. Full walkthrough: how to accept x402 payments. Not sure what to charge? Try the pricing calculator.