Find a model

Browse the full catalog →

GLM-5 & GLM-5.2 API

Run GLM-5 and GLM-5.2 on attested hardware. With Confidential privacy, your prompts never reach the model vendor.

TrustedRouter serves glm-5, glm-5.2, and glm-5.2-fast through an OpenAI-compatible API. Change one line, the base URL, and keep your SDK, your model ids, and your code. You do not need a z.ai account.

Z.AI's own API is one of the GLM routes, alongside third-party hosts. With Confidential privacy (provider.min_privacy "confidential"), prompts never reach the model vendor: a Confidential request routes only to third-party confidential-compute hosts, and fails rather than fall back to the vendor's own API. Zero-Data-Retention and TEE tiers are available, and on TEE routes even the hosting provider cannot read your prompt. TrustedRouter never logs prompt or output content. Ordinary synchronous and streaming inference does not retain it. The opt-in Batch API temporarily retains enclave-encrypted artifacts for up to 30 days. Pay with prepaid credits, bring your own key, or pay per request with x402. Continue with MetaMask works without a traditional account.

Open the playground See GLM pricing

glm-5.2 via the OpenAI SDKPython
from openai import OpenAI

client = OpenAI(
    base_url="https://api.trustedrouter.com/v1",
    api_key=TR_KEY,
)
r = client.chat.completions.create(
    model="z-ai/glm-5.2",
    messages=[{"role": "user", "content": "Refactor this function."}],
)
print(r.choices[0].message.content)
Model routes

Three GLM routes, one API

glm-5, glm-5.2, and glm-5.2-fast are all live, alongside 600+ models across 100+ providers. When a hosting provider fails, requests roll over automatically. Kimi, DeepSeek, and Qwen run the same way; see Chinese open models served without the vendor and measured latency data from real routed requests.

Privacy tiers

ZDR and TEE on the prompt path

Pick Zero-Data-Retention routes, where providers contractually keep nothing, or TEE routes, where end-to-end confidential compute means even the provider cannot read the prompt. Details at /security.

Measured behavior

Host-applied filtering, measured

We ran 60 sensitive questions against the same GLM weights twice. The vendor-hosted API answered 30. The attested TrustedRouter route answered all 60. The filtering is applied by the serving host.

z.aiTrustedRouter
Model accessDirect, first-party endpoint from the team that builds GLMglm-5, glm-5.2, and glm-5.2-fast among 600+ models
Privacy verificationA privacy policy you take on trustLive hardware attestation, open-source gateway, published image digest
Prompt pathPrompts are processed on the model vendor's serversConfidential requests never reach the model vendor; ZDR and TEE tiers
Sensitive questions, our 60-question test30 of 60 answered60 of 60 answered, same weights
Account and paymentVendor account sign-upPrepaid credits, BYOK, or x402 crypto with MetaMask sign-in
OutagesSingle providerAutomatic rollover across providers
Verify, don't trust

Same weights, different host, different answers.

The test was simple. Sixty sensitive questions, the same GLM weights, two routes. Through the vendor-hosted API, 30 of 60 came back answered. Through TrustedRouter's enclave, 60 of 60. The gap comes from filtering applied by the serving host, so choosing where the weights run decides what you get back.

You do not have to take the enclave on faith. The prompt path runs inside a hardware-attested confidential-compute gateway. The source is open, the image digest is published, and a curl to the attestation endpoint returns a JWT signed by the CPU vendor's root key, bound to your live TLS session so it cannot be replayed. Attestation beats a privacy policy. It also holds up under load: a document-processing company scaled from zero to over a billion tokens per week through the attested gateway within three weeks of onboarding. Check the attestation yourself at /security, or start with GLM-5.2 in the playground.

Live catalog evidence

GLM routes, prices, and privacy.

Catalog facts come from the routes currently configured in TrustedRouter. The totals below cover the entire TrustedRouter catalog; the model table and related providers focus on GLM. Performance uses the same cached metadata snapshot as the public leaderboard. Prompts and outputs are not part of these measurements.

600+ modelspublic catalog
100+ providerscatalog coverage
470ZDR routes
66provider E2EE routes
9044recent availability samples
Model Providers Context Input Output Privacy Measured route
Z.ai: GLM 5.3 Flashz-ai/glm-5.3-flash
+28
47 routes
1,048,576 $0.026375/1M to $0.239297/1M $0.07385/1M to $0.9284/1M Confidential + ZDR measured wafer · 99.80% available · n=1601
Z.ai: GLM 5.3z-ai/glm-5.3
+29
49 routes
1,048,576 $0.20045/1M to $3.9879/1M $1.5825/1M to $12.81825/1M Confidential + ZDR 1011 ms TTFT nebius · 351 tok/s · 100.00% available · n=132
Z.ai: GLM 5.2z-ai/glm-5.2
+23
44 routes
1,048,576 $0.6541/1M to $2.620863/1M $1.5825/1M to $7.862588/1M Confidential + ZDR 4 cited scores 1624 ms TTFT phala · 38 tok/s · 100.00% available · n=54
Z.ai: GLM 5.4z-ai/glm-5.4
+4
13 routes
1,048,576 $1.477/1M $4.642/1M ZDR 2808 ms TTFT nebius · 100.00% available · n=46
Z.ai: GLM 5z-ai/glm-5
+2
9 routes
202,752 $0.9917/1M to $1.055/1M $2.69025/1M to $3.376/1M varies 5 cited scores 2627 ms TTFT gmi · 100.00% available · n=12
Z.ai: GLM 5.1z-ai/glm-5.1
+5
14 routes
202,752 $0.9495/1M to $1.477/1M $3.0595/1M to $4.642/1M Confidential + ZDR 5 cited scores 3061 ms TTFT gmi · 100.00% available · n=11

Provider summaries cover each provider's full catalog.

Z.AIPolicy varies 13 models 1283 ms p50 · n=18
CrusoePolicy varies 9 models 1141 ms p50 · n=31
DeepInfraPolicy varies 73 models 868 ms p50 · n=43
Fireworks AIPolicy varies 17 models 853 ms p50 · n=27
FriendliAIPolicy varies 5 models 932 ms p50 · n=28
Nebius Token FactoryZDR 22 models 3166 ms p50 · n=494
ParasailZDR 25 models 785 ms p50 · n=492
SiliconFlowPolicy varies 55 models 1357 ms p50 · n=28

Browse every modelReview provider policiesOpen the full leaderboardSnapshot 2026-12-05T21:25:28.980Z

Questions

Which GLM models can I call on TrustedRouter?

TrustedRouter serves glm-5, glm-5.2, and glm-5.2-fast, alongside 600+ models across 100+ providers. The API is OpenAI-compatible: change base_url, keep your SDK, model ids, and code. If a hosting provider goes down, requests roll over to another automatically. You can try it in the playground at /chat before wiring up a key.

Do my prompts go to Zhipu or z.ai?

They can on Standard routing, where Z.AI's own API is one of the GLM routes. With Confidential privacy (provider.min_privacy "confidential"), prompts never reach the model vendor: a Confidential request routes only to third-party confidential-compute hosts, and fails rather than fall back to the vendor's own API. Zero-Data-Retention and TEE tiers are available, and on TEE routes even the hosting provider cannot read the prompt. TrustedRouter never logs prompt or output content. Ordinary synchronous and streaming inference does not retain it. The opt-in Batch API temporarily retains enclave-encrypted artifacts for up to 30 days.

Why does GLM answer more questions through TrustedRouter than on the vendor API?

In our 60-question test, the same GLM weights answered 60 of 60 sensitive questions through TrustedRouter's attested enclave versus 30 of 60 through the vendor-hosted API. That points to host-applied filtering: the restriction lives in the serving stack, not in the open weights. TrustedRouter's GLM routes are served on attested infrastructure without that serving-layer filter, so you see the model's own behavior.

How does GLM-5.2 API pricing work?

Per-model rates for glm-5, glm-5.2, and glm-5.2-fast are published at /pricing as a thin markup over provider list prices. You can pay with prepaid credits through Stripe, bring your own provider key, or pay per request with x402 crypto payments. Continue with MetaMask lets you sign in with a wallet, with no traditional account required.

GLM-5 and GLM-5.2 on attested hardware, with ZDR and TEE tiers.

OpenAI-compatible API for GLM-5 and GLM-5.2 on attested hardware. ZDR and TEE tiers, no z.ai account needed, and privacy you can verify with one curl.

Up to 1 million free tokens. No card required.

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.