OpenAI compatible API · Attested · Public status

GLM-5 & GLM-5.2 API — Private, Attested Inference

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.

Verify gateway
Onebase URL to migrate
100sof models and routes
0prompt or output logs. Always.
GLM-5 & GLM-5.2 API

Run GLM-5 and GLM-5.2 on attested hardware without sending your prompts to 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.

Every GLM route here is served by non-Chinese hosting providers on attested infrastructure. 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 220+ model routes across 30+ 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 220+ routes
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 serversPrompts do not go to 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

Current routes, prices, privacy, and measured performance.

Catalog facts come from the routes currently configured in TrustedRouter. Performance uses the same cached metadata snapshot as the public leaderboard. Prompts and outputs are not part of these measurements.

558public models
92providers
1730configured routes
279ZDR routes
46provider E2EE routes
4174recent availability samples
Model Providers Context Input Output Privacy Measured route
GLM 5.2 Fast on Fireworksz-ai/glm-5.2-fast
4 routes
1,048,576 $2.2155/1M $6.963/1M ZDR measured fireworks · 90 tok/s · 100.00% available · n=233
Z.ai: GLM 5.2z-ai/glm-5.2
+27
48 routes
1,048,576 $0.7174/1M to $2.317369/1M $1.5825/1M to $7.080849/1M E2EE 4 cited scores 3369 ms TTFT tinfoil · 100.00% available · n=103
Z.ai: GLM 5.3z-ai/glm-5.3
+19
36 routes
1,048,576 $1.0339/1M to $5.1273/1M $3.2494/1M to $12.81825/1M E2EE 2707 ms TTFT zero-g · 66 tok/s · 100.00% available · n=100
Z.ai: GLM 5.3 Flashz-ai/glm-5.3-flash
+17
34 routes
1,048,576 $0.07385/1M to $0.422/1M $0.2532/1M to $1.31875/1M E2EE 1694 ms TTFT tinfoil · 100.00% available · n=67
Z.ai: GLM 5.1z-ai/glm-5.1
+11
25 routes
200,000 $1.0339/1M to $1.6247/1M $3.2494/1M to $5.1062/1M E2EE 5 cited scores 2955 ms TTFT gmi · 100.00% available · n=34
Z.ai: GLM 5z-ai/glm-5
+3
12 routes
198,000 $0.9073/1M to $1.055/1M $2.69025/1M to $3.376/1M ZDR 5 cited scores 3095 ms TTFT gmi · 100.00% available · n=16
Fireworks AIPolicy varies 18 models 1263 ms p50 · n=256
BasetenZDR 16 models 1633 ms p50 · n=490
Z.AIPolicy varies 14 models 1994 ms p50 · n=33
DeepInfraPolicy varies 98 models 1117 ms p50 · n=70
FriendliAIPolicy varies 7 models 1094 ms p50 · n=34
GMI CloudPolicy varies 72 models 3080 ms p50 · n=37
Novita AIPolicy varies 117 models 2340 ms p50 · n=30
ParasailZDR 26 models 1717 ms p50 · n=21

Browse every modelReview provider policiesOpen the full leaderboardSnapshot 2026-09-07T09:15:49.902Z

Questions

Which GLM models can I call on TrustedRouter?

TrustedRouter serves glm-5, glm-5.2, and glm-5.2-fast, alongside 220+ model routes across 30+ 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?

No. GLM routes on TrustedRouter are served by non-Chinese hosting providers on attested infrastructure, so prompts do not go to the model vendor. 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.

Workspace access

Sign in

Choose a sign in method to access your TrustedRouter workspace.

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