Onchain Routerby AgenticFI Base Mainnet

Developer documentation

Build with Onchain Router

Choose an integration for text, images, and speech, with clear publication status and human-owned payment setup.

Page tools

Onchain Router by AgenticFI gives your agents one provider-neutral API for text, images, text to speech, and speech to text. Pay per successful request with USDC on Base and receive a durable receipt. You do not need payer registration or a provider API key.

Choose how you connect

IntegrationBest forAvailabilitySource
Direct APIYou already have an x402 buyerPublic APIUse the public API
TypeScript SDKYou are building a Node.js applicationnpm alpha · 0.1.2GitHub
Buyer CLIYou work in a terminalnpm alpha · 0.1.2GitHub
MCPYour agent uses native toolsnpm alpha · 0.1.2GitHub
Local OpenAI proxyYour app accepts an OpenAI base URLnpm alpha · 0.1.2GitHub
Agent SkillYour coding agent follows reusable instructionsMIT source · alphaGitHub
OpenClawYou use OpenClaw agentsGitHub alpha · 0.1.0GitHub
Hermes AgentYou use Hermes AgentGitHub alpha · 0.1.0GitHub

Buyer Runtime is the shared wallet and payment foundation for the local tools, not another endpoint to choose. Read how the runtime works.

Start building today

If you already have an official x402 buyer supporting Base USDC exact, follow the first-request guide. A standard OpenAI client alone cannot pay the public API: it needs an x402-capable transport or our local proxy.

For our client tools, review installation and availability, then install the 0.1.2 npm alpha or a 0.1.0 host-native GitHub alpha. OpenClaw and Hermes Agent have dedicated copyable install guides. For a browser walkthrough, see Workbench.

Choose a capability

  • Text: Chat Completions or Anthropic-style Messages.
  • Images: one generated image with a hosted URL or Base64 output.
  • Text to speech: hosted MP3 audio with a curated voice.
  • Speech to text: an MP3 transcript, with provider-retention disclosure.

The current catalog determines which models and parameters work. The brand stays provider-neutral; supporting a request format does not imply support for that provider's models. Video is not currently available.

Source of truth

Use live models, live pricing, and OpenAPI. The HTTP 402 challenge determines the exact request price; the receipt confirms payment and normalized usage. See pricing for the 0% service fee launch promotion and the separate fixed fee.

For agents, llms.txt is the compact index and llms-full.txt is the complete Markdown documentation. products.json records publication and build availability, not live uptime.

Reviewed 2026-09-04Catalog c1f92fac4f1d

Search guides, endpoint references, models, and pricing.