Quick setup
Open the kRouter dashboard at http://localhost:20128
Go to Providers → click GLM (China)
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
glm-cn/<model-id>How GLM (China) billing works with kRouter
GLM (China) 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. 6 models are routable as glm-cn/<model>.
Through kRouter, GLM (China) serves chat and code completion. Requests reach it through the same local OpenAI-compatible endpoint as every other provider, so switching to or from GLM (China) is a one-line model change in your client rather than a rewrite.
GLM (China) 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 |
|---|---|---|---|
| GLM-4.6 | glm-cn/glm-4.6 | $0.50 | $2.00 |
| GLM-4.7 | glm-cn/glm-4.7 | $0.75 | $3.00 |
| GLM-4.5-Air | glm-cn/glm-4.5-air | $0.75 | $3.00 |
| GLM 5.3 | glm-cn/glm-5.3 | $1.00 | $4.00 |
| GLM 5.1 | glm-cn/glm-5.1 | $1.00 | $4.00 |
| GLM 5 | glm-cn/glm-5 | $1.00 | $4.00 |
GLM (China) links
GLM (China) FAQ
Is GLM (China) free through kRouter?
GLM (China) is pay-per-token: you bring your own API key and are billed by GLM (China) at their rates. kRouter adds nothing on top and is free and MIT-licensed.
How do I use GLM (China) with Claude Code or Cursor?
Connect GLM (China) 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 glm-cn/<model>.
Which GLM (China) models can kRouter route to?
6 models, including GLM 5.3, GLM 5.1, GLM 5. Every one is addressed as glm-cn/<model> from any client.
What happens when GLM (China) 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.