x402 Protocol Backed By
Coinbase
Creator
Cloudflare
Foundation Partner
A2A Integration
Why x402?
The HTTP 402 "Payment Required" status code finally has a protocol.
Instant Micropayments
Pay $0.001 to $100+ per request. Sub-second settlement on Solana.
No Accounts Needed
Just connect a wallet. No signup, no API keys, no authentication.
HTTP Native
Uses standard HTTP 402 status code. Works with any HTTP client.
AI Agent Ready
Built for machine-to-machine payments. Perfect for autonomous agents.
Live Demo
See how x402 handles payment verification in real-time.
Premium API Endpoint
/api/x402/demo
This is a simulation. Connect a Solana wallet with USDC to test live payments.
Simple Integration
Add payment requirements to any API endpoint in minutes.
// Protect any API endpoint with x402
import { paymentMiddleware } from 'x402-next';
export const middleware = paymentMiddleware(
"0xYourWallet",
{
'/api/premium': {
price: '$0.05',
network: 'base',
},
}
);// Client-side payment handling
import { wrapFetchWithPayment } from 'x402-fetch';
const fetchWithPayment = wrapFetchWithPayment(
fetch,
walletClient
);
const response = await fetchWithPayment('/api/premium');
// Payment is handled automatically!Our x402 Endpoints
Test our live x402-protected APIs on Solana.
Ready to Monetize Your APIs?
We can help you implement x402 for your Web3 project. Micropayments, AI agent billing, premium content access - all with zero protocol fees.