---
title: "GLM-5.4"
id: "glm-5.4"
lab: "Z.AI"
canonical: https://www.requesty.ai/model/zai/glm-5.4
generated: 2026-12-02T19:56:52.189Z
---

# GLM-5.4 (glm-5.4)

> GLM 5.4 by Z.ai is an open weights model served by Mistral on EU infrastructure with no Mistral modifications, the first built on Z.ai's Loop Transformer architecture. 1M token context window, 128K max output. Takes text and images. Supports reasoning, function calling, structured outputs, predicted outputs and prefix. Built for long context coding and agentic workflows.

## Facts

- **Lab:** Z.AI
- **Weights:** open ([zai-org/GLM-5.4](https://huggingface.co/zai-org/GLM-5.4))
- **Context window:** 1M tokens
- **Max output:** 128K tokens
- **Listed:** December 2026
- **Capabilities:** vision, reasoning, tool calling, prompt caching, structured outputs
- **Providers on Requesty:** 2
- **Cheapest endpoint:** $1.40 per 1M input tokens, $4.40 per 1M output tokens on Z.ai
- **Success rate, last 7 days:** 100.00%

## Which id to call

- Any endpoint id from the table below: one specific deployment, no fallback.

## Base URLs

Same key on every gateway. OpenAI-compatible clients take the /v1 URL; the Anthropic SDK and Claude Code take the host.

- Global: https://router.requesty.ai/v1, or https://router.requesty.ai for the Anthropic SDK. Lands on the gateway nearest the caller.
- EU: https://router.eu.requesty.ai/v1, or https://router.eu.requesty.ai for the Anthropic SDK. Frankfurt, AWS eu-central-1.
- US: https://router.us.requesty.ai/v1, or https://router.us.requesty.ai for the Anthropic SDK. United States.
- AP: https://router.ap.requesty.ai/v1, or https://router.ap.requesty.ai for the Anthropic SDK. Asia Pacific.

## Endpoints

List prices are upstream provider rates per 1M tokens, net of any promotion. Requesty adds 5%, including on your own provider keys.

| Endpoint id | Provider | Region | Data | Context | Max output | Input | Output | Cache read | Cache write | Weights |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| `zai/glm-5.4` | Z.ai | Singapore | zero retention | 1M | 128K | $1.40 | $4.40 | $0.26 | - | FP8 |
| `mistral/glm-5-4` | Mistral AI | EU | zero retention | 1M | 128K | $1.54 | $4.84 | $0.154 | - | FP8 |

## Measured on Requesty traffic, last 7 days

Effective price is spend divided by all tokens, input and output, cache hits included. Latency is streaming requests only. A dash is a figure nobody published, not a zero.

| Provider | Share of traffic | Effective $/1M | Cache hit rate | Median TTFT | p95 TTFT | Tokens/s | Success | 5xx | 4xx |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Z.ai | 100.0% | - | - | - | - | - | 100.00% | 0.0% | 0.0% |

Full dataset: [https://www.requesty.ai/rankings/data.md](https://www.requesty.ai/rankings/data.md)

## Quickstart

```python
import os
from openai import OpenAI

client = OpenAI(base_url="https://router.requesty.ai/v1", api_key=os.environ["REQUESTY_API_KEY"])
response = client.chat.completions.create(
    model="zai/glm-5.4",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)
```

The Anthropic SDK works too: set base_url to "https://router.requesty.ai" and send the same model id.

## Questions

### Which providers serve GLM-5.4?

Requesty lists 2 providers for GLM-5.4: Z.ai, Mistral AI. The pricing table links to each deployment; you can call any of these endpoints with a Requesty key.

### How much does GLM-5.4 cost?

The lowest listed input rate is $1.40 per million input tokens on Z.ai. That endpoint charges $4.40 per million output tokens. Rates vary by provider, prompt size and region. Pay as you go includes a 5% Requesty fee, including when you bring your own provider keys.

### Why can effective price differ from list price?

The list quotes each token type separately. Effective price blends what traffic on Requesty paid for input, output and cache usage into a single dollar amount per million tokens. Workloads with different cache hit rates or more output can have a different effective price.

### Is GLM-5.4 open weights?

Yes. GLM-5.4 is an open-weights model from Z.AI. The endpoints can differ in price, speed and data retention.

### What is the context window of GLM-5.4?

The catalog lists up to 1M context tokens and up to 128K output tokens. Limits vary by endpoint.

### How do I use GLM-5.4 with the OpenAI SDK?

Set the SDK base URL to "https://router.requesty.ai/v1", pass your Requesty API key, and use "zai/glm-5.4" or the ID of a specific endpoint. The quickstart includes Python, JavaScript and cURL examples.

Page: https://www.requesty.ai/model/zai/glm-5.4
