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

Feito para velocidade: ~10 ms de latência, mesmo sob carga
Uma forma incrivelmente rápida de criar, acompanhar e implantar seus modelos!
- Processa mais de 350 RPS com apenas 1 vCPU — sem necessidade de ajustes
- Pronto para produção com suporte empresarial completo
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-METADATAheader 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
- Introduction to Auto Routing (https://www.truefoundry.com/blog/introducing-auto-routing-on-the-truefoundry-ai-gateway)
- LLM Router (https://www.truefoundry.com/blog/llm-router)
- What is an LLM Gateway? (https://www.truefoundry.com/blog/llm-gateway)
O TrueFoundry AI Gateway oferece latência de ~3–4 ms, processa mais de 350 RPS em 1 vCPU, escala horizontalmente com facilidade e está pronto para produção, enquanto o LiteLLM sofre com alta latência, tem dificuldades acima de um RPS moderado, não possui escalonamento integrado e é mais indicado para cargas de trabalho leves ou protótipos.













.png)



.png)


.png)














