HTTP 402 Protocol

Turn any function into a paid API. In 10 minutes.

x402 protocol + Next.js 16 + Base USDC. No Stripe. No KYC. No waiting.

app/api/premium/route.ts
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.

What's Included

Everything you need to ship a production paid API.

x402 Payment Middleware

Per-request USDC payments via the HTTP 402 protocol. 5 lines of code.

API Key Management

Generate, rotate, and revoke API keys. Built-in key validation middleware.

Usage Dashboard

Track API calls, revenue, and users in real-time. Analytics out of the box.

Rate Limiting

Protect your API from abuse. Configurable per-key and per-IP limits.

Stripe Fallback

Accept credit cards too. Optional Stripe integration for fiat payments.

One-Click Deploy

Deploy to Vercel in one click. Environment variables auto-configured.

How It Works

Three steps to revenue.

01

Clone

npx create-x402-kit my-api

02

Configure

Set your wallet address and pricing

03

Deploy

Push to Vercel. Start earning.

Built on production infrastructure

“Built on the same protocol used by Coinbase, Cloudflare, and AWS.”

CoinbaseCloudflareAWS

One price. Everything included.

No subscriptions. No recurring fees. Pay once, build forever.

x402 Launch Kit
$49USDC

One-time payment. Lifetime access + updates.

  • x402 payment middleware (production-ready)
  • API key management system
  • Usage analytics dashboard
  • Rate limiting & abuse protection
  • Stripe fallback integration
  • Vercel one-click deploy
  • TypeScript + Next.js 16 + Tailwind
  • Lifetime updates & new modules

Card, Apple Pay, or USDC on Base. No account required.

FAQ