Z.ai: GLM-OCR

zai/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.

Z.ai's OCR model for extracting text from images and documents.
ModalitiesImageFileText
Price$0.012 / $0.012 per 1M tokens in / outAll 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.

ProviderInput /MOutput /MCache 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.

Input price
$0.012
per 1M input tokens · standard price $0.030
Output price
$0.012
per 1M output tokens · standard price $0.030
RateStandard priceChargedUnit
Input$0.030$0.012per 1M input tokens
Output$0.030$0.012per 1M output tokens

Discount. Charged rates include the current "Launch Promo" discount of 60% on every rate.

UTC

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

OCRDocument understandingLow cost

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.

Requests (30 days)
58
A success rate is shown from 100 completed requests
Days with traffic
4
of the last 30 days

Frequently asked questions

What is GLM-OCR?
Z.ai's OCR model for extracting text from images and documents.
How much does GLM-OCR cost?
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). You pay per request, with no subscription.
What inputs and outputs does GLM-OCR support?
GLM-OCR accepts images and files as input and returns text.
Which API endpoint does GLM-OCR use?
Send a POST request to https://api.oxyy.ai/v1/chat/completions with "model": "glm-ocr", authenticated with your Oxyy API key. It is also served on /v1/responses (Responses API).
What other models does Z.ai have?
Z.ai also offers GLM-4-32B-0414-128K, GLM-4.5, GLM-4.5-Air and GLM-4.5-AirX through Oxyy.

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.

Explore more models

More models from Z.ai