Quick setup
Open the kRouter dashboard at http://localhost:20128
Go to Providers → click Alibaba
Paste your API key, click Save
Test the connection
Use in your IDE
Point any OpenAI-compatible client at kRouter using your local API key.
# Endpoint
http://localhost:20128/v1
# API key (from Dashboard → API Keys)
sk-krouter-XXXX
# Model
alicode/<model-id>How Alibaba billing works with kRouter
Alibaba is pay-per-token. You bring your own API key and kRouter routes to it, so you keep your own rate limits and billing relationship. kRouter authenticates it via apikey. 8 models are routable as alicode/<model>.
Through kRouter, Alibaba serves chat and code completion. Requests reach it through the same local OpenAI-compatible endpoint as every other provider, so switching to or from Alibaba is a one-line model change in your client rather than a rewrite.
Alibaba models & pricing
Prices are USD per 1M tokens, cheapest first. kRouter bills nothing on top; this is the provider's own rate.
| Model | Route as | Input /1M | Output /1M |
|---|---|---|---|
| Qwen3.5 Plus | alicode/qwen3.5-plus | $0.50 | $2.00 |
| MiniMax M2.5 | alicode/MiniMax-M2.5 | $0.50 | $2.00 |
| Qwen3 Max | alicode/qwen3-max-2026-01-23 | $0.50 | $2.00 |
| GLM 4.7 | alicode/glm-4.7 | $0.75 | $3.00 |
| GLM 5 | alicode/glm-5 | $1.00 | $4.00 |
| Qwen3 Coder Next | alicode/qwen3-coder-next | $1.00 | $4.00 |
| Qwen3 Coder Plus | alicode/qwen3-coder-plus | $1.00 | $4.00 |
| Kimi K2.5 | alicode/kimi-k2.5 | $1.20 | $4.80 |
Alibaba links
Alibaba FAQ
Is Alibaba free through kRouter?
Alibaba is pay-per-token: you bring your own API key and are billed by Alibaba at their rates. kRouter adds nothing on top and is free and MIT-licensed.
How do I use Alibaba with Claude Code or Cursor?
Connect Alibaba in the kRouter dashboard, then point your tool at kRouter's local endpoint (http://localhost:20128/v1) with a kRouter API key. Any OpenAI-compatible client works, and models are addressed as alicode/<model>.
Which Alibaba models can kRouter route to?
8 models, including Qwen3.5 Plus, Kimi K2.5, GLM 5. Every one is addressed as alicode/<model> from any client.
What happens when Alibaba is rate limited?
kRouter detects the limit, parks that account until its real reset time, and fails over to your next connected account or provider — so the request still completes instead of erroring.