Open-weights chat model from Z.AI. One API key reaches this provider and every other model in the catalog.
Up to 1 million free tokens. No card required.
About zai-org/GLM-5.2-W4AFP8
zai-org/GLM-5.2-W4AFP8 is an open-weights chat model published by Z.AI, with a 1,048,576-token context window. Through TrustedRouter it runs on 1 provider, with options in the US, from $1.11 per million input tokens. One provider offers zero data retention, and Chutes also runs it in a confidential enclave.
- Model ID
z-ai/glm-5.2-w4afp8- Publisher
- Z.AI
- Modes
- chat
- Billing
- Credits
Set it up with your agent
Paste this into Claude Code, Cursor or any coding agent.
Use zai-org/GLM-5.2-W4AFP8 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.2-w4afp8.
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.2-w4afp8",
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.2-w4afp8",
"messages": [{"role": "user", "content": "What is the capital of France?"}]
}'
Providers
Open the row for retention, location and weight format, or see how we check privacy claims and the live speed leaderboard.
| Provider | Input | Cached | Output | Cost per 1M in + out | Details |
|---|---|---|---|---|---|
|
|
$1.11 | $0.111 | $3.53 | $4.64 | |
|
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. 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. Weight format Unknown Price and speed Input $1.10775/1M · Cached input $0.110775/1M · Output $3.53425/1M TTFT: insufficient data Speed: insufficient data |
|||||
Questions
What model ID should I use for zai-org/GLM-5.2-W4AFP8?
Use z-ai/glm-5.2-w4afp8 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 zai-org/GLM-5.2-W4AFP8?
TrustedRouter currently lists Chutes for zai-org/GLM-5.2-W4AFP8. Provider availability and routing eligibility can change as catalog and health data update.
How much does zai-org/GLM-5.2-W4AFP8 cost through TrustedRouter?
The current lowest Credits input price is $1.10775/1M and the lowest Credits output price is $3.53425/1M. Prices are per one million tokens and come from the current route catalog.
How do I require zero data retention for zai-org/GLM-5.2-W4AFP8?
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.
zai-org/GLM-5.2-W4AFP8 vs other models
Start building with zai-org/GLM-5.2-W4AFP8.
Up to 1 million free tokens. No card required.
