GLM API

Z.ai's GLM-5.3, GLM-5.3 Flash and GLM-5.2 with a 1M-token context, through one key and prepaid credit.

GLM (Z.ai) models and pricing

ModelContextInput / 1MOutput / 1MCached / 1M
GLM-5.3
z-ai/glm-5.3
1M $1.82$5.72$0.338
GLM-5.3 Flash
z-ai/glm-5.3-flash
1M $0.195$0.65$0.039
GLM-5.2
z-ai/glm-5.2
1M $1.82$5.72$0.273

USD per million tokens. Billed from prepaid credit; every response reports its exact cost.

Quick start

curl https://solorouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $SOLO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "z-ai/glm-5.3", "messages": [{"role": "user", "content": "Hello"}]}'

Works with LangChain, Cline, Continue, Open WebUI and any tool that lets you set a base URL: use https://solorouter.ai/api/v1. See the docs.

How to get your GLM API key

  1. Sign in with Google. New accounts get free credit (one per person).
  2. Copy the API key created for you on the Keys page, or create one with its own spending limit.
  3. Send requests to https://solorouter.ai/api/v1/chat/completions with "model": "z-ai/glm-5.3". Top up from $5 when you need more.

Why use GLM (Z.ai) through Solo Router

Related guides

Frequently asked questions

How do I get GLM-5.3 API access?

Create a Solo Router key and use the model z-ai/glm-5.3. GLM-5.3 Flash (z-ai/glm-5.3-flash) is the fast, low-cost option.

What is GLM-5.3 good at?

GLM-5.3 is strong at coding and agentic tasks; GLM-5.3 Flash is a cheap everyday model with a 1M context.

Can I use GLM-5.3 for coding agents?

Yes. Point Cline, Continue or your own agent at https://solorouter.ai/api/v1 with your key and the model z-ai/glm-5.3.

Do I need a Z.ai account?

No. One Solo Router key and prepaid balance covers all GLM models.

Get your API key in 30 seconds

Sign in with Google. New accounts get free credit (one per person) to try the models.

Get started free

Also on Solo Router: DeepSeek API · Kimi API · Qwen API · MiniMax API · Llama API · Gemma API · all models