Powered by x402 & Stellar

The Pay-Per-Call
API Gateway

Monetize any HTTP endpoint in seconds. AI agents and developers pay per request using real Stellar micropayments. No subscriptions, no billing cycles — just instant USDC settlements.

3 lines to monetize any API
// Before: a normal fetch
const response = await fetch(url);

// After: wrap once, pay automatically forever
const payFetch = wrapFetchWithPayment(fetch, client);
const response = await payFetch("https://paygate-stellar-swart.vercel.app/api/x/your-api");

How PayGate Works

The full payment lifecycle happens automatically — from API call to USDC settlement.

01

Developer lists an API

Register any HTTP endpoint in seconds. PayGate wraps it with an x402 payment gate and gives you a public endpoint, docs, and a live analytics dashboard.

02

Caller hits the endpoint

An AI agent or human sends a request. PayGate intercepts, returns a 402 Payment Required with a Stellar payment requirement embedded in the header.

03

Payment settles on Stellar

The caller's wallet signs a micropayment — no subscriptions, no invoices. The Soroban facilitator verifies and settles the transaction in seconds.

04

Request is proxied

Once payment is verified, PayGate forwards the request to the developer's real backend and returns the response. The developer earns USDC instantly.

For Developers

Connect your Stellar wallet, register your endpoint, and start earning USDC per call — in under 5 minutes.

Start Monetizing

For Buyers & AI Agents

Discover ready-to-use premium APIs. Test them live in the browser using the built-in PayGate Playground.

Explore Marketplace