Per call. Per millisecond.
Per cent.
Agents hit a paywall, pay in stablecoins, access granted. No signup, no subscriptions, no billing infrastructure. This is how the internet should have worked from the start.
How the Pay layer works.
x402 revives the dormant HTTP 402 'Payment Required' status code. An agent requests a paid endpoint, the server responds with payment terms, the agent pays, and access is granted — all in a single exchange. BRIJ handles settlement, routing, and receipts.
import { brij } from "@brij/sdk";
// Agent hits a paywalled API
const res = await brij.pay({
endpoint: "https://api.signals.xyz/v1/alpha",
price: 0.001, // USDC per call
wallet: agent.wallet,
});
// 402 Payment Required → 200 OK
// res.data → { signals: [...] }
// res.receipt → on-chain settlement proofWhat you can build with it.
HTTP-native protocol
Payment metadata travels inline with the HTTP request. Any web framework, any language — just middleware.
Stablecoin settlement
USDC on Solana by default. Sub-second settlement. Providers receive funds instantly, no invoicing loops.
Policy-bound spending
Agent wallets enforce per-minute, per-day, per-endpoint spend caps. Compromised agents can't drain the wallet.
Automatic receipts
Every payment produces a cryptographic receipt. Providers and agents share an auditable ledger.
Real workloads running on this layer.
Premium API access
Agents pay per call for market data, LLM inference, or compute — no subscriptions.
Micro-content
Pay-per-article, pay-per-query databases, pay-per-chart. Publishers monetize without paywalls.
Agent-to-agent
One agent pays another for a service. Delegated compute, specialized queries, coordinated tasks.
Explore the rest of the stack.
Start building on Pay.
Get API keys, read the docs, and ship your first agent this week.