Pay-per-call APIs for autonomous AI agents
x402 + ERC-7710An x402 gateway lets agents make API calls and pay for them automatically. No pre-funding wallets. No private keys. Just set a budget, and the agent pays what it uses.
Agent makes request to x402 gateway:
Gateway queries delegated wallet via ERC-7710 to check remaining budget:
Gateway responds with price and requires payment:
Agent pays from its delegated wallet using x402 payment flow:
Once paid, gateway forwards request to actual API:
Delegated wallet deducts payment. Budget updated:
AI agents making thousands of API calls need a payment system that:
x402 is the HTTP 402 Payment Required protocol. When an agent hits a paid API:
Result: Agents get department budgets, not credit cards.