You already have an x402 buyer
Direct API
Send familiar JSON to one HTTPS origin. Bring an official x402 client that supports exact EIP-3009 Base USDC payments.
Public API · Base mainnet · USDC payments
One provider-neutral API for text, images, and speech. Pay per request with USDC through x402, enforce budgets locally, and keep a verified receipt for every completed payment.
Published model rates, a fixed successful-call fee, and minimum measured-usage charge still apply. Read exact pricing.
One payment core, every surface
Use the public API directly, install a client from npm, or connect through an agent-native adapter. Every local surface delegates wallet custody, policy, payment, recovery, and receipt verification to the same Buyer Runtime.
You already have an x402 buyer
Send familiar JSON to one HTTPS origin. Bring an official x402 client that supports exact EIP-3009 Base USDC payments.
You are building a Node.js application
Typed discovery and paid calls over the Buyer Runtime, with one recovery and receipt contract for every capability.
You work in a terminal
Create and unlock a dedicated wallet, set budgets, make requests, recover outcomes, and inspect receipts.
Your agent uses native tools
Nine focused tools for discovery, generation, wallet status, and receipts. Local stdio, with human-owned wallet setup.
Your app accepts an OpenAI base URL
A protected loopback adapter handles payments locally and caches eligible identical text responses for ten minutes.
Your coding agent follows reusable instructions
Discovery, payment, and recovery guidance over the installed Buyer CLI. The agent never receives your wallet key.
You use OpenClaw agents
A native provider, live policy-filtered models, bounded media tools, and same-key retry protection through the local proxy.
You use Hermes Agent
A native model provider, media tools, in-session discovery, diagnostics, and deliberate recovery commands.
Available now
10 reviewed models across 4 live capability categories. Discover availability and integer-backed pricing before your agent authorizes payment.
/v1/chat/completions
Chat, vision, tools, and structured output in OpenAI or Anthropic request shapes.
/v1/images/generations
Generate a 1K image and receive a hosted URL or Base64 delivery.
/v1/audio/speech
Generate hosted MP3 audio using one of 20 curated public voice aliases.
/v1/audio/transcriptions
Transcribe one bounded MP3 through JSON or multipart input.
Gemini currently serves text and image generation. ElevenLabs serves the public MP3 speech routes. The interface is provider-neutral; the live catalog is authoritative. Video is not available.
From install to first result
The TypeScript SDK, CLI, MCP server, proxy, Buyer Runtime, and routing package are public npm alphas. Pin the alpha tag and keep wallet setup in a human-controlled terminal.
Public npm alpha · requires human setup and an unlocked Buyer Runtime.
npm install @agenticfi/onchain-router@alpha
import { OnchainRouterBuyer } from '@agenticfi/onchain-router';
const requestKey = process.env.REQUEST_ID;
if (!requestKey) throw new Error('Set a persisted REQUEST_ID');
const buyer = await OnchainRouterBuyer.connect();
try {
const result = await buyer.chat({
"model": "gemini-3.6-flash",
"messages": [
{
"role": "user",
"content": "Explain x402 in one sentence."
}
],
"max_tokens": 128,
"stream": false
}, requestKey);
if (!result.ok) throw new Error(`${result.outcome}: ${result.message}`);
console.log(result.body);
console.log(result.receipt.id, result.payment.actualAtomic);
} finally {
buyer.close();
}Public npm alpha · setup, unlock, and policy changes stay human-only.
npm install --global @agenticfi/onchain-router-cli@alpha
onchain-router setup
onchain-router policy show
onchain-router unlock
onchain-router modelsPublic npm alpha · prints a local stdio configuration without exposing wallet secrets.
npm install --global @agenticfi/onchain-router-mcp@alpha
onchain-router-mcp --print-configPublic API · this plain request inspects the unpaid challenge and does not sign or spend USDC.
request_key="$(node -p 'require("node:crypto").randomUUID()')"
curl -i https://llm.agenticfi.wtf/v1/chat/completions \
-H 'content-type: application/json' \
-H "x-idempotency-key: $request_key" \
--data '{"model":"gemini-3.6-flash","messages":[{"role":"user","content":"Explain x402 in one sentence."}],"max_tokens":128,"stream":false}'Payment with a paper trail
Agents can discover, choose, and pay for models without receiving the wallet key or permission to widen a budget.
Network, asset, recipient, expiry, scheme, request identity, model, and exact amount must all match local policy.
Provider-unknown and settlement-unknown outcomes stop for review. Recovery preserves the exact request identity.
The service releases a successful result only after settlement evidence and a durable receipt are stored.
The loopback proxy can reuse eligible identical text responses for ten minutes and identifies the source receipt.
Transparent catalog
Prices are published by token, image, character, or audio duration. The live 402 challenge supplies one request-specific exact amount; the durable receipt records payment and normalized usage.
The launch promotion is 0% service markup. A fixed successful-call fee and minimum usage charge are separate and disclosed.
Compare every modelOne current example per capability
gemini-3.6-flash$1.5 input · $7.5 output per 1M tokensgemini-3.1-flash-lite-image1K (default) $0.035000elevenlabs/flash-v2.5$0.05 per 1K characterselevenlabs/scribe-v2$0.22 per audio hourInspect the integration layer
The proprietary gateway and provider credentials remain private. The software that holds buyer policy, signs payments, integrates agent hosts, and verifies receipts is available for review under MIT.
Build on the public alpha
Start with the Buyer CLI, or bring an official x402 buyer to the public API.