x402 Protocol

HTTP 402 Payment Required Protocol

Definition

An HTTP protocol extension that enables automatic per-call payment mechanisms for API access, allowing agents to autonomously pay for API calls using cryptocurrency or stablecoins.

Examples in the Wild

  • Example 1:AI agents automatically paying for API calls via x402 and USDC
  • Example 2:Monetizing HTTP APIs with per-call payment requirements