Blank white background with no objects or features visible.

Olá, EMEA! A TrueFoundry está expandindo sua presença pela Europa, Oriente Médio e África. Leia mais. →

Z.ai's GLM-5.4 Is Now Live on TrueFoundry AI Gateway

Updated: dezembro 3, 2026

Published: dezembro 3, 2026

Z.ai's GLM-5.4 Is Now Live on TrueFoundry AI Gateway

Z.ai's GLM-5.4 is now in the TrueFoundry AI Gateway model catalog, with pricing filled in. Z.ai introduced it in a post titled GLM-5.4: Toward Generalized Coding with Our First Loop Transformer, and it is the next model in the GLM-5 line after GLM-5.3.

You call it through the same OpenAI-compatible endpoint you already use. There is no new SDK to install. Change the model string to glm-5.4 and your existing budgets, rate limits, guardrails and logs apply to it.

Provider paths: GLM-5.4 is available today through OpenRouter. If OpenRouter is already a provider on your gateway, you only need to select the model. If it is not, add OpenRouter as a provider with your own OpenRouter API key first, then select the model. The steps are below.

Try GLM-5.4 on the TrueFoundry AI Gateway →

What Z.ai shipped

Z.ai frames GLM-5.4 around two things: a change to the model's architecture, and broader coding ability. The details that matter for teams on the gateway:

  • A new architecture: Z.ai calls GLM-5.4 its first Loop Transformer. That is a change to the model design itself. By Z.ai's account, GLM-5.3 kept GLM-5.2's base model and got its gains from post-training alone.
  • Coding as the focus: the release is aimed at what Z.ai calls generalized coding. It continues the direction of the GLM-5 line, which Z.ai built for systems engineering and long-running agent work.
  • One model string: glm-5.4, served through your OpenRouter provider account. Its price shows inline when you select it, from the same open-source catalog that cost tracking uses.

Where it fits in a routing setup

Most teams already spread coding and agent traffic across more than one model. A new architecture is a good reason to test GLM-5.4 on your own prompts before you move traffic to it. Run it next to your current coding model on the same requests and compare responses, latency and cost per request in the gateway's logs and metrics.

Because both models sit behind one endpoint, that comparison needs no extra integration and no second set of credentials in your application. When you are ready, the gateway lets you send a share of coding work to GLM-5.4 and keep your current model as the fallback, all from one model name. See the TrueFoundry AI Gateway for how routing, budgets and fallbacks fit together.

How to turn it on

Step 1: Enable the model. GLM-5.4 is in the catalog through the OpenRouter provider path.

  • If you already have an OpenRouter provider account on the gateway: go to Models, open that account, open Models Selection, tick glm-5.4 (pricing shows inline), then set who can use it in Access Control.
  • If you don't: first add OpenRouter as a provider with your own OpenRouter API key (Models → Add Model → To New Provider Account → OpenRouter), then select glm-5.4 as above. The OpenRouter setup guide walks through it.

Step 2: Call it from your code or the Playground.

from openai import OpenAI

client = OpenAI(
    api_key="your-truefoundry-api-key",
    base_url="https://gateway.truefoundry.ai",
)

response = client.chat.completions.create(
    model="openrouter-main/glm-5.4",
    messages=[{"role": "user", "content": "Summarise this diff and list the risky changes."}],
    extra_headers={"X-TFY-METADATA": '{"team": "platform", "use_case": "code-review"}'},
)
print(response.choices[0].message.content)

The model name is namespaced by your provider account: replace openrouter-main with the name you gave your OpenRouter account.

Step 3 (optional): Put it behind a virtual model. Create a virtual model and turn on Auto Routing: keep your current model for general requests, send coding and agent requests to GLM-5.4, and fall back to your current coding model if a request fails. Your application calls one model name throughout.

Before you move production traffic

  • Test on your own workload. GLM-5.4 is a new architecture, so do not assume behavior carries over from GLM-5.3 or from the model you use today. Check output format, tool calls and latency on a set of representative requests.
  • Tag traffic so you can compare. The X-TFY-METADATA header in the snippet above lets you split spend and latency by team or use case, which makes a side-by-side trial easy to read.
  • Pricing is public and versioned. The rates cost tracking uses are in the open-source catalog at truefoundry.com/models.
  • Budgets, rate limits and guardrails already apply. Anything you set on your provider account or team covers GLM-5.4 as soon as you enable it.

Start today

Reach for GLM-5.4 when you want to try Z.ai's new Loop Transformer design on coding and agent work, or when you want another coding model to route between. Enable it once, and call it from the same endpoint as every other model you use.

Try GLM-5.4 on the TrueFoundry AI Gateway →

Related reading

‍

Experimente agora.

Um único gateway para todos os seus modelos, servidores MCP e agentes. Sem necessidade de cartão de crédito.

Comece grátis

Um gateway para cada LLM, agente e servidor MCP

Agende uma conversa de 30 minutos com nosso especialista em IA

Agende uma demonstração

A maneira mais rápida de criar, governar e escalar sua IA

Agendar demo
Resumir com
ChatGPT logo by OpenAI
Perplexity AI logo
Blurry red snowflake on white background, symmetrical frosty design with soft edges and abstract shape.

Descubra mais

Nenhum item encontrado.
dezembro 3, 2026
|
5 min de leitura

Z.ai's GLM-5.4 Is Now Live on TrueFoundry AI Gateway

Nenhum item encontrado.
dezembro 3, 2026
|
5 min de leitura

Amazon Ergo Is Now Live on TrueFoundry AI Gateway

Nenhum item encontrado.
dezembro 3, 2026
|
5 min de leitura

Servidor MCP do Datadog: Ferramentas, Configuração e Como Conectá-lo com Segurança

Nenhum item encontrado.
dezembro 3, 2026
|
5 min de leitura

Série Agent Gateway (Parte 7 de 7) | Agent DevOps: CI/CD, Evals e Implantações Canary

Nenhum item encontrado.
Nenhum item encontrado.

Blogs recentes

Black left pointing arrow symbol on white background, directional indicator.
Black left pointing arrow symbol on white background, directional indicator.
Take a quick product tour
Start Product Tour
Product Tour