GLM OCR
by Z.ai Vision · OCR
GLM OCR is Z.ai's document-understanding model, specialised for optical character recognition and structured extraction from images and scanned pages. It reads dense layouts and returns clean, machine-usable text across a 131K-token context.
- Publisher
- Z.ai (opens in a new tab)
- API model name
- glm-ocr
- Context window
- 128K tokens
- Sizes
- 0.9B
- Licence
- MIT
Run GLM OCR
Install it on a Pendra worker, then call it through our SDK with your pdr_sk_ API key.
from pendra import Pendra
client = Pendra(api_key="pdr_sk_...")
response = client.chat.completions.create(
model="glm-ocr",
messages=[
{
"role": "user",
"content": [
{"type": "text", "text": "Extract all the text from this image."},
{"type": "image_url", "image_url": {"url": "https://example.com/receipt.png"}},
],
}
],
)
print(response.choices[0].message.content)
Related models
GLM 4.7 Flash
Z.ai
glm-4.7-flash
GLM 4.7 Flash is Z.ai's fast, lightweight model in the GLM 4 line, offering a hybrid reasoning mode that trades depth for speed on demand. It's tuned for tool use and responsive agentic workflows across a roughly 200K-token context.
Chat · Tools · Thinking
GLM 4.6V Flash
Z.ai
glm-4.6v-flash
GLM 4.6V Flash is Z.ai's fast vision-language model, pairing image understanding with responsive, lightweight inference. It's suited to multimodal chat and analysis where latency matters, across a 131K-token context.
Chat · Vision · Tools · Thinking
Run GLM OCR on infrastructure you trust.
Deploy a worker, install GLM OCR, and start serving it through one private API.