Documentation
Build with MoxToken
Everything you need to integrate 100+ AI models into your application.
Getting Started
New to MoxToken? Start here.
Quickstart Guide
Get your first API call working in under 5 minutes.
Authentication
How API keys work, scopes, and security best practices.
Coming soonRate Limits
Understand rate limits, quotas, and how to handle 429 errors.
Coming soonSDKs & Libraries
MoxToken is OpenAI-compatible — use any OpenAI SDK with our base URL.
Python
pip install openai — works out of the box
pip install openai Node.js / TypeScript
npm install openai — full TypeScript support
npm install openai cURL / HTTP
Direct REST API calls — no SDK needed
Any HTTP client Integration Guides
Step-by-step guides for common use cases.
Migrate from OpenAI
Switch from OpenAI direct to MoxToken in 2 lines of code. Same SDK, lower prices.
Read guide →Migrate from OpenRouter
Already using OpenRouter? Switch to MoxToken for better pricing and reliability.
Read guide →Streaming Responses
Enable server-sent events for real-time token streaming in your chat applications.
Read guide →Error Handling
Best practices for handling rate limits, timeouts, and API errors gracefully.
Read guide →Use MoxToken in your tools
Step-by-step setup guides for popular AI tools.
Coding & Agents
Claude Code
Use MoxToken as the model backend for Claude Code by switching the Anthropic base URL. Works with all Claude models supported by MoxToken.
Read guide →OpenClaw
Power your personal AI assistant with 100+ models through a single MoxToken key. Drop-in replacement for OpenAI-compatible providers.
Read guide →Hermes
Connect Hermes Agent to MoxToken as its inference provider. Switch models on the fly through Hermes' built-in selector.
Read guide →Chat clients
Cherry Studio
Add MoxToken as a custom OpenAI provider in Cherry Studio's settings panel, then chat across every MoxToken-supported model from one desktop client.
Read guide →LobeChat
Plug MoxToken into LobeChat's model provider list in two settings clicks. Works in both the desktop app and self-hosted web deployments.
Read guide →Chatbox
Configure MoxToken as a custom provider in Chatbox so you can switch between models without juggling multiple keys.
Read guide →API Reference
Base URL for all API requests:
https://api.moxtoken.com/v1 /chat/completions Chat completions (GPT, Claude, Gemini, etc.) /completions Text completions (legacy) /embeddings Text embeddings /images/generations Image generation /models List available models Ready to Build?
Get your API key and make your first call in under 5 minutes.