Open-weights chat model from Z.AI. One API key reaches all 5 providers, with automatic failover.
No card required. Start with 1 million free tokens.
About GLM 4.7 Flash
GLM 4.7 Flash is an open-weights chat model published by Z.AI, with a 131,072-token context window. Through TrustedRouter it runs on 5 providers, with options in the US, from $0.064 per million input tokens. Two providers offer zero data retention.
- Model ID
z-ai/glm-4.7-flash- Publisher
- Z.AI
- Modes
- chat
- Billing
- Credits
Set it up with your agent
Paste this into Claude Code, Cursor or any coding agent.
Use GLM 4.7 Flash 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-4.7-flash.
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-4.7-flash",
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-4.7-flash",
"messages": [{"role": "user", "content": "What is the capital of France?"}]
}'
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.
| Provider | Input | Cached | Output | Cost per 1M in + out | Details |
|---|---|---|---|---|---|
|
|
$0.0638 | — | $0.422 | $0.49 | |
|
Retention Verification: privacy unknown. Workers AI documents no input/output retention after ordinary stateless inference and no model training. Stateful features, customer-enabled logging/caching, and safety, security or legal exceptions may retain content. No exception-free commitment is verified for this account; these routes remain outside strict ZDR. 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 $0.063828/1M · Cached input Not published · Output $0.422/1M TTFT: insufficient data Speed: insufficient data Last sample: |
|||||
|
|
$0.0688 | $0.0344 | $0.422 | $0.49 | |
|
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. 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) Weight format Unknown Price and speed Input $0.068839/1M · Cached input $0.03442/1M · Output $0.422/1M TTFT: insufficient data Speed: insufficient data Last sample: |
|||||
|
|
$0.0689 | — | $0.422 | $0.49 | |
|
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. 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 $0.068892/1M · Cached input Not published · Output $0.422/1M TTFT: insufficient data Speed: insufficient data |
|||||
|
|
$0.0738 | — | $0.422 | $0.50 | |
|
Retention Retention unverified - not strict ZDR: This exact model and upstream ID have not been approved for strict ZDR under the current account controls. Provider-wide ZDR, no-training and successful inference are insufficient. Safety retention or other content storage may apply; the route is excluded until reviewed. This exact model and upstream ID have not been approved for strict ZDR under the current account controls. Provider-wide ZDR, no-training and successful inference are insufficient. Safety retention or other content storage may apply; the route is excluded until reviewed. 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 $0.07385/1M · Cached input Not published · Output $0.422/1M TTFT: insufficient data Speed: insufficient data |
|||||
|
|
$0.0738 | $0.0151 | $0.430 | $0.50 | |
|
Retention Zero data retention. Verification: provider E2EE not verified. Greenference SAS's DPA commits to EU-only inference, no persistent prompt/output storage and no training or secondary use. Shared prefix caches remain in volatile GPU memory until eviction or instance restart; they are not account-isolated and have no fixed maximum lifetime. Content-free operational metadata is retained. Greenference runs its own serving software on rented EU compute; this is contractual ZDR, not verified confidential compute or E2EE. Its current electricity mix is unverified, not a 100% renewable-energy commitment. Location Operator country: FR Headquarters / registered office: Not verified. Inference: EU-only inference, dynamically placed; no individual-country commitment. All inference is on Greenference-operated serving software on rented EU GPU capacity. Region pinning through TR: Select provider.only=[greenference] with allow_fallbacks=false to restrict this route. Reviewed 2026-10-09. Weight format Unknown Price and speed Input $0.07385/1M · Cached input $0.01512/1M · Output $0.429976/1M TTFT: 1.12 s Speed: insufficient data Last sample: |
|||||
Append :nitro to the model ID, or send "provider": {"sort": "throughput"}, to route to the fastest provider instead.
Questions
What model ID should I use for GLM 4.7 Flash?
Use z-ai/glm-4.7-flash 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 4.7 Flash?
TrustedRouter currently lists Greenference, Featherless AI, Cloudflare Workers AI, IO Intelligence, and Amazon Bedrock for GLM 4.7 Flash. Provider availability and routing eligibility can change as catalog and health data update.
How much does GLM 4.7 Flash cost through TrustedRouter?
The current lowest Credits input price is $0.063828/1M and the lowest Credits output price is $0.422/1M. Prices are per one million tokens and come from the current route catalog.
How do I require zero data retention for GLM 4.7 Flash?
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.
GLM 4.7 Flash vs other models
Start building with GLM 4.7 Flash.
No card required. Start with 1 million free tokens.
