Skip to main content
kRouter
All providers

Pay-per-token

glm-cn/

GLM (China)

GLM (China) — connect via API key.

open.bigmodel.cn

Quick setup

  1. Open the kRouter dashboard at http://localhost:20128

  2. Go to Providers → click GLM (China)

  3. Paste your API key, click Save

  4. Test the connection

Use in your IDE

Point any OpenAI-compatible client at kRouter using your local API key.

ide configbash
# 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.

ModelRoute asInput /1MOutput /1M
GLM-4.6glm-cn/glm-4.6$0.50$2.00
GLM-4.7glm-cn/glm-4.7$0.75$3.00
GLM-4.5-Airglm-cn/glm-4.5-air$0.75$3.00
GLM 5.3glm-cn/glm-5.3$1.00$4.00
GLM 5.1glm-cn/glm-5.1$1.00$4.00
GLM 5glm-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.