Turn any API into a revenue stream

Monetize your APIs with blockchain payments in minutes

Transform any API into a payment-gated service using the x402 protocol. Accept micropayments on Solana, Ethereum, Base, and other chains—no complex billing integration required.

Open source
Multi-chain support
Developer-first

Why developers choose to402

100% Free
  • Interactive Setup

    Modern, multi-step builder with validation and previews.

  • Route-Level Pricing

    Price every wildcard path independently and preview total revenue.

  • Auth Passthrough

    Forward API Keys, Bearer tokens, or custom headers without storing secrets on clients.

  • x402 Compliance

    Auto-provision facilitators, seller accounts, and payment receipts in seconds.

From zero to paid API in 60 seconds

Our interactive CLI walks you through setup—no blockchain expertise required.

terminal
$ npx to402-cli create

🚀 to402 CLI - Scaffold an x402 Proxy Server

? Project name: my-api-proxy
? API base URL to proxy: https://api.coingecko.com
? Default price: $0.001
? Route path: /api/*
? Seller address: 0x1234...
? Network: solana-devnet

✓ Project generated successfully!

📝 Next steps:
  1. cd my-api-proxy
  2. pnpm install
  3. pnpm dev

Everything you need to monetize your APIs

Built for developers who want to focus on building, not billing infrastructure.

Interactive CLI Setup

Step-by-step prompts guide you through configuration. Generate a production-ready proxy server in under a minute.

Per-Route Pricing

Set default prices and configure custom pricing for individual routes. Use wildcards like /api/* for flexible matching.

Multi-Chain Support

Accept payments on Solana, Ethereum, Base, and any EVM-compatible chain. Switch networks with a single config change.

Authentication Forwarding

Support for API Key, Bearer Token, Basic Auth, and custom headers. Your upstream API stays secure.

Real-time Dashboard

Monitor requests, track revenue, and analyze usage patterns. Beautiful charts and comprehensive analytics included.

On-Chain Receipts

Every payment is recorded on the blockchain. Full transparency and verifiability for both you and your users.

Perfect for any paid API use case

Whether you're monetizing data, AI models, or third-party APIs—to402 has you covered.

🤖

AI Model APIs

Charge per inference for your ML models. Perfect for GPT wrappers, image generation, or custom AI services.

📊

Data APIs

Monetize market data, weather APIs, or analytics. Set different prices for real-time vs. historical data.

🔗

API Aggregators

Combine multiple APIs and charge a single fee. Add value with caching, rate limiting, and unified responses.

Premium Features

Gate advanced features behind payments. Free tier for basics, paid routes for premium functionality.

🔄

Third-Party Proxies

Resell API access with your own pricing. Add authentication, monitoring, and payment handling automatically.

Webhook Services

Charge for webhook deliveries or event processing. Perfect for notification services and real-time updates.

Ready to monetize your APIs?

Join developers already earning with to402. Start accepting crypto payments in minutes—no credit cards, no subscriptions, just pure pay-per-use.

Free forever • Open source • No credit card required