Examples
Example 1: Weather API
Original API:
https://api.weather.com/current?city=SFMonetized with Gate402:
https://weather.gate402.io/current?city=SFSetup
curl -X POST https://api.gate402.io/gateways/quick-create \
-H "Authorization: Bearer $TOKEN" \
-d '{
"originUrl": "https://api.weather.com",
"pricePerRequest": 0.001,
"evmAddress": "0xYourWallet"
}'Consumer usage
const client = withPaymentInterceptor(axios.create(), { wallet });
const weather = await client.get('https://weather.gate402.io/current?city=SF');
// ✅ Pays $0.001, gets weather dataExample 2: AI Model API
Original API:
Monetized:
Setup
Consumer
Example 3: MCP Server
Original MCP Server:
Monetized: