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
| Integration | Best for | Availability | Source |
|---|---|---|---|
| Direct API | You already have an x402 buyer | Public API | Use the public API |
| TypeScript SDK | You are building a Node.js application | npm alpha · 0.1.2 | GitHub |
| Buyer CLI | You work in a terminal | npm alpha · 0.1.2 | GitHub |
| MCP | Your agent uses native tools | npm alpha · 0.1.2 | GitHub |
| Local OpenAI proxy | Your app accepts an OpenAI base URL | npm alpha · 0.1.2 | GitHub |
| Agent Skill | Your coding agent follows reusable instructions | MIT source · alpha | GitHub |
| OpenClaw | You use OpenClaw agents | GitHub alpha · 0.1.0 | GitHub |
| Hermes Agent | You use Hermes Agent | GitHub alpha · 0.1.0 | GitHub |
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.
