GLM 5
GLM 5 is available through the each::labs LLM Router. The router handles authentication, retries, and provider fallback so you can target this model with a single API surface, no per-provider SDK required.
- Router slug
- z-ai/glm-5
- Provider
- Z-ai
- Model id
- glm-5
- Context
- 205K tokens
- Input
- text
- Price / M tokens
- $1 in · $3.2 out
- Web search
- Not supported
Call it from cURL
curl -X POST \
-H "Authorization: Bearer $EACHLABS_API_KEY" \
-H "Content-Type: application/json" \
--data '{
"model": "eachlabs-llm-router",
"input": {
"model": "z-ai/glm-5",
"messages": [
{ "role": "user", "content": "Hello!" }
]
},
"webhook_url": ""
}' \
https://api.eachlabs.ai/v1/prediction/Why route?
- One key, one endpoint, swap models without rotating SDKs.
- Automatic retries and provider failover when Z-ai hits rate limits.
- Unified billing through each::labs, pay-as-you-go.
- Drop-in observability, every call is traced in the dashboard.
Working with GLM 5
About GLM 5
GLM 5 is a large language model from Z-ai, available through the each::labs LLM Router. You call it with a single API surface, the router handles authentication, retries, and provider failover so your code stays portable.
Quick start
1. Grab your each::labs API key from the dashboard. 2. POST to https://api.eachlabs.ai/v1/prediction/ with an Authorization: Bearer header and a body of { "model": "eachlabs-llm-router", "input": { ... } }. 3. Pass z-ai/glm-5 as the model field inside input, alongside your messages array. 4. The create call returns a predictionID; poll GET /v1/prediction/{predictionID} until status is "success".
The cURL snippet above is ready to copy.
Why route through each::labs
- One API, many models. Switch from GLM 5 to any other LLM by changing one string, no SDK rotation.
- Automatic failover. Configure a backup model and the router fails over the moment Z-ai returns an error or times out.
- Unified observability. Every call lands in your each::labs traces with latency, token usage, and cost broken out per request.
- One invoice. Pay as you go in USD, at each model's published price.
Production notes
- The router is the same path each::labs uses internally, no preview gates.
- Streaming, system prompts, and tool calls are passed through to Z-ai as-is.
- Rate limits follow Z-ai's upstream limits; the router queues and retries on transient 429s automatically.
GLM 5 is a large language model from Z-ai, exposed through the eachlabs-llm-router. You target it with a single API and a single key, no Z-ai-specific SDK required.
Send a request to the eachlabs-llm-router endpoint with z-ai/glm-5 as the model input. The cURL and TypeScript snippets above show the full call.
One key, one endpoint, one bill. The router handles authentication, retries, automatic failover when Z-ai rate limits or times out, and traces every call in your each::labs dashboard.
Yes. The router supports cross provider failover, list backup models in your call config and we'll switch the moment Z-ai returns an error.
Pay as you go through your each::labs invoice. Token level usage is recorded against the provider's published price; there's no platform markup.
Yes. The router is the same path each::labs uses internally, no preview gates, no waitlists. Once your each::labs account is active, you can call GLM 5 from production immediately.