Back to approved models
Z.AIactiverelay/request.mjsready to route CONTEXT200K contextprompt window MAX OUTPUT64Kper response INPUT$1.40 / Mtoken price OUTPUT$4.40 / Mtoken price
Approved model profile_
GLM 5.1
GLM 5.1 advances Z.AI’s coding and long-horizon task capabilities, with a focus on sustained autonomous work over extended engineering tasks. It is designed for planning, executing, and refining complex projects while maintaining reliable reasoning across long interactions.
glm-5.1const completion = await client.chat.completions.create({
model: "glm-5.1",
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-5.1Use this in every requestPROVIDER AVAILABILITY2 routes
| Provider | Context | Max output | Discount | Input / M | Output / M |
|---|---|---|---|---|---|
| Alibaba | 200K context | 64K | — | $1.40 / M | $4.40 / M |
| Z.AI | 200K context | 64K | — | $1.40 / M | $4.40 / M |
SUPPORTED SURFACESactive
input: textoutput: texttool usecache control
Relay governs model access with the same routing policy that Lens keeps visible and auditable.
