Z.ai: GLM-OCR
Z.ai GLM-OCR API pricing
GLM-OCR costs $0.012 per million input tokens and $0.012 per million output tokens on Oxyy. These are the pay-as-you-go prices after the current 60% discount (Launch Promo; standard price $0.030 input and $0.030 output). It accepts images and files and returns text. A cheaper Z.ai option is GLM-4.5-Flash, which is free to call; for every model and rate, see GLM API pricing.
Providers
Where this model runs, and what each route costs. Requests are sent to a healthy provider automatically; if one errors, the gateway retries against another serving the same model.
| Provider | Input /M | Output /M | Cache read /M |
|---|---|---|---|
| Z.ai | $0.012 | $0.012 | — |
Pricing
What this model costs on Oxyy, pay as you go. "Charged" is the rate a request is billed at; the standard price is shown beside it for reference.
| Rate | Standard price | Charged | Unit |
|---|---|---|---|
| Input | $0.030 | $0.012 | per 1M input tokens |
| Output | $0.030 | $0.012 | per 1M output tokens |
Discount. Charged rates include the current "Launch Promo" discount of 60% on every rate.
Specifications
- Model ID
glm-ocr- Developer
- Z.ai
- Type
- Vision (image to text)
- Input
- Images and files
- Output
- Text
- Series
- GLM-V
- Image input
- Up to 20 MB each
- File input
- Up to 100 MB each
- Endpoint
/v1/chat/completions
Best for
Quickstart
Call glm-ocr with a POST to /v1/chat/completions on https://api.oxyy.ai, using your Oxyy API key from the OXYY_API_KEY environment variable. The same key works for every model in the catalog.
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.oxyy.ai/v1",
api_key=os.environ["OXYY_API_KEY"],
)
response = client.chat.completions.create(
model="glm-ocr",
messages=[
{"role": "user", "content": [
{"type": "text", "text": "Describe this image."},
{"type": "image_url", "image_url": {"url": "https://example.com/photo.jpg"}},
]},
],
)
print(response.choices[0].message.content)Availability
The share of requests to this model that completed successfully over the last 30 days. Requests the caller cancelled, and requests still in flight, are not counted. When an upstream provider errors, the gateway retries against another provider serving the same model, so a single provider incident does not necessarily show up here.
Frequently asked questions
What is GLM-OCR?
How much does GLM-OCR cost?
What inputs and outputs does GLM-OCR support?
Which API endpoint does GLM-OCR use?
What other models does Z.ai have?
Alternatives to GLM-OCR
Models of the same kind from other vendors, closest in price first. Prices are pay-as-you-go on Oxyy, through the same API key.

