x402 protocol + Next.js 16 + Base USDC. No Stripe. No KYC. No waiting.
import { withX402 } from 'x402-next'
const handler = async (req) => {
// Your API logic here
return Response.json({ data: 'premium' })
}
export const GET = withX402(handler, WALLET, {
price: '$1', network: 'base'
})5 lines. That's it. Your function now charges $1 USDC per request.
Everything you need to ship a production paid API.
Per-request USDC payments via the HTTP 402 protocol. 5 lines of code.
Generate, rotate, and revoke API keys. Built-in key validation middleware.
Track API calls, revenue, and users in real-time. Analytics out of the box.
Protect your API from abuse. Configurable per-key and per-IP limits.
Accept credit cards too. Optional Stripe integration for fiat payments.
Deploy to Vercel in one click. Environment variables auto-configured.
Three steps to revenue.
npx create-x402-kit my-api
Set your wallet address and pricing
Push to Vercel. Start earning.
Built on production infrastructure
“Built on the same protocol used by Coinbase, Cloudflare, and AWS.”
No subscriptions. No recurring fees. Pay once, build forever.
One-time payment. Lifetime access + updates.
Card, Apple Pay, or USDC on Base. No account required.