Use the GLM-5 API with one key and pay-as-you-go pricing
GLM-5 is available on Crazyrouter through the OpenAI-compatible endpoint. Switch models without changing your integration, and see every request in one billing view.
What is GLM-5?
GLM-5 is a GLM model from Zhipu for chat, reasoning, coding and agent workflows. On Crazyrouter it runs behind the same API key and billing account as 300+ other models, so you can benchmark it against alternatives and route traffic without new credentials.
Works with the OpenAI SDKs, LangChain, Cursor, Cline and any tool that accepts a custom base URL.
Server-sent events, function calling and JSON output behave the way the upstream model documents them.
Rates on this page come straight from the billing table and already include the Crazyrouter discount.
Compare against Claude, GPT, Gemini, DeepSeek and more without juggling vendor accounts.
GLM-5 API quickstart
Point your OpenAI SDK at https://crazyrouter.com/v1 and set the model to glm-5.
curl https://crazyrouter.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $CRAZYROUTER_API_KEY" \
-d '{
"model": "glm-5",
"messages": [{"role": "user", "content": "Explain the tradeoffs of this architecture decision."}],
"stream": true
}'Best use cases
Works with developer tools
OpenAI SDKs
Set base_url to https://crazyrouter.com/v1 and model to glm-5.
Cursor, Cline, Continue
Add Crazyrouter as a custom OpenAI-compatible provider and pick the model from the list.
LangChain / LlamaIndex
Use the OpenAI chat model class with the Crazyrouter base URL.
Claude Code / Codex CLI
Follow the Crazyrouter deployment guides to point either CLI at your key.
GLM-5 FAQ
What base URL do I use for GLM-5?
https://crazyrouter.com/v1. Chat completions go to /v1/chat/completions.
How is usage billed?
Per token, at the input/output rates shown on this page. Your balance is debited per request; there is no subscription.
Does it support streaming and function calling?
Yes. Set stream: true and pass tools as you would with the upstream API. Behaviour follows the upstream model.
Can I switch to another model later?
Change the model string. The same key works for every model in the Crazyrouter catalogue.
Where do I see the current price?
The pricing page lists live rates for every model, including group discounts if you are logged in.