Turn any API, dataset or AI agent into a pay-per-use Hedera x402 service in seconds
Turn any API into a metered x402 API. Buyers pay for exactly what each call returns, not a flat price per request.
x402 enables APIs to charge per request, but a request is often the wrong unit of pricing.
Sellers therefore have to price for the worst case, and light users overpay. This is especially painful for AI agents, which make many small API calls.
npx mx402 publish <url> --wallet <account>
MeterX402:
No code changes required. Your upstream API key never leaves your machine.
The gateway:
402 Payment Required with the exact price.npx mx402 data file.csv
Turn a CSV, JSON, or JSONL file into a queryable API priced per cell.
Point mx402 publish at an LLM or your own agent endpoint.
One flag determines where payments settle:
| Hedera | Base Sepolia | Solana Devnet
The Deployer page shows:
Reputation data is anchored to Hedera Consensus Service.
An AI agent that pays for its own research.
MeterX402 connects to:
Setup takes only a few steps.
Each AI agent pays using the user's own testnet account, directly from their machine and within their configured budget.
Machines pay machines directly.
No signup. No API key. No human approval for every call.
npx mx402 publish <url> --wallet <account>. It calls the API once, reads the response, and detects what to meter — tokens, rows at a JSON path, cells, entities, bytes — along with a starting price.mx402 data file.csv does the same for a dataset, priced per cell.402 Payment Required with the exact price and a SHA-256 of that body.mx402 connector; a REST API with an OpenAPI spec behind a bearer token (ChatGPT Custom GPT Actions); and a VS Code extension. All of them sign with the user's own key, never a shared wallet.SKILL.md make it usable by any agent./quote, /check_approval and /swap are sold per call.npx mx402 starts fast.
