Sell API access to AI agents
Charge AI agents per request in USDC — no API keys to issue, no plans to manage, no invoices to chase.
AI agents now call APIs faster and in higher volume than any human ever could. The old model — sign up, get a key, pick a monthly plan — was built for people, and it breaks the moment an autonomous agent shows up wanting one call right now.
Loomal lets your API charge agents per request over the x402 protocol. The agent discovers the price, pays in USDC, and gets the response — all in a single round trip. You add a few lines of middleware and keep doing what you already do.
Why per-call beats subscriptions for agents
An agent rarely wants a relationship with your service. It wants one answer, once, and it wants to pay for exactly that. Subscriptions force it to over-commit; free tiers get abused; manual key provisioning can't happen at machine speed.
Per-call pricing matches what the agent actually consumes. A tenth of a cent or a dollar per request — you set it — billed in real time. No seats, no minimums, no churn.
How it works
Wrap any HTTP handler with requirePayment. On the first hit Loomal returns a 402 with the price; the agent signs a USDC authorization and retries; Loomal verifies and settles the transfer on Base and returns a signed receipt.
There are no keys to issue or rotate. Authentication and payment happen together in the x402 handshake.
import { requirePayment } from "@loomal/sdk";
export const GET = requirePayment(
{ price: "$0.02" },
async (req) => Response.json({ data: await query(req) }),
);What you get paid in
Settlement is in USDC on Base, directly to a non-custodial wallet Loomal provisions for your project. Funds land in seconds and you can cash out to any address anytime — Loomal never holds your money.
Every settled call produces an Ed25519 receipt you can verify offline, so your revenue is provable and auditable.
FAQ
Do I need to manage API keys?
No. The x402 handshake authenticates and pays in one step, so there are no keys to issue, rotate, or revoke.
What does it cost me?
Listing and integration are free; you start free and pay a small fee only on settled revenue. See pricing for the per-call rates.
Which frameworks are supported?
Any HTTP framework — Express, Hono, Next.js, FastAPI — plus MCP tools. It's a thin middleware over your existing handler.
Start selling to agents.
Wrap an endpoint, set a price, get paid in USDC.