Find a model

Browse the full catalog →

GLM-OCR

Open-weights chat model from Z.AI. One API key reaches this provider and every other model in the catalog.

Input / 1M$0.032
Output / 1M$0.032
Context8K
Providers 1 provider, one key

Up to 1 million free tokens. No card required.

Overview

About GLM-OCR

GLM-OCR is an open-weights chat model published by Z.AI, with a 8,192-token context window. Through TrustedRouter it runs on 1 provider, with options in the EU, from $0.032 per million input tokens.

Model ID
z-ai/glm-ocr
Publisher
Z.AI
Modes
chat
Billing
Credits
Quickstart

Set it up with your agent

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

Use GLM-OCR 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-ocr.
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-ocr",
    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-ocr",
    "messages": [{"role": "user", "content": "What is the capital of France?"}]
  }'
Your agent will need an API key.
1 provider

Providers

Open the row for retention, location and weight format, or see how we check privacy claims and the live speed leaderboard.

GLM-OCR providers and prices per 1M tokens
Provider Input Cached Output Cost per 1M in + out Details
Phala logo Phala $0.0316 $0.0106 $0.0316 $0.063

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 $0.03165/1M · Cached input $0.01055/1M · Output $0.03165/1M

TTFT: insufficient data

Speed: insufficient data

Last sample:

Phala provider page

FAQ

Questions

What model ID should I use for GLM-OCR?

Use z-ai/glm-ocr 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-OCR?

TrustedRouter currently lists Phala for GLM-OCR. Provider availability and routing eligibility can change as catalog and health data update.

How much does GLM-OCR cost through TrustedRouter?

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

How do I require zero data retention for GLM-OCR?

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-OCR vs other models

Start building with GLM-OCR.

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.