x402 is a new open protocol from Coinbase that finally activates the long-dormant HTTP 402 status code—“Payment Required”—for real-time, stablecoin-native transactions across the web. It enables developers to build paid APIs, on-demand SaaS features, and even self-paying AI agents, all using a single HTTP round trip. Curotec can help your team implement x402 and turn your endpoints into monetized infrastructure, starting today.
The Web Was Never Built to Handle Payments
HTTP has transformed everything from communication to commerce, but one thing it never solved natively? Payments.
For decades, developers have worked around this with subscription tokens, credit card forms, and API keys. These methods were designed for humans, not machines—and they’re clunky, slow, expensive, and prone to fraud. That’s a serious limitation in a world moving toward microservices, programmable money, and autonomous AI agents that need to interact economically in real time.
The need for a machine-speed, internet-native payment layer is no longer theoretical. With the rise of AI-to-AI transactions, pay-as-you-go APIs, and decentralized infrastructure, a protocol-level solution is overdue.
Introducing x402
It’s fast, simple, and most importantly—native to how the web already works.

Coinbase has launched x402, a developer protocol that reclaims the long-unused HTTP status code 402 Payment Required and reimagines it as a frictionless payment layer for the internet.
The idea is simple but powerful: any time a request needs payment—whether it’s for API access, premium content, or compute resources—a server can reply with a 402 status and pricing metadata.
The client then signs and returns a stablecoin payment, completing the interaction in a single HTTP flow.
Core Features
- Open source protocol — Hosted at x402.org with full spec and reference implementations
- HTTP-native — Built on existing web infrastructure using standardized headers
- Stablecoin-based — Supports USDC at launch, with potential for others
- Chain-agnostic — Runs on fast, low-fee L2s like Base
- Finality in seconds — Payments clear in ~2s with fees as low as $0.001
- Designed for automation — Perfect for AI, microservices, and machine-to-machine payments
Coinbase is operating an initial x402 Facilitator service that handles verification, gas management, transaction routing, and dashboards—so developers can get started without building wallet infrastructure from scratch.
How x402 Works — A Closer Look
Here’s the flow:
- Request: A client requests a protected resource (e.g.
/premium-data
). - 402 Response: The server replies with
402 Payment Required
and includes pricing, tokens accepted (like USDC), and destination wallet address in the response body. - Signed Payment: The client constructs and signs a payment, then retries the same request with an
X-PAYMENT
HTTP header containing payment metadata. - Verification: A facilitator service (like Coinbase’s) receives the header, verifies the transaction on-chain, and issues a signed receipt.
- 200 OK: The server returns a 200 response and includes the
X-PAYMENT-RESPONSE
header with receipt metadata.
It’s effectively a stateless, trust-minimized payment handshake, embedded in the same infrastructure that runs the modern web.
Why x402 Is a Big Deal
1. Unlocks Micro-Monetization
Current payment processors often impose high minimums, settlement delays, and per-transaction fees. With x402, you can now:
- Charge $0.001 for a data query
- Gate endpoints with per-call fees
- Enable real-time per-minute billing for premium access
This brings new business models like microservices-as-a-service or usage-based SaaS to life.
2. Enables Autonomous Agents to Transact
Generative agents, bots, and IoT systems can now initiate and settle payments without relying on API tokens or prepaid wallets. That means a scheduling AI can pay to reserve calendar slots, or an ML agent can pay to access compute, without hardcoding permissions or tokens.
3. Replaces Outdated Models
The 402 status code was always reserved for this purpose—but never standardized. Until now. With x402, developers can finally integrate payments in a way that feels as native as a 404 or 200.
4. Future-Proofed by Design
x402 is stablecoin-native today, but the spec is token-agnostic and flexible enough to support multi-token payments, bidirectional flows, and offline receipts in the future. Facilitators can be hosted by anyone—meaning this is not a Coinbase lock-in.

👋 What part of your product are you looking to monetize with x402?
We’ll use your answer to tailor the right implementation strategy.
Trusted by tech leaders at:



Real-World Examples
API Monetization (Neynar)
Social graph platforms like Neynar now let developers access rich identity data on a per-request basis using x402.
SaaS Platforms (Cal.com)
Calendaring service Cal.com uses x402 to charge AI agents and users for premium scheduling features per interaction—no more monthly plans.
AI Toolchains (Anthropic)
Anthropic is integrating x402 into its Model Communication Protocol (MCP), allowing large language models to transact with each other directly, buying and selling context, tools, or prompts.
Compute Infrastructure (Hyperbolic)
Hyperbolic enables autonomous agents to pay for GPU time on demand. Agents are the customer—and the checkout happens mid-request.
x402 vs Traditional Web Payment Methods
Feature | Traditional Payments | x402 Protocol |
---|---|---|
Setup Complexity | Requires payment processors, KYC, PCI compliance | Minimal — pure HTTP + facilitator |
Machine-to-Machine Compatibility | Not supported | Fully supported (ideal for AI agents) |
Settlement Speed | 1–3 days (credit cards) | ≤2 seconds (on Base and other L2s) |
Minimum Payment Amount | Typically $0.50+ | ~$0.001 (microtransactions) |
User Friction | Manual checkout, forms, redirects | Seamless, browser- and agent-friendly |
Developer Integration | Multi-step, vendor SDKs | One middleware + one HTTP header |
Fraud Risk / Chargebacks | High | Minimal — on-chain finality |
Global Accessibility | Limited by card networks and geography | Open to anyone with a wallet |
Revenue Model Fit | Subscriptions, carts | Pay-per-request, usage-based, AI-to-AI monetization |
Developer Experience
import { paymentMiddleware } from 'x402';
app.use(paymentMiddleware('0xMerchantAddress', {
'/api/premium': '$0.005',
}))
On the client side, just attach a signed X-PAYMENT
header using the helper library. Coinbase’s facilitator will verify the transaction, settle it, and return a receipt that the server can trust.
You can test this now on the Base Sepolia testnet with real pricing flows and dashboards.
Where Curotec Comes In
Whether you’re looking to monetize an API, explore machine-to-machine commerce, or prototype an AI-native checkout experience, Curotec can help you implement x402 with confidence.
Here’s how:
Service Area | What You Get |
---|---|
Strategic discovery | Assess if x402 fits your use case and product roadmap |
Rapid prototyping | Launch testnet integrations and build early flows |
Wallet infrastructure | Evaluate multi-sig, MPC, or fully hosted wallet custody |
Compliance & settlement | Align with KYC, AML, and financial reporting needs |
UX integration | Embed seamless stablecoin payment flows that don’t feel like crypto |
Performance tuning | Monitor on-chain settlement performance, fees, and fallback strategies |
We’ve helped fintechs and SaaS providers architect blockchain-based solutions, and we’re tracking closely with the x402 ecosystem. As facilitator options and token support expand, we’ll help you scale securely.
Implementation Checklist
✅ Identify monetizable endpoints (e.g., /generate
, /download
, /stream
)
✅ Set a pricing model: flat fee, tiered access, or metered usage
✅ Choose which tokens you’ll accept (USDC at launch)
✅ Decide on your facilitator or self-hosted settlement model
✅ Engage a partner like Curotec to scope your pilot and bring it to life
Curotec can help you implement x402
Turn your endpoints into revenue streams. From strategy to code to compliance, we’ll help you make x402 work for your business.
→ Schedule a discovery call today.