❌ API Keys
- Secrets you share with strangers
- Can be stolen or leaked
- Require revocation and rotation
- Don't scale for autonomous agents
- Monthly invoices and payment rails
x402 enables cross-chain micropayments for API access. No API keys. No OAuth. Just cryptographic proof.
Call API endpoint normally. Receive 402 Payment Required.
Sign EIP-712 payment authorization with your wallet.
Payment settles on-chain. API returns your data.
Continue making paid requests. No rate limits.
// Simple example
const response = await fetch('https://api.web3identity.com/api/price/eth');
if (response.status === 402) {
// Client auto-handles payment signature
const paidResponse = await window.x402Fetch(url, options, signerAddress);
return paidResponse.json();
}
return response.json();
Agents don't need to store or protect API keys. They sign with their wallet on every request.
Every payment is an on-chain transaction. Perfect transparency for autonomous operations.
Works with ETH, Base, and any EVM chain. Same protocol, different networks.
No monthly invoices, no payment processors, no subscriptions. Just sign and pay.
Any wallet-enabled agent can start using paid endpoints immediately. Zero signup friction.
Free tier: 100 calls/day. Paid tier: unlimited. Scale as much as you need.
Autonomous agents can pay for ENS resolution, price feeds, and identity lookups without human intervention.
Smart contracts can access off-chain data via CCIP-Read with x402 payment enforcement.
Multi-chain applications can resolve identity and data across networks with unified payment.
1,616 free endpoints to explore. Pay only when you scale.