Payment infrastructure
for the agent economy

The payment infrastructure for autonomous agents. Add micropayments to any API in minutes. USDC on any chain.

server.ts TypeScript
1// Add payments to any Hono API
2import { uptoPaymentMiddleware } from
3  "@x402cloud/middleware"
4
5app.use("/*", uptoPaymentMiddleware({
6  "POST /api": {
7    network: "eip155:8453",
8    maxPrice: "$0.01",
9    payTo: "0x207C...8E88",
10  }
11}))
12
13// That's it. Your API now accepts USDC.

Protocol
Four steps. No signup.
The x402 protocol handles payment negotiation over standard HTTP. Any client that speaks x402 can pay any x402 API.
Step 01
Request
Agent calls your API
Step 02
402 Response
Server returns price
Step 03
Sign & Retry
Client signs Permit2 authorization
Step 04
Settle
On-chain USDC settlement

Architecture
Everything you need for x402
Open source library to add payments. Hosted facilitator to handle settlement. Services your agents can use today.
01

Open Source Library

Add x402 payments to any API. Protocol types, EVM schemes, middleware, client SDK. npm install and go.

02

Hosted Facilitator

We handle payment verification and on-chain settlement. Multi-chain. Sub-100ms from 330+ Cloudflare edge cities.

03

Agent Services

Ready-to-use x402 APIs. AI inference, agent identity, analytics. Pay per call with USDC, no signup needed.


Services
APIs built for agents
Every service accepts x402 micropayments. No API keys, no signup. Payment is authentication.
x402cloud.ai

Library

Open source x402 implementation. Protocol types, EVM payment schemes, middleware, client SDK. npm install and go.

Live
infer.x402cloud.ai

Inference

Edge AI inference. OpenAI-compatible. Llama, DeepSeek, Qwen, Flux. Pay per token.

Live
facilitator.x402cloud.ai

Facilitator

Hosted verification and settlement. Base, Ethereum, Arbitrum, Optimism, Polygon.

Live
identity.x402cloud.ai

Identity

Face verification, liveness detection, proof of humanity, anti-sybil. Pay-per-call biometric APIs.

Coming soon
trust.x402cloud.ai

Reputation

On-chain trust scores for agents and sellers. Built from real x402 settlement history across all facilitators.

Coming soon
wallet.x402cloud.ai

Agent Wallets

Wallet creation, spending limits, budget controls. Multi-sig for agent fleets. Ready-to-go wallets for autonomous agents.

Coming soon

Packages
Five packages. Zero lock-in.
Everything is open source and modular. Use what you need.
protocol
Types & headers
evm
Payment schemes
client
Auto-pay 402s
middleware
Server middleware
facilitator
Verify & settle
$ npm install @x402cloud/client