OpenAI / Gemini / Claude / Workers AI / MiMo — one router
One AI API Router for Every LLM
MuiRouter is an OpenAI-compatible API router: one key routes your requests to OpenAI, Claude, Gemini and more. No VPN, no overseas account — start free with MiMo, top up for the rest.
Drop-in compatible with the OpenAI SDK — just change the Base URL.
Route every major LLM through one API
Supporting OpenAI, Anthropic, Google, Workers AI, Xiaomi MiMo, and more — continuously expanding
The most powerful general model — code, reasoning, multimodal
Ultra-long context, excellent coding and analysis
Multimodal native, ultra-large context window
Cloudflare-native models for low-cost, high-throughput calls
Xiaomi models covering long context, multimodal, and speech synthesis, with free trial quota available
Supports both OpenAI-compatible mode and native API passthrough — no features lost
Image API
Text-to-image and image editing are on the same gateway
Call GPT Image models through the same API key and billing pipeline. Generate new assets from prompts, or upload reference images for edits without a separate integration.
POST /v1/images/generations
POST /v1/images/edits
Generate from prompt
Use /v1/images/generations for product shots, diagrams, social assets, and visual drafts.
Edit uploaded images
Use /v1/images/edits with multipart uploads to transform, combine, or refine existing images.
One account, one bill
Image requests share the same model registry, wallet balance, usage logs, and API key flow as chat models.
Why developers choose MuiRouter
The AI API router and LLM gateway built for developers worldwide
No VPN Required
Proxied through Cloudflare's global edge network for barrier-free access. No overseas credit card or foreign account needed.
Pay Per Use
No monthly fees, no subscriptions. Top up your wallet, pay only for what you use. Balance never expires, check spending anytime.
OpenAI Compatible
Fully compatible with OpenAI SDK and API format. Existing projects only need to change Base URL and API Key — zero migration cost.
Native API Passthrough
Also supports native APIs from each provider, preserving all parameters and features. Claude's long context, Gemini's multimodal — nothing missed.
Get Started in 3 Steps
From sign-up to API call in as fast as 1 minute
Create Account
Email registration, done in 30 seconds. Get your personal API Key instantly.
Try First, Then Top Up
Use free MiMo quota to test immediately, then top up when you need more models or higher usage.
Start Calling
Replace the Base URL — no other code changes needed.
Integration Is This Simple
Already using OpenAI SDK? Just change two lines
from openai import OpenAI
client = OpenAI(
api_key="sk-your-mui-router-key",
base_url="https://your-domain.com/v1",
)
# It's that simple — exactly like using OpenAI directly
response = client.chat.completions.create(
model="gpt-4o", # or claude-sonnet, gemini-pro
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)Also supports Node.js, curl, and any OpenAI API-compatible tool or framework
Or run Claude Code on your balance
Point Claude Code or the Anthropic SDK at MuiRouter — no Anthropic account needed
# Point Claude Code at MuiRouter — native /v1/messages
export ANTHROPIC_BASE_URL=https://your-domain.com
export ANTHROPIC_AUTH_TOKEN=sk-your-mui-router-key
claude # runs Claude on your MuiRouter balanceWorks with the Anthropic SDK too — set ANTHROPIC_BASE_URL and use your sk-gw- key.
Frequently asked questions
- Is MuiRouter related to Material UI (MUI)?
- No. MuiRouter is an OpenAI-compatible AI/LLM API router and MCP server, named after the muirouter.com domain. It has nothing to do with the Material UI (MUI) React component library or MUI X.
- What is MuiRouter?
- MuiRouter is an AI API router: one key routes your requests to OpenAI, Anthropic Claude, Google Gemini, Cloudflare Workers AI and Xiaomi MiMo, billed per token with no subscription.
- Is it OpenAI-compatible?
- Yes. Point the OpenAI SDK's Base URL at MuiRouter and keep your existing code. See the OpenAI-compatible router page to learn more.
- Can I use Claude Code or the Anthropic SDK with MuiRouter?
- Yes. MuiRouter exposes a native Anthropic /v1/messages endpoint. Set ANTHROPIC_BASE_URL to MuiRouter and use your sk-gw- key — Claude Code, the Anthropic SDK and any Anthropic-native client run on your MuiRouter balance, with no Anthropic account required.
Stop struggling with VPNs and overseas credit cards
Sign up to get your API Key and run your first call with free MiMo quota.
Top up only when you need more models or higher usage. Pay per use.