Agent calls an API
No signup, no credit card form. Just a normal request to a paid endpoint.
rail is HTTP-native pay for AI agents — built on x402. Your agent hits a paid API, settles in stablecoins, and keeps going. No accounts. No API keys. No human in the loop.
How it works
Same HTTP your stack already speaks. x402 made status code 402 useful again — rail is how agents ride it.
No signup, no credit card form. Just a normal request to a paid endpoint.
Machine-readable payment terms: amount, token, network, pay-to. Stateless. No session.
Signs a stablecoin transfer, resubmits with proof. Facilitator settles. Content unlocks.
Works with Solana SPL tokens, EVM stablecoins, and any chain the server accepts. Facilitator handles onchain submit so APIs don’t need a full wallet stack.
Why agents need this
Build
Charge per request. Accept any network the x402 stack supports.
// require payment for paid routes
app.use(
paymentMiddleware({
"GET /costly-data": {
accepts: [{
scheme: "exact",
price: "$0.001",
network: "solana:…",
payTo: svmAddress,
}],
description: "Costly data",
mimeType: "application/json",
},
})
);
Monetize APIs, data, and compute with pay-per-use — no sales funnel for machines.
Fund a wallet, set a spend ceiling, let the agent settle 402s mid-task.
Solana, Base, and more. Stablecoins first. Open standard under the Linux Foundation.
Stateless HTTP. Payment proof rides with the request. Nothing sticky to rotate.
Stack
Price an endpoint. Let agents settle in-band. That’s the whole product.