HTTP 402 Payment Required

Welcome to
x402

The Internet-Native Payment Protocol

Built on HTTP. Chain-agnostic. Zero fees.
2-second settlement for the AI agent economy.

0%
Transaction Fees
2s
Settlement Time
100%
Open Standard
Blockchains Supported
Protocol Flow

How x402 Works

Four simple steps to enable internet-native payments

1

Client Requests Resource

An AI agent or application requests a paid API endpoint

GET /api/premium-data
2

Server Returns 402

Server responds with HTTP 402 Payment Required and payment details

402 Payment Required {address, amount, chain}
3

Client Sends Payment

Client automatically pays via blockchain (2 seconds)

Pay 0.1 USDC to 0x742d...
4

Access Granted

Client retries request with payment proof, receives resource

200 OK {data: "premium content"}

Simple. Standard. Universal.

x402 leverages the HTTP 402 status code—reserved for payments since 1997 but never implemented—to create a standardized payment protocol that works with any HTTP stack, any blockchain, and any token.

HTTP Native
Works with standard HTTP headers and status codes
Chain Agnostic
Supports any blockchain or payment rail
Minimal Integration
Add payment requirements with just one line of middleware
Core Features

Why x402

The first truly internet-native payment protocol

Zero Fees

No transaction fees for merchants or customers. Keep 100% of your revenue.

0%
Platform Fee

2-Second Settlement

Blockchain-powered instant settlement. Money in your wallet, not T+2.

2s
Settlement Time

Chain Agnostic

Works with any blockchain. Ethereum, Solana, Base, Polygon, and more.

Blockchains

HTTP Native

Built on standard HTTP. Works with any server stack, any language.

1
Line of Code

Open Standard

No vendor lock-in. Community-driven. Anyone can implement or extend.

100%
Open Source

Zero Friction

No registration, no OAuth, no personal info required from customers.

0
Sign-up Steps

AI Agent Ready

Purpose-built for autonomous AI agents. Programmatic, instant payments.

Agents

Self-Custodial

Payments go directly to your wallet. No intermediary, no custody risk.

100%
Your Control

Micropayments

Enable pay-per-use models. No forced subscriptions or ads required.

$0.01+
Min Payment

Built for the Future of the Internet

x402 is designed for a world where AI agents are economic actors, where micropayments replace subscriptions, and where financial transactions happen at internet speed.

2025+
AI Agent Era
Pay-per-Use
No More Subscriptions
Internet Speed
Real-time Settlements
Use Cases

x402 for Everyone

From autonomous AI agents to indie creators, x402 enables new economic models

For AI Agents

Autonomous Economic Actors

API Access

AI agents pay for premium API calls automatically without human intervention.

Example
Claude Code pays $0.01 per advanced code analysis request

Data Purchases

Real-time data acquisition with instant micropayments.

Example
Trading bots buy market data on-demand at $0.001 per query

Cloud Services

Pay-per-use cloud compute, storage, and bandwidth.

Example
AI agents rent GPU time at $0.10 per minute, pay as they go

Real-World Examples

🤖

AI Research Labs

AI agents access premium research papers and datasets on-demand, paying per download

☁️

Cloud Storage

Users pay $0.001 per GB per hour without accounts, subscriptions, or billing cycles

📸

Stock Photography

Photographers sell images at $5 each with instant settlement, no platform fees

🎵

Music Streaming

Pay $0.01 per song stream, artists receive 100% of revenue in real-time

📊

Financial Data

Trading algorithms purchase real-time market data at $0.10 per API call

🎮

Gaming Assets

In-game purchases settle instantly on-chain, no payment processor intermediary

Ecosystem

Built by the Community

An open standard supported by industry leaders

Key Partners

🔵

Coinbase

Protocol Author

Authored the x402 specification and led initial development

🟠

Cloudflare

Infrastructure Partner

Supporting MCP integrations and deferred payment schemes

🌐

x402 Foundation

Governance

Driving adoption and maintaining the open standard

2025
Launch Year
10,000%+
Growth (Oct 2025)
Open
Source License
Potential

Join the x402 Community

x402 is an open standard that belongs to everyone. Contribute to the specification, build implementations, or integrate x402 into your projects.

Start Building with x402

Ready to Accept
Internet-Native Payments?

PayIn natively supports x402. Start accepting payments with zero fees, 2-second settlement, and full self-custody.

✨ x402 Compatible
🔒 Non-Custodial
⚡ 2s Settlement
💰 Zero Fees
🌐 Multi-Chain