MiaRouter Docs
One endpoint. One key. Every model. MiaRouter routes your requests to the model you ask for, bills you per request, and keeps receipts so clean you can audit yourself.
Getting Started
Create an account, verify on Telegram, claim the free trial, and find your way around the console.
API Keys
Create, scope, and manage sk-… keys. Quotas, expiry, model limits, groups.
Credits & Billing
Wallet deposits, credit packs, subscriptions, referrals — and how per-request pricing works.
Connect Your Agents
Claude Code, Codex, Cursor, Gemini CLI, and any OpenAI-compatible client.
Error Reference
What every status code and error message means, and what to do about it.
Platform Reference
Endpoints, the model catalog, groups, dedicated pools, playground, and privacy.
- Create an account — you must accept the Privacy Policy to register. It is enforced, not decorative.
- Verify on Telegram from your profile to unlock the free trial (7 days of credits, window-limited).
- Create an API key in Keys ↗.
- Point any agent at
https://miarouter.onlinewith that key. That is the whole integration.
Why a gateway
Every provider has its own auth, its own error shapes, its own billing quirks. MiaRouter normalizes them: your client speaks one of the supported wire formats (OpenAI, Anthropic, Gemini) to one base URL, and the platform takes care of routing, billing, retries, and logs. When a provider has a bad day, you see one consistent error surface instead of five inconsistent ones.
All current models are billed per request: each API call costs the flat price listed on the pricing page, no matter how many tokens it moves. No per-token arithmetic, no surprise bills at 2 AM.