Topic · 2 insights · 2 how-tos
x402 Payments: How AI Agents Pay in USDC
x402 is an open protocol that turns HTTP's long-unused 402 Payment Required status into a way to pay for a web resource. A server answers an unpaid request with 402 and a price; the client, often an AI agent, signs a USDC authorization and retries; a facilitator settles the payment on-chain and the server returns the resource.
In SpendTheBits your @handle is an x402 seller. You publish a priced resource, agents pay it in USDC, and each settled call lands in your wallet as an ordinary inbound transaction. The same app can also pay x402 resources on your behalf. We measured our first live exchange at 1.4 seconds from the 402 to settled USDC on Base.
- Payment token: USDC, signed with EIP-3009 transferWithAuthorization, so the payer needs no gas.
- Seller URLs: x402.spendthebits.com/@handle/slug/.
- Discovery: /.well-known/x402, /llms.txt and /openapi.json list public resources.
- Settlement: through a facilitator (Coinbase CDP; Circle for Arc).
Insights
· 7 min read
What is x402? The x402 protocol for AI agent payments
Discover the x402 protocol, an open standard built on HTTP 402 that enables seamless, account-free payments for software and autonomous AI agents.
· 8 min read
x402 Payments in Production: What It Costs to Get Paid by an AI Agent
x402 payments measured in production: 1.4 s from HTTP 402 to settled USDC on Base, who pays gas, what the facilitator charges, and how replays are refused.
How-to guides
- How to get paid by AI agents with x4026 min · step by step
- How to pay an x402 API from your wallet4 min · step by step
In the product: Get paid by AI agents
Try it with your own keys.
SpendTheBits is a fully non-custodial wallet, free on iOS and Android.
