Macaroon is reusable. Preimage proves payment — SHA256(preimage) matches the invoice's payment_hash caveat.
5Server → Agent200 OK + resource
0 of 5 steps need permission
x402
L402
Trust model
Facilitator required
No intermediary
Verification
Remote (Facilitator API)
Local (HMAC + SHA256)
Privacy
On-chain visible
Off-chain, onion-routed
Credential
Single-use signature
Reusable macaroon
Currency
USDC (stablecoin)
Bitcoin (sats, volatile)
Client gas
None (facilitator pays)
N/A
Settlement
~2s (Base L2)
~1-2s (Lightning)
Multi-chain
Yes (Base, Solana, fiat)
Lightning only
Challenge
PAYMENT-REQUIRED
WWW-Authenticate: L402
Payment header
X-PAYMENT
Authorization: L402
Backed by
Coinbase, Cloudflare, Google, Visa
Lightning Labs
Since
May 2025
March 2020
HTTP 402 Payment Required has been "reserved for future use" since 1997. Two protocols now claim that future. They've made opposite bets on whether payments need an intermediary.
x402 requires a Facilitator—Coinbase's infrastructure—to verify signatures and settle funds on-chain. The agent never touches gas and gets dollar-stable pricing. If the Facilitator rejects the request or goes down, the payment doesn't complete.
L402 has no intermediary. Agent pays a Lightning invoice, server verifies a hash locally, resource delivered. Zero steps require anyone's permission. You run Lightning infrastructure, price in volatile sats, and channel liquidity is your problem.
An AI agent making thousands of API calls a day will eventually need to pay for one. Whether it can depends on who else has to be involved.