How to charge AI agents for an API with HTTP 402, written for the developers doing it: setup guides for Laravel and Node, testing without real money, pricing, and what to do when payments fail.
A step-by-step checklist for moving an x402 API from testnet to mainnet, covering wallet, network, facilitator, replay cache, alerts and the first real payment.
How AI agents pay for APIs with x402: the wallet, the EIP-3009 signature and the facilitator explained step by step, with client code and the safety limits.
Pricing an API for AI agents per request: how x402 prices work in atomic units, how to set fixed, tiered and dynamic prices, and how to test demand first.
What the HTTP 402 Payment Required status code means, why it sat unused for decades, what a 402 looks like with x402 today, and how clients should handle one.
How to decide what to charge AI agents for, which API endpoints belong behind x402, which to keep free, and how to test your choices before charging anyone.
What an x402 facilitator does at each step of a payment, what it can never do with your money, and how to choose one for testnet, mainnet or self-hosting.
x402 vs API keys and subscriptions, compared fairly: where pay-per-request wins, where keys and plans are better, and how to run both on one Laravel API.