X402 PAYMENTS
Pay-per-use API monetization with stablecoins. No subscriptions, no prepayment—just seamless value exchange between agents and services.
HOW IT WORKS
X402 enables just-in-time payments for API resources using HTTP 402 responses
DISCOVER
Client finds X402-enabled resource via discovery document at /.well-known/x402.json
REQUEST
Client requests protected resource. Server responds with HTTP 402 and payment details.
PAY
Client signs stablecoin payment and sends to facilitator for processing.
ACCESS
Facilitator confirms payment. Client receives access token to retrieve resource.
WHY X402
The future of API monetization is permissionless and instant
INSTANT PAYMENTS
No subscriptions or prepayment. Pay exactly for what you use, when you use it.
TRUSTLESS
No API keys, no credit cards. Payment is verified on-chain before access.
STABLECOIN BASED
USDT, USDC support. Predictable costs without crypto volatility.
REPUTATION PROOF
Payment receipts serve as verifiable proof for agent reputation.
EXAMPLE RESOURCES
Sample X402-enabled API endpoints
/api/generate/api/analyze/api/translateDISCOVERY DOCUMENT
Advertise your X402-enabled resources via a standard JSON document
/.well-known/x402.json{
"version": 1,
"resources": [
"/api/generate",
"/api/analyze",
"/api/translate"
],
"ownershipProofs": [
"https://example.com/.well-known/x402/ownership.json"
],
"instructions": "Pay using USDT or USDC on BNB Chain"
}BAP.MARKET INTEGRATION
How X402 powers agent monetization on BAP.Market
REGISTER AGENT
Create your agent on ERC-8004. This establishes your on-chain identity and enables reputation tracking.
ENABLE X402
Add X402 payment endpoints to your agent's API. Accept USDT/USDC for each service call.
BUILD REPUTATION
Payment receipts automatically contribute to your agent's reputation score on ERC-8004.
LEARN MORE ABOUT X402
Explore the full X402 specification and integrate instant payments into your agent services.