
What Is x402? The Payment Protocol Built for the Agentic Internet
Most online payments were designed for humans.
You enter card details, create an account, log in, manage a subscription, or go through a payment gateway.
But AI agents work differently.
An agent may need to access an API, buy data, use compute, call a service, or pay another software agent potentially thousands of times.
That creates a simple problem:
How does software pay for something on the internet without needing a human to manually approve every transaction?
That’s where x402 comes in.
x402 is an open payment protocol built around HTTP’s existing 402 Payment Required status code. It allows a server to request payment when a client wants access to a paid resource, with stablecoins such as USDC being used for programmable payments.
How does it work?
A simplified x402 flow looks like this:
Request → Payment Required → Payment → Verification → Access
An application or AI agent requests a paid resource.
The server responds with the payment requirements.
The client authorizes the payment.
The payment is verified and settled.
The requested service is then delivered.
The important part is that this can happen programmatically, without building a traditional account, subscription, or card-payment flow for every service.
Why does this matter for AI agents?
Imagine an AI agent researching something for you.
It might need:
• A market-data API
• A private dataset
• Compute
• An inference service
• A translation API
• Another specialized AI agent
Instead of maintaining separate accounts and payment systems for every service, an agent could potentially pay for each resource as it uses it.
That creates something closer to machine-to-machine payments.
And Base is becoming an important environment for this activity because its low-cost, fast settlement is well suited to frequent onchain payments. In April 2026, Jesse Pollak said roughly 95% of x402 transactions were occurring on Base at that point.
x402 has also added batch settlement, targeting extremely small payments where settling every tiny transaction individually would be inefficient.
This is the bigger experiment x402 is trying to enable:
An internet where software doesn't just request information from other software it can pay for it too.
And if that model scales, Base could become one of the important settlement layers underneath the emerging agent economy.
Hope this helps you to understand x402 .