We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.
Z.ai: GLM 5 Turbo
z-ai/glm-5-turboTry Z.ai: GLM 5 Turbo now
Runs on your balance at the prices above. New accounts start with free usage.
One API. Every model.
Session cost $0.00
Settings
Advanced parameters
Z.ai: GLM 5 Turbo at a glance
- Input price is 167% higher than the median of 434 Text models.
- Context window of 202,752 tokens, enough for long documents and multi-turn conversations.
- Supports tool (function) calling for agents and integrations.
- Supports reasoning effort control.
- A typical request (1,000 input / 500 output tokens) costs about $0.01.
About Z.ai: GLM 5 Turbo
Z.ai: GLM 5 Turbo is a text model from Z.ai, the provider behind the GLM family. It is positioned as a fast-inference model built for agent-driven environments, including OpenClaw style scenarios, and Z.ai describes it as deeply optimized for real-world agent workflows. It sits in the text category, so it is aimed at language tasks rather than image, audio or video work.
The model takes text in and returns text out. It has a context window of 202,752 tokens and can produce up to 131,072 tokens in a single response, which makes it suitable for long inputs and long outputs in the same request. Alongside ordinary text generation, it supports reasoning output and tool use, so it can be driven as the decision-making component of an agent loop rather than only as a chat model.
Those capabilities point to a fairly specific set of uses. Agent workflows are the clearest fit: tool calling, multi-step task execution and orchestration where the model has to decide which function to invoke and then work with the result. The large context window also suits long document analysis, summarization of extended material, and code or configuration work where the whole file or repository section needs to be in view. Because reasoning can be surfaced, it works for problems where you want the model's intermediate thinking exposed, and the response format parameter allows structured output for downstream parsing.
You call it through api14's OpenAI-compatible API using the model id "z-ai/glm-5-turbo". The supported request parameters are include_reasoning, max_tokens, reasoning, response_format, temperature, tool_choice, tools, top_k and top_p. Tool use is configured through tools and tool_choice, structured output through response_format, and sampling behaviour through temperature, top_k and top_p. Output length is bounded by max_tokens, and reasoning behaviour is controlled with reasoning and include_reasoning.
Since the model accepts only text input, tasks that need image or audio understanding will require a different model. If your workload is simple single-turn generation with no tools and no need for long context, the extra agent-oriented capabilities here may be more than you need, and a smaller text model could be the simpler choice.
How to call the Z.ai: GLM 5 Turbo API
- Create an API key in your dashboard.
- Install the official openai SDK for your language.
- Set baseURL to https://api14.com/api/v1 and model to "z-ai/glm-5-turbo".
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api14.com/api/v1",
apiKey: process.env.API14_API_KEY,
});
const result = await client.chat.completions.create({
"model": "z-ai/glm-5-turbo",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
});
console.log(result.choices[0].message.content);
Supported parameters
include_reasoningmax_tokensreasoningresponse_formattemperaturetool_choicetoolstop_ktop_pSpecifications
- Context length
- 202,752
- Max output
- 131,072
- Input
- text
- Output
- text
Requests on api14 · last 7 days
Z.ai: GLM 5 Turbo: frequently asked questions
- How much does the Z.ai: GLM 5 Turbo API cost?
- Z.ai: GLM 5 Turbo costs Input $4.20 / 1M tokens. It is charged from your USD balance only for successful requests; failed requests are free.
- What is the context window of Z.ai: GLM 5 Turbo?
- Z.ai: GLM 5 Turbo reads up to 202,752 tokens per request: prompt, history and documents together. It writes up to 131,072 output tokens per response.
- What can Z.ai: GLM 5 Turbo do?
- Z.ai: GLM 5 Turbo accepts text and returns text. It supports tool calling, reasoning effort control.
- How do I call Z.ai: GLM 5 Turbo from my code?
- Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "z-ai/glm-5-turbo". No other code changes. Copy a ready example from the code panel on this page.
- What are alternatives to Z.ai: GLM 5 Turbo?
- Comparable Text models at a similar price: Z.ai: GLM 5V Turbo, Google: Gemini 3.5 Flash (batch), OpenAI: GPT Mini Latest. Each runs through the same API key, so switching is one string.
Z.ai: GLM 5 Turbo community
New topicThis community has no topics yet. Open the first one about Z.ai: GLM 5 Turbo.