Skip to main content

🚀 Transform Any API Into Revenue

CheapPay brings Coinbase’s x402 payment protocol to Solana, enabling developers to monetize APIs, AI services, and digital content with micropayments starting at $0.001. Built for the Solana ecosystem with USDC/SOL support and seamless wallet integration.

Quick Start Guide

Get your payment-enabled API running in under 5 minutes with our three-step guide.

Why Choose CheapPay?

The Problem: Traditional payment systems require complex backends, user accounts, and have high minimum payments. Existing crypto solutions are built for e-commerce, not APIs. Our Solution: HTTP-native payments using 402 status codes. Your users pay with crypto they already hold, no signups required.

AI & Data APIs

Perfect for AI completions, image generation, real-time data feeds, and B2B analytics APIs with instant micropayments.

Content Paywalls

Monetize premium articles, videos, or digital content with instant crypto payments and zero friction.

Micro-services

Each service component can monetize independently without complex billing systems or backends.

Enterprise Ready

Easy integration into existing systems with TypeScript support and comprehensive documentation.

Start Building

Get your payment infrastructure running with minimal setup.

Express.js Integration

Add payment middleware to your Express API with one line of code.

Next.js Middleware

Protect your Next.js API routes with built-in payment verification.

Hono Framework

Lightning-fast payments for edge computing and serverless APIs.

Custom Integration

Build your own integration using our TypeScript SDK and HTTP protocol.

Core Features

Everything you need for production-ready cryptocurrency payments.

Solana Native

Built specifically for Solana with USDC, SOL, and custom SPL token support.

Multi-Wallet Support

Works with Phantom, Solflare, Backpack, and all major Solana wallets.

Zero Backend

No complex payment infrastructure needed - just add middleware and start earning.

Instant Settlements

Payments settle on-chain in seconds with automatic verification.

Developer Experience

Tools and resources to help you succeed.

TypeScript SDK

Fully typed SDK with intelligent autocompletion and error handling.

Live Examples

Working code examples for AI APIs, content paywalls, and data services.

Testing Tools

Comprehensive testing suite with devnet support and mock payments.

API Reference

Complete API documentation with request/response examples.

Ready to Monetize?

Join the growing ecosystem of developers earning with CheapPay.

See Live Implementations

Browse real-world examples of AI services, data APIs, and content platforms using CheapPay.

Quick Example

import { solanaPaymentMiddleware } from '@cheapay/x402-express';
import { TokenMint } from '@cheapay/x402';

// Protect your API endpoint with $0.01 USDC payment
app.use(
  '/api/premium-data',
  solanaPaymentMiddleware({
    payTo: 'YourSolanaAddressHere',
    routes: {
      '/*': {
        price: '$0.01',
        network: 'solana-mainnet',
        mint: TokenMint.USDC.mainnet,
      },
    },
  })
);

// Your protected endpoint
app.get('/api/premium-data', (req, res) => {
  res.json({
    data: 'Premium content unlocked!',
    earnings: 'Every call = $0.01 in your wallet',
  });
});
That’s it! Your API now accepts cryptocurrency payments. Users pay with their Solana wallet, and you receive USDC instantly.