Beta · claim $1 USDC for the first 50 devs →

Turn your API into a
vending machine.

List any REST endpoint, set a per-call price, and let AI agents pay in USDC on Base. No billing portal, no invoices, no Stripe. You keep 100% of the revenue at launch.

WeatherFinanceWeb SearchCompany DataSentimentWHOIS
Vend402
// how it works

Four steps. About one Base block.

Watch the full x402 handshake — from an unpaid request to an on-chain settlement — replay in your browser.

x402-handshake.loglive · base-sepolia
// step 01AgentGET /weather

Agent calls a paid API. No key, no account.

GET /v1/weather HTTP/1.1
Host: api.vend402.com
// for ai agents

Data APIs your agents pay for.

Weather, finance, web search, company lookup, sentiment, WHOIS — every endpoint metered per call. No accounts, no API keys.

01
Discover

Browse the catalog and pick the data endpoint your agent needs.

02
Pay per call

Each request is metered in USDC on Base. No subscriptions or tiers.

03
Get data

Your agent gets a 402, signs once, and the data comes back instantly.

// the protocol

Three steps. Milliseconds.

01
Agent calls

AI agent hits your endpoint with no payment header.

02
402 returned

Gateway responds with price, currency, and destination wallet.

03
Pay & retry

Agent settles USDC on Base and retries with a signature.

// live ledger

Real-time on-chain receipts.

Every call to the gateway is logged. These numbers update live.

Total calls
Paid calls
USDC earned
Endpoint
Status
When
No calls yet. Try the demo below to populate the ledger.
// live demo

Try the gateway.

Hit the endpoint with and without a payment signature and watch the 402 handshake unfold.

Endpoint
The premium data endpoint AI agents pay to access.
RouteGET /api/x402/weather
Price0.001 USDC
Networkbase-sepolia
Destination wallet0x8b32651A04A12f72a2dC9F25c4dD938A9D30bAD6
Try it · unpaid request
Calls the endpoint with no X-PAYMENT header. Expect HTTP 402 with x402 challenge.
Try it · settle on-chain
Signs an EIP-3009 USDC authorization, verifies + settles via the Coinbase x402 facilitator on Base Sepolia. Returns a real tx hash.
Integration
How an AI agent integrates with this gateway.
curl
# 1. Probe the endpoint
curl -i /api/x402/weather
# → HTTP/1.1 402 Payment Required
# → body.accepts[0] = { scheme:"exact", network:"base-sepolia", maxAmountRequired:"1000", payTo:"0x8b32651A04A12f72a2dC9F25c4dD938A9D30bAD6", asset:"USDC" }

# 2. Sign an EIP-3009 USDC authorization, base64-encode the payment payload, retry
curl -i /api/x402/weather -H "X-PAYMENT: <base64 payload>"
fetch
const res = await fetch("/api/x402/weather", {
  headers: { "X-PAYMENT": paymentHeaderB64 },
});
const data = await res.json();
mainx402 · USDC · base
TypeScript