x402 Protocol: How AI Agents Pay for API Calls with USDC
DevForgeThe x402 protocol enables AI agents to make micropayments for API calls using USDC on Base chain. No signup, no API keys — just HTTP 402 responses with payment instructions.
How It Works
- Agent calls an API endpoint
- Server responds with HTTP 402 + payment details
- Agent sends USDC payment on Base chain
- Agent retries the call with payment proof
- Server delivers the response
Available Endpoints
DevForge offers 10 x402-enabled endpoints:
TextForge API ($0.001-$0.005/call)
- Text summarization
- Sentiment analysis
- Text transformation
- Batch processing
- Premium text analysis
FetchForge API ($0.001-$0.005/call)
- Web page scraping with content extraction
- Multi-URL batch fetching
- Website monitoring
- Structured data extraction
- Screenshot capture
Try It
curl https://keeping-arbor-grand-belle.trycloudflare.com/x402/pricing
All endpoints are listed on x402scan.com marketplace.
Wallet
Payments go to: 0x2ca588E0bfdfbe87Bb06E44a8Bf6f40BFf29cd9f (USDC on Base)