Back to approved models
Z.AIactiverelay/request.mjsready to route CONTEXT200K contextprompt window MAX OUTPUT64Kper response INPUT$1.00 / Mtoken price OUTPUT$3.20 / Mtoken price
Approved model profile_
GLM 5
GLM 5 is Z.AI’s flagship open foundation model for complex system design, backend reasoning, long-horizon agent tasks, and production-grade software workflows. It is built for expert developers who need strong planning, implementation, and iterative problem-solving capability.
glm-5const completion = await client.chat.completions.create({
model: "glm-5",
messages: [
{ role: "user",
content: "Plan a multi-step task" }
]
});Route configuration_
Choose a supported call format.
Select a format below to view its documentation. Use the displayed converter route when calling through PipeLLM.
https://api.pipellm.aiOne base URL for OpenAI Chat Completions, Responses, Anthropic, and Gemini.SUPPORTED CALL FORMATS
OpenAI/openai/v1/chat/completionsDocs Responses/responses/v1/responsesDocs Anthropic/anthropic/v1/messagesDocs Gemini/gemini/v1beta/models/{model}:generateContentDocs Choose a call format to open its request and response documentation.glm-5Use this in every requestPROVIDER AVAILABILITY1 route
| Provider | Context | Max output | Discount | Input / M | Output / M |
|---|---|---|---|---|---|
| Z.AI | 200K context | 64K | — | $1.00 / M | $3.20 / M |
SUPPORTED SURFACESactive
input: textoutput: texttool usecache control
Relay governs model access with the same routing policy that Lens keeps visible and auditable.
