The first payment infrastructure built for AI agents and micropayments.
Pay with USDC on Base. Sub-cent transactions. Instant settlement. Enterprise security.
Traditional payment processors weren't designed for sub-dollar USDC transactions
600% of transaction value
1% of transaction value
Save up to 99% on transaction fees for micropayments
Real-world applications for micropayment infrastructure
Monetize every API request without subscriptions or rate limits
Unlock premium content with frictionless micropayments
Enable autonomous systems to transact without human approval
Built for scale, security, and speed
EIP-712 signatures ensure every transaction is verifiable and tamper-proof
Sub-100ms latency on Base L2. No waiting for blockchain confirmations
One signature enables hours of frictionless payments. No popups
Drop-in middleware for Express, Next.js. Full TypeScript support
Monitor every transaction with our built-in dashboard
ERC-8004 compatible. Gate access by reputation score
Get started in minutes, not days
Use MetaMask or Coinbase Wallet with USDC on Base network. Make sure you're connected to Base (Chain ID: 8453).
Sign once to authorize payments for the next hour. No more popups for every transaction.
Access premium APIs, content, and AI services. Payments happen automatically in the background.
Pay per article, video, or download. Only pay for what you consume.
Pay per API call. Perfect for GPT, image generation, and data processing.
Send $0.001 to $1.00 payments. No minimum transaction size.
Let AI agents pay for resources automatically. No human intervention needed.
Ready to get started?
Try the demo with test funds (no real money required)
Pay only for what you use. No monthly fees
↑ Save $300,190 vs. Stripe
Integrate P402.io into your app in minutes
Protect your API endpoints with payment requirements
import { x402PaymentRequired } from '@p402/sdk-server';
app.get('/premium-content',
x402PaymentRequired({
amount: '0.01',
token: 'USDC',
recipient: '0xYourAddress'
}),
(req, res) => {
res.json({ content: 'Premium data' });
}
);Auto-handle 402 responses with session keys
import { X402Client, SessionManager } from '@p402/sdk-client';
const session = new SessionManager();
await session.createSession(wallet, '10', 3600);
const client = new X402Client({ sessionManager: session });
const data = await client.fetch('/premium-content');
// Payment handled automatically!Enable autonomous AI agents to pay for resources without human intervention
402 Payment Required with payment detailsPayment-Signature headerimport { Agent, AgentPolicy } from '@p402/agent-core';
const agent = new Agent({
privateKey: process.env.AGENT_KEY,
policy: new AgentPolicy({
maxBudget: 100, // $100 daily limit
maxPerTx: 1, // $1 per transaction
approvedDomains: ['api.openai.com']
})
});
// Agent autonomously pays for API calls
const result = await agent.fetch(
'https://api.openai.com/v1/chat/completions',
{ method: 'POST', body: prompt }
);
// Payment handled automatically if within policy!Agents have on-chain identities with reputation scores. Service providers can gate access based on agent behavior history, preventing abuse while enabling trustless commerce.