All models
Model card on Hugging Face
GLM-OCR
by Z.ai
Vision OCR
Z.ai's GLM-OCR (glm_ocr family) — vision, OCR; 131K context.
- Publisher
- Z.ai
- Context window
- 128K tokens
- Licence
- MIT
Run GLM-OCR
Install it on a Pendra worker, then call it through the OpenAI-compatible API with a pdr_sk_ 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) Run GLM-OCR on your own UK infrastructure
Deploy a worker, install GLM-OCR, and start serving it through one sovereign API endpoint.