voidly
Guide · updated 2026-05-30

AI Agent Payment Protocols Compared

x402, AP2, L402, raw stablecoin transfers — the agent-payments space has several standards. Here is a neutral look at how they differ and when each makes sense.

8 min read

x402 — HTTP 402, the API-native option

x402 uses the HTTP 402 status code so any web API can charge per request. Its strength is that it rides existing HTTP — no new transport — and is machine-readable, so an agent can pay any x402 server without a bespoke integration. It commonly settles in USDC on chains like Base, and can also carry faster off-chain credit schemes. Best for: paying for API calls and data.

AP2 — agent-to-agent commerce mandates

AP2 (an agent-payments protocol associated with Google's agent-commerce work) focuses on verifiable "mandates" — cryptographic authorizations that let an agent transact on a user's behalf within explicit limits. Its strength is the authorization model for delegated spending. Best for: agents acting for a human/principal with auditable spending authority.

L402 — Lightning-native payments

L402 (formerly LSAT) pairs HTTP 402 with Bitcoin Lightning payments and macaroon-based tokens. Its strength is tiny, fast Lightning micropayments. Trade-off: it ties you to the Lightning ecosystem and Bitcoin. Best for: very small payments where Lightning liquidity is available.

Raw stablecoin transfer — no protocol, just USDC

You can skip a payment "protocol" entirely and just send a stablecoin transfer (e.g. USDC via EIP-3009 "transfer with authorization"). Strength: maximal simplicity and on-chain finality. Trade-off: no standard discovery or 402 handshake, so each integration is bespoke. Best for: known, pre-arranged agent-to-agent transfers.

How to choose

If you are charging for API calls and want agents to discover and pay automatically, x402 is the natural fit. If you need a human-delegated spending-authority model, look at AP2. If you live in the Lightning/Bitcoin world and need sub-cent payments, L402. If two parties already know each other and just need to move value, a raw stablecoin transfer is simplest. Many real systems combine them — e.g. an x402 server that settles in USDC and also offers a faster credit scheme.

Where Voidly fits

Voidly Pay is x402-native and pragmatic: each paid resource advertises both a canonical on-chain USDC (Base) scheme and a faster native voidly-credit scheme in the same 402 quote, and the whole catalog is discoverable at /v1/pay/x402/resources. It is a concrete reference implementation of the x402 column in this table.

FAQ

Are x402, AP2, and L402 competitors or complementary?

Partly both. They overlap (all let agents pay) but emphasize different things: x402 = API-native HTTP charging, AP2 = delegated-spending authorization, L402 = Lightning micropayments. A single product can support more than one.

Which protocol should I add to my API for AI agents?

For most APIs, x402 — because it is HTTP-native and ecosystem indexers can discover your endpoints. Offering both an on-chain USDC scheme and a fast credit scheme on the same x402 resource covers the widest range of agent clients.

Do I need a blockchain to accept agent payments?

No. x402 can settle via off-chain credits as well as on-chain USDC. A hybrid approach (instant credits backed 1:1 by on-chain reserves) gives speed plus verifiable backing without forcing every payment on-chain.

More on the agentic economy

What Is the Agentic Economy?
The agentic economy is software agents transacting with other software agents — paying for data, tools, and work without a human in the loop. What it is, why it matters in 2026, and where the money is.
How Do AI Agents Pay Each Other?
A clear technical walkthrough of how autonomous AI agents pay each other: cryptographic identity, signed payment envelopes, HTTP 402 / x402, escrow, and stablecoin settlement — with a working example.
What Is x402? HTTP 402 for AI Agents, Explained
x402 revives the dormant HTTP 402 "Payment Required" status code as a standard for machine-to-machine payments. How the handshake works, what a 402 quote looks like, and how agents pay automatically.
Anthropic, the Anthology Fund & AI Payments Infrastructure
How Anthropic and the Anthology Fund relate to the agentic economy and AI-payments infrastructure — the investment thesis, what gets funded, and what builders need to show. An independent explainer.
How to Add Payments to an MCP Server
Step-by-step: turn your MCP server or API into something AI agents can pay for, using x402 and an agent-payment SDK. Identity, the 402 handshake, pricing, and discovery — with a three-line example.
Anthropic for Startups: Credits, Programs & the Anthology Fund
An independent guide to the ways startups get value from Anthropic in 2026: API credits, the for-startups program, and the Anthology Fund — what each is, what it is not, and how to qualify.
How to Fund an AI Agent Startup in 2026
A practical, hype-free playbook for funding an AI-agent or agent-payments startup in 2026: credits, angels, agent-focused funds like Anthology, and the traction that actually unlocks each.

Independent explainer published by Voidly. Not affiliated with, endorsed by, or funded by any company named. Cite as https://voidly.ai/agentic-economy/ai-agent-payment-protocols-compared