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 Flash Latest

~z-ai/glm-flash-latest
TextInput: text · image · videoToolsReasoning1MAdded Aug 27, 2026

Try Z.ai: GLM Flash Latest now

Runs on your balance at the prices above. New accounts start with free usage.

One API. Every model.

5 of 5 free messages left today. A free account adds free usage and an API key.Create free accountSign in

Session cost $0.00

Z.ai: GLM Flash Latest at a glance

  • Input price is 99% lower than the median of 434 Text models.
  • Context window of 1,048,576 tokens, enough for long documents and multi-turn conversations.
  • Supports tool (function) calling for agents and integrations.
  • Supports structured JSON output with a schema.
  • Supports reasoning effort control.
  • Accepts images as input (vision).
  • A typical request (1,000 input / 500 output tokens) costs about $0.000366.

About Z.ai: GLM Flash Latest

GLM Flash Latest is a text generation model from Z.ai, published under the model id ~z-ai/glm-flash-latest. The name reflects how the endpoint behaves: it always redirects to the latest model in the GLM Flash family, so a request made today and a request made later may be served by different underlying versions as Z.ai updates the family. If you want the newest GLM Flash behaviour without tracking version numbers yourself, this alias is the intended way to get it.

The model accepts text, images and video as input, and it produces text as output. Its context window is 1,048,576 tokens, with a maximum output of 943,718 tokens. That combination of a very large input window and a very large output allowance means you can send long documents, transcripts or media alongside your instructions and still leave substantial room for the model's reply. Because images and video are accepted on the input side, prompts can mix written material with visual material in a single request.

Those capabilities point to a fairly specific set of uses. Long-context work is the obvious fit: summarising or extracting structured information from lengthy reports, codebases, logs or book collections that would not fit in a smaller window. The multimodal input supports tasks such as describing or reasoning about images and video clips, for example turning footage or screenshots into written summaries, captions or structured notes. The large output budget also suits generation tasks where the answer itself is long, such as drafting documents or producing detailed analyses rather than short replies.

You call the model through api14's OpenAI-compatible API using the model id "~z-ai/glm-flash-latest". Because the interface follows the OpenAI chat completions shape, existing OpenAI client libraries and code generally work with only the base URL and model id changed. The model supports a broad set of request parameters: temperature, top_p, top_k, min_p, frequency_penalty, presence_penalty, repetition_penalty, max_tokens, stop, seed, logit_bias, logprobs and top_logprobs. It also supports response_format and structured_outputs for constrained output, tools, tool_choice and parallel_tool_calls for function calling, and the reasoning controls reasoning, reasoning_effort and include_reasoning.

One practical consideration is the alias behaviour: since the endpoint redirects to the latest GLM Flash model, the exact underlying model can change over time, which is convenient for staying current but less suitable if you need a frozen, reproducible version for regression testing. The model is text-only on the output side, so tasks requiring generated images, audio or other non-text output fall outside its scope. Within text generation, though, the combination of a million-token input window, multimodal input and a large output allowance covers a wide range of developer workloads.

How to call the Z.ai: GLM Flash Latest API

  1. Create an API key in your dashboard.
  2. Install the official openai SDK for your language.
  3. Set baseURL to https://api14.com/api/v1 and model to "~z-ai/glm-flash-latest".
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-flash-latest",
  "messages": [
    {
      "role": "user",
      "content": "Explain vector databases in two sentences."
    }
  ]
});
console.log(result.choices[0].message.content);

Supported parameters

frequency_penaltyinclude_reasoninglogit_biaslogprobsmax_tokensmin_pparallel_tool_callspresence_penaltyreasoningreasoning_effortrepetition_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_ktop_logprobstop_p

Specifications

Context length
1,048,576
Max output
943,718
Input
text, image, video
Output
text

Requests on api14 · last 7 days

10-1710-1810-1910-2010-2110-2210-23

Z.ai: GLM Flash Latest: frequently asked questions

How much does the Z.ai: GLM Flash Latest API cost?
Z.ai: GLM Flash Latest costs Input $0.02 / 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 Flash Latest?
Z.ai: GLM Flash Latest reads up to 1,048,576 tokens per request: prompt, history and documents together. It writes up to 943,718 output tokens per response.
What can Z.ai: GLM Flash Latest do?
Z.ai: GLM Flash Latest accepts text, image, video and returns text. It supports tool calling, structured JSON output, reasoning effort control.
How do I call Z.ai: GLM Flash Latest from my code?
Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "~z-ai/glm-flash-latest". No other code changes. Copy a ready example from the code panel on this page.
What are alternatives to Z.ai: GLM Flash Latest?
Comparable Text models at a similar price: Z.ai: GLM 5.3 Flash, DeepSeek: DeepSeek V4 Flash Latest, DeepSeek: DeepSeek V4.1 Flash (batch). Each runs through the same API key, so switching is one string.

Z.ai: GLM Flash Latest community

New topic

This community has no topics yet. Open the first one about Z.ai: GLM Flash Latest.