Monetize any API with one line of code

Efficiently manage your API monetization and boost payment productivity directly on the Base network.

Features

Everything you need to Monetize

Forget complex payment gateways. Built for the modern web.

Easy Integration

Add pay-per-call logic to your API in just a few lines of code. No complex setups, no extensive documentation required.

Install via NPM
npm install paygate-x402
app/api/data/route.ts
// npm install paygate-x402
import { paygateNext } from 'paygate-x402'
export async function GET(request: Request) {
// one line handles payment
const check = await paygateNext(request, {
price: '0.001', // USDC per call
payTo: '0xYourWallet' })
if (check) return check
return Response.json({ data: 'paid content' })
}

AI Friendly

Allows AI agents to discover, negotiate, and pay for your API automatically using standard L402 protocols.

Instant Payments

Get paid per second using Superfluid micro-payments directly to your wallet. No waiting for monthly payouts.

Zero Fees

Built on the Base network for lightning fast transactions and almost zero gas fees, making micro-transactions viable.

Pricing

Simple pricing plans

Starter
For indie devs and side projects
$0/forever
Up to 3 API registrations
Marketplace listing
Basic analytics (7 days)
AI agent discovery
2% protocol fee per payment
Superfluid streaming
Priority support
Custom fee override
Pro
For serious API businesses
$29/month
Unlimited API registrations
Marketplace listing + featured slot
Full analytics (90 days)
AI agent discovery + priority ranking
1% protocol fee per payment
Superfluid streaming payments
Priority support (24h)
Custom fee override
Enterprise
For teams and high-volume APIs
$99/month
Unlimited API registrations
Marketplace listing + top placement
Full analytics (unlimited)
AI agent discovery + exclusive ranking
0.5% protocol fee per payment
Superfluid streaming payments
Dedicated support (4h SLA)
Custom fee override

Ready to monetize your API?

Connect your wallet, register your endpoint, and start earning USDC per call on Base testnet.