Find a model

Browse the full catalog →

GLM 5.1

Open-weights chat model from Z.AI. One API key reaches all 13 providers, with automatic failover.

Input / 1M$0.95
Output / 1M$3.06
Context203K
Providers 13 providers, one key

No card required. Start with 1 million free tokens.

Overview

About GLM 5.1

GLM 5.1 is an open-weights chat model published by Z.AI, with a 202,752-token context window. It scores 112 on AI IQ, ranked #67. Through TrustedRouter it runs on 13 providers, with options in the US and EU, from $0.95 per million input tokens. Three providers offer zero data retention, and Chutes also runs it in a confidential enclave.

Model ID
z-ai/glm-5.1
Publisher
Z.AI
Modes
chat
Billing
Credits or your own provider key
Quickstart

Set it up with your agent

Paste this into Claude Code, Cursor or any coding agent.

Use GLM 5.1 through TrustedRouter in this project.

1. Read https://trustedrouter.com/llms.txt
2. Point the OpenAI-compatible client at
   https://api.trustedrouter.com/v1 and read the key from
   TRUSTEDROUTER_API_KEY.
3. Set the model to z-ai/glm-5.1.
4. Run the tests, then show me the diff before committing.
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.trustedrouter.com/v1",
    api_key=os.environ["TRUSTEDROUTER_API_KEY"],
)
response = client.chat.completions.create(
    model="z-ai/glm-5.1",
    messages=[{"role": "user", "content": "What is the capital of France?"}],
)
print(response.choices[0].message.content)
curl https://api.trustedrouter.com/v1/chat/completions \
  -H "Authorization: Bearer $TRUSTEDROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "z-ai/glm-5.1",
    "messages": [{"role": "user", "content": "What is the capital of France?"}]
  }'
Your agent will need an API key.
13 providers

Providers

Your key goes to the cheapest healthy provider and fails over on its own. Open a row for retention, location and weight format, or see how we check privacy claims and the live speed leaderboard.

GLM 5.1 providers and prices per 1M tokens
Provider Input Cached Output Cost per 1M in + out Details
Chutes logo Chutes Cheapest ConfidentialZero retention $0.950 $0.0950 $3.06 $4.01

Retention

Confidential compute with end-to-end encryption and zero data retention.

TrustedRouter encrypts each request to an attested Chutes workload and verifies Intel TDX plus NVIDIA GPU attestation inside the TrustedRouter enclave before sending content. Verification fails closed. Chutes also documents no prompt/output storage or training.

Provider policy source

Location

Operator country: US

Headquarters / registered office: Not verified.

Inference: Inference location not verified; no country-specific residency commitment.

No inference-location declaration has been verified for this provider.

Region pinning through TR: No verified provider-specific location pin documented here.

Full location evidence

Weight format

FP8. Published serving configuration, reviewed 2026-09-27. Per-request precision is not verified.

Pinned weight configuration declares FP8 quantization; excluded modules can retain higher precision.

KV cache: unspecified.

Published chute serving code (mutable; hash recorded)

Pinned weight configuration

Price and speed

Input $0.9495/1M · Cached input $0.09495/1M · Output $3.0595/1M

TTFT: insufficient data

Speed: insufficient data

Last sample:

Chutes provider page

SiliconFlow logo SiliconFlow $1.26 $0.633 $3.95 $5.20

Retention

Verification: privacy unknown.

No provider-ZDR claim is tracked here. SiliconFlow's privacy policy source is linked for retention and interaction-data terms.

Provider policy source

Location

Operator country: SG

Headquarters / registered office: Singapore (international API operator).

Company location source (reviewed 2026-09-27).

Inference: Inference countries unconfirmed; no verified country-specific residency commitment.

TrustedRouter uses api.siliconflow.com. Neither its hostname nor the provider's Singapore legal jurisdiction establishes the DeepSeek V4.1 Flash GPU location. No exhaustive route-specific country list verified.

Region pinning through TR: Not supported by the current TrustedRouter integration.

Reviewed 2026-09-26.

API documentation

Privacy policy (not a GPU-location declaration)

Full location evidence

Weight format

Unknown

Price and speed

Input $1.25545/1M · Cached input $0.633/1M · Output $3.9457/1M

TTFT: insufficient data

Speed: insufficient data

SiliconFlow provider page

Atlas Cloud logo Atlas Cloud $1.33 $0.247 $4.18 $5.51

Retention

Verification: privacy unknown.

Atlas Cloud publishes a platform zero-retention policy, while its aggregated model routes can involve downstream providers. TrustedRouter keeps the public route tier conservative pending downstream-path contractual verification.

Provider policy source

Location

Operator country: US

Headquarters / registered office: Not verified.

Inference: Inference location not verified; no country-specific residency commitment.

No inference-location declaration has been verified for this provider.

Region pinning through TR: No verified provider-specific location pin documented here.

Full location evidence

Weight format

Unknown

Price and speed

Input $1.3293/1M · Cached input $0.24687/1M · Output $4.1778/1M

TTFT: insufficient data

Speed: insufficient data

Atlas Cloud provider page

Phala logo Phala $1.28 $0.633 $4.43 $5.71

Retention

Verification: no verified privacy claim.

Phala currently serves this model through an upstream-author pass-through route, not a phala/* Confidential AI endpoint. TrustedRouter therefore makes no ZDR, confidential-compute, or E2EE claim for this exact route.

Provider policy source

Location

Operator country: Not verified

Headquarters / registered office: Not verified.

Inference: Inference location not verified; no country-specific residency commitment.

No inference-location declaration has been verified for this provider.

Region pinning through TR: No verified provider-specific location pin documented here.

Full location evidence

Weight format

Unknown

Price and speed

Input $1.27655/1M · Cached input $0.633/1M · Output $4.431/1M

TTFT: insufficient data

Speed: insufficient data

Last sample:

Phala provider page

IO Intelligence logo IO Intelligence $1.42 $0.709 $4.46 $5.88

Retention

Verification: privacy unknown.

In its September 28, 2026 marketplace submission, io.net states that inference prompts and completions are processed only in memory, are not stored or logged, and are not used for training. Content-free operational metadata is retained for billing, capacity planning and abuse prevention. This is a provider declaration: the reviewed public privacy policy does not establish inference-specific zero-retention terms, and the applicable DPA has not been reviewed. Routes remain Standard pending that evidence. Confidential compute is offered on request, but this integration has no verified confidential-compute or provider-side E2EE guarantee.

Provider policy source

Location

Operator country: US

Headquarters / registered office: West Hollywood, California, United States (operating address).

Company location source (reviewed 2026-09-28).

Inference: United States and Canada, provider-declared; no US-only or fixed-country guarantee on this route.

io.net declares US and Canadian serving locations and data residency in its September 28, 2026 marketplace submission. This is provider-wide information, not an independently verified per-model or per-request location.

Region pinning through TR: Not supported by the current TrustedRouter integration.

Reviewed 2026-09-28.

API documentation (not a location guarantee)

Privacy policy (operator identity, not GPU residency)

Full location evidence

Weight format

Unknown

Price and speed

Input $1.418216/1M · Cached input $0.709108/1M · Output $4.457249/1M

TTFT: insufficient data

Speed: insufficient data

IO Intelligence provider page

Featherless AI logo Featherless AI Zero retention $1.37 — $4.54 $5.91

Retention

Zero data retention.

Featherless's published privacy policy states that prompts and completions are neither collected nor stored. Account, payment and usage metadata, including token counts and sampler settings, may be retained. This is policy-backed ZDR, not verified confidential compute or E2EE.

Provider policy source

Location

Operator country: US

Headquarters / registered office: Not verified.

Inference: Inference location not verified; no country-specific residency commitment.

No inference-location declaration has been verified for this provider.

Region pinning through TR: No verified provider-specific location pin documented here.

Full location evidence

Weight format

Unknown

Price and speed

Input $1.3715/1M · Cached input Not published · Output $4.5365/1M

TTFT: insufficient data

Speed: insufficient data

Featherless AI provider page

Novita AI logo Novita AI $1.46 $0.274 $4.64 $6.10

Retention

Verification: privacy unknown.

No provider-ZDR claim is tracked here. Novita's privacy policy says personal information is not used for model training; customer-content processing is governed by customer agreements.

Provider policy source

Location

Operator country: US

Headquarters / registered office: San Francisco, California, United States.

Company location source (reviewed 2026-09-27).

Inference: Shared inference API; processing countries unconfirmed, no fixed-region commitment.

No exhaustive inference-country list verified for the shared model API. Novita publishes worldwide GPU rental regions, but that separate product does not establish shared serverless model placement.

Region pinning through TR: Not supported by the current TrustedRouter integration.

Reviewed 2026-10-28.

GPU rental regions (different product)

Native model catalog

Full location evidence

Weight format

Unknown

Price and speed

Input $1.4559/1M · Cached input $0.2743/1M · Output $4.642/1M

TTFT: insufficient data

Speed: insufficient data

Last sample:

Novita AI provider page

Alibaba Cloud Model Studio logo Alibaba Cloud Model Studio $1.48 $0.274 $4.64 $6.12

Retention

Verification: privacy unknown.

No provider-ZDR claim is tracked here. Alibaba Cloud Model Studio model availability and pricing are linked for users who need to review API data handling and regional deployment scope.

Provider policy source

Location

Operator country: CN

Headquarters / registered office: Not verified.

Inference: Inference location not verified; no country-specific residency commitment.

No inference-location declaration has been verified for this provider.

Region pinning through TR: No verified provider-specific location pin documented here.

Full location evidence

Weight format

Unknown

Price and speed

Input $1.477/1M · Cached input $0.2743/1M · Output $4.642/1M

TTFT: 1.18 s

Speed: insufficient data

Last sample:

Alibaba Cloud Model Studio provider page

FriendliAI logo FriendliAI $1.48 $0.274 $4.64 $6.12

Retention

Verification: privacy unknown.

No provider-ZDR claim is tracked here. Friendli's legal/privacy terms are linked for users who need to review API data handling.

Provider policy source

Location

Operator country: US

Headquarters / registered office: Not verified.

Inference: Inference location not verified; no country-specific residency commitment.

No inference-location declaration has been verified for this provider.

Region pinning through TR: No verified provider-specific location pin documented here.

Full location evidence

Weight format

Unknown

Price and speed

Input $1.477/1M · Cached input $0.2743/1M · Output $4.642/1M

TTFT: 0.90 s

Speed: insufficient data

Last sample:

FriendliAI provider page

GMI Cloud logo GMI Cloud $1.48 $0.274 $4.64 $6.12

Retention

Verification: privacy unknown.

GMI runs isolated/VPC GPU inference, but that is network isolation, NOT an attested TEE — so no confidential-compute, zero-retention, or E2EE claim is marked. Retention/training terms are unverified (the published policy page is JavaScript-only and would not render).

Provider policy source

Location

Operator country: US

Headquarters / registered office: Not verified.

Inference: Inference location not verified; no country-specific residency commitment.

No inference-location declaration has been verified for this provider.

Region pinning through TR: No verified provider-specific location pin documented here.

Full location evidence

Weight format

Unknown

Price and speed

Input $1.477/1M · Cached input $0.2743/1M · Output $4.642/1M

TTFT: 2.10 s

Speed: insufficient data

Last sample:

GMI Cloud provider page

StreamLake logo StreamLake $1.48 $0.274 $4.64 $6.12

Retention

Verification: privacy unknown.

No provider-ZDR claim is tracked. StreamLake's public privacy policy is linked for API data-handling review.

Provider policy source

Location

Operator country: SG

Headquarters / registered office: Not verified.

Inference: Inference location not verified; no country-specific residency commitment.

No inference-location declaration has been verified for this provider.

Region pinning through TR: No verified provider-specific location pin documented here.

Full location evidence

Weight format

Unknown

Price and speed

Input $1.477/1M · Cached input $0.2743/1M · Output $4.642/1M

TTFT: insufficient data

Speed: insufficient data

StreamLake provider page

Z.AI logo Z.AI $1.48 $0.274 $4.64 $6.12

Retention

Verification: privacy unknown.

No provider-ZDR claim is tracked here. Z.AI/BigModel policy source is linked for users who need to review API retention and processing terms.

Provider policy source

Location

Operator country: SG

Headquarters / registered office: Not verified.

Inference: Inference location not verified; no country-specific residency commitment.

No inference-location declaration has been verified for this provider.

Region pinning through TR: No verified provider-specific location pin documented here.

Full location evidence

Weight format

Unknown

Price and speed

Input $1.477/1M · Cached input $0.2743/1M · Output $4.642/1M

TTFT: 1.31 s

Speed: insufficient data

Last sample:

Z.AI provider page

Venice logo Venice Zero retention $1.62 $0.302 $5.11 $6.73

Retention

Zero data retention.

Verification: provider E2EE not verified.

Venice's live model catalog marks this exact route private. Venice describes Private as contract-enforced zero data retention. This is policy-backed, not hardware-verified. TrustedRouter cannot verify a complete chain from the live endpoint to immutable source and model weights, so the route is not tracked as TEE or E2EE and is excluded from trustedrouter/e2e.

Provider policy source

Location

Operator country: US

Headquarters / registered office: Not verified.

Inference: Inference location not verified; no country-specific residency commitment.

No inference-location declaration has been verified for this provider.

Region pinning through TR: No verified provider-specific location pin documented here.

Full location evidence

Weight format

Unknown

Price and speed

Input $1.6247/1M · Cached input $0.30173/1M · Output $5.1062/1M

TTFT: insufficient data

Speed: insufficient data

Venice provider page

Append :nitro to the model ID, or send "provider": {"sort": "throughput"}, to route to the fastest provider instead.

FAQ

Questions

What model ID should I use for GLM 5.1?

Use z-ai/glm-5.1 as the model field with the TrustedRouter OpenAI-compatible API. Credits routing and provider fallback happen behind that model ID.

Do you log my prompts or outputs?

No. Prompt and output content are intentionally excluded from the control plane and metadata systems. Optional content export requires explicit destination-level configuration.

Which providers serve GLM 5.1?

TrustedRouter currently lists Chutes, Venice, Featherless AI, Z.AI, FriendliAI, SiliconFlow, Phala, Alibaba Cloud Model Studio, StreamLake, IO Intelligence, GMI Cloud, Atlas Cloud, and Novita AI for GLM 5.1. Provider availability and routing eligibility can change as catalog and health data update.

How much does GLM 5.1 cost through TrustedRouter?

The current lowest Credits input price is $0.9495/1M and the lowest Credits output price is $3.0595/1M. Prices are per one million tokens and come from the current route catalog.

How do I require zero data retention for GLM 5.1?

Set provider.min_privacy to zdr on the request. TrustedRouter considers only routes with a recorded zero-data-retention posture and fails closed if no eligible route remains.

Compare

GLM 5.1 vs other models

Start building with GLM 5.1.

No card required. Start with 1 million free tokens.

Workspace access

Sign in

Choose a sign in method to access your TrustedRouter workspace.

New to TrustedRouter?

By continuing you agree to the terms of service and privacy policy.