Z.ai's new-generation flagship foundation model for agentic engineering, targeting complex system engineering and long-range agent tasks.
GLM API pricing
Oxyy is an independent API gateway, not affiliated with Z.ai.
Paid GLM text models run from $0.012 to $0.880 per 1M input tokens and $0.012 to $3.56 per 1M output tokens. GLM-5.2 costs $0.560 input / $1.76 output per 1M tokens, pay-as-you-go (standard price $1.40 / $4.40). The lowest-priced paid GLM text model is GLM-OCR at $0.012 input / $0.012 output per 1M tokens. GLM-4.7-Flash, GLM-4.5-Flash and GLM-4.6V-Flash are free.
Prices checked daily · last price change Sep 24, 2026 (discount changed: 70% → 60% off)
GLM API pricing per 1M tokens
| Model | Context | Input | Output | Cached input | Saving | Released |
|---|---|---|---|---|---|---|
| GLM-5.3glm-5.3 | 1.05M | Standard price $1.40, on Oxyy $0.560 | Standard price $4.40, on Oxyy $1.76 | $0.104 | 60% | Aug 14, 2026 |
| GLM-5.2glm-5.2 | 1.05M | Standard price $1.40, on Oxyy $0.560 | Standard price $4.40, on Oxyy $1.76 | $0.104 | 60% | Jun 16, 2026 |
| GLM-4.7-Flashglm-4.7-flash | — | Free | — | — | ||
| GLM-5glm-5 | 200K | Standard price $1.00, on Oxyy $0.400 | Standard price $3.20, on Oxyy $1.28 | $0.080 | 60% | Feb 11, 2026 |
| General-Purpose Translationglm-translation-agent | — | Standard price $3.00, on Oxyy $1.20one rate for input and output | — | 60% | — | |
| GLM Slide/Poster Agent (beta)glm-slide-poster-agent | — | Standard price $0.700, on Oxyy $0.280one rate for input and output | — | 60% | — | |
| GLM-4-32B-0414-128Kglm-4-32b-0414-128k | 128K | Standard price $0.100, on Oxyy $0.040 | Standard price $0.100, on Oxyy $0.040 | — | 60% | — |
| GLM-4.5glm-4.5 | — | Standard price $0.600, on Oxyy $0.240 | Standard price $2.20, on Oxyy $0.880 | $0.044 | 60% | — |
| GLM-4.5-Airglm-4.5-air | — | Standard price $0.200, on Oxyy $0.080 | Standard price $1.10, on Oxyy $0.440 | $0.012 | 60% | — |
| GLM-4.5-AirXglm-4.5-airx | — | Standard price $1.10, on Oxyy $0.440 | Standard price $4.50, on Oxyy $1.80 | $0.088 | 60% | — |
| GLM-4.5-Flashglm-4.5-flash | — | Free | — | — | ||
| GLM-4.5-Xglm-4.5-x | — | Standard price $2.20, on Oxyy $0.880 | Standard price $8.90, on Oxyy $3.56 | $0.180 | 60% | — |
| GLM-4.5Vglm-4.5v | — | Standard price $0.600, on Oxyy $0.240 | Standard price $1.80, on Oxyy $0.720 | $0.044 | 60% | — |
| GLM-4.6glm-4.6 | — | Standard price $0.600, on Oxyy $0.240 | Standard price $2.20, on Oxyy $0.880 | $0.044 | 60% | — |
| GLM-4.6Vglm-4.6v | 128K | Standard price $0.300, on Oxyy $0.120 | Standard price $0.900, on Oxyy $0.360 | $0.020 | 60% | — |
| GLM-4.6V-Flashglm-4.6v-flash | — | Free | — | — | ||
| GLM-4.6V-FlashXglm-4.6v-flashx | — | Standard price $0.040, on Oxyy $0.016 | Standard price $0.400, on Oxyy $0.160 | $0.0016 | 60% | — |
| GLM-4.7glm-4.7 | 200K | Standard price $0.600, on Oxyy $0.240 | Standard price $2.20, on Oxyy $0.880 | $0.044 | 60% | — |
| GLM-4.7-FlashXglm-4.7-flashx | — | Standard price $0.070, on Oxyy $0.028 | Standard price $0.400, on Oxyy $0.160 | $0.004 | 60% | — |
| GLM-5-Codeglm-5-code | — | Standard price $1.20, on Oxyy $0.480 | Standard price $5.00, on Oxyy $2.00 | $0.120 | 60% | — |
| GLM-5-Turboglm-5-turbo | — | Standard price $1.20, on Oxyy $0.480 | Standard price $4.00, on Oxyy $1.60 | $0.096 | 60% | — |
| GLM-5.1glm-5.1 | 200K | Standard price $1.40, on Oxyy $0.560 | Standard price $4.40, on Oxyy $1.76 | $0.104 | 60% | — |
| GLM-5.3-Flashglm-5.3-flash | — | Standard price $0.150, on Oxyy $0.060 | Standard price $0.500, on Oxyy $0.200 | $0.012 | 60% | — |
| GLM-5.3-FlashXglm-5.3-flashx | — | Standard price $0.370, on Oxyy $0.148 | Standard price $1.25, on Oxyy $0.500 | $0.030 | 60% | — |
| GLM-ASR-2512glm-asr-2512 | — | Standard price $0.030, on Oxyy $0.012one rate for input and output | — | 60% | — | |
| GLM-OCRglm-ocr | — | Standard price $0.030, on Oxyy $0.012 | Standard price $0.030, on Oxyy $0.012 | — | 60% | — |
- The standard price is Oxyy's list price for the model before any discount. Z.ai publishes its own GLM prices on its pricing page.
GLM image and video pricing
| Model | Type | Price | Saving | Released |
|---|---|---|---|---|
| CogVideoX-3cogvideox-3 | Text to video | Standard price $0.200, on Oxyy $0.080per generation | 60% | — |
| CogView-4cogview-4 | Image generation | Standard price $0.010, on Oxyy $0.004per image | 60% | — |
| GLM-Imageglm-image | Image generation | Standard price $0.015, on Oxyy $0.006per image | 60% | — |
| Popular Special Effects Video Templatesglm-video-effects-agent | Text to video | Standard price $0.200, on Oxyy $0.080per generation | 60% | — |
Recent GLM price changes
| Date | Model | Change |
|---|---|---|
| Sep 24, 2026 | 23 models | Discount changed: 70% → 60% off |
| Sep 22, 2026 | 23 models | Discount started: 70% off |
GLM API cost calculator
Estimate a month of GLM API usage: set your input and output volume and how much of your input is a repeated prompt prefix served from cache, or start from a preset.
Estimated monthly cost for 10M input and 2M output tokens, with 0% of input served from cache.
| GLM model | At standard price | On Oxyy | You save |
|---|---|---|---|
| GLM-5.2 | $22.80 | $9.12 | $13.68 (60%) |
| GLM-5 | $16.40 | $6.56 | $9.84 (60%) |
| GLM-4-32B-0414-128K | $1.20 | $0.48 | $0.72 (60%) |
| GLM-4.5 | $10.40 | $4.16 | $6.24 (60%) |
| GLM-4.5-Air | $4.20 | $1.68 | $2.52 (60%) |
| GLM-4.5-AirX | $20.00 | $8.00 | $12.00 (60%) |
| GLM-4.5-X | $39.80 | $15.92 | $23.88 (60%) |
| GLM-4.5V | $9.60 | $3.84 | $5.76 (60%) |
Which GLM model should you use?
For each kind of work, the lowest-priced paid GLM model tagged for it and the one developers use most on Oxyy.
| Need | Lowest price | Most used on Oxyy |
|---|---|---|
| Reasoning | GLM-4.7$0.240 / $0.880 per 1M tokens | GLM-5 |
| Agents and tool use | GLM-4.5$0.240 / $0.880 per 1M tokens | GLM-5 |
| Long documents | GLM-4-32B-0414-128K$0.040 / $0.040 per 1M tokens | GLM-5.2 |
| Images in, text out | GLM-OCR$0.012 / $0.012 per 1M tokens | No traffic yet |
| Lowest cost | GLM-OCR$0.012 / $0.012 per 1M tokens | GLM-5 |
GLM API pricing FAQ
How much does the GLM API cost?
On Oxyy, GLM-5.2 costs $0.560 input / $1.76 output per 1M tokens at the pay-as-you-go price (standard price $1.40 / $4.40). Across paid GLM text models, input runs from $0.012 to $0.880 per 1M tokens and output from $0.012 to $3.56. Image generation starts at $0.004 per image and text to video starts at $0.080 per generation. There is no subscription: you pay only for what you use.
What is the cheapest GLM model?
GLM-OCR is the lowest-priced paid GLM text model on Oxyy, at $0.012 input / $0.012 output per 1M tokens. GLM-4.7-Flash, GLM-4.5-Flash and GLM-4.6V-Flash cost nothing.
How much does cached input cost on GLM models?
Cached input on GLM-5.2 costs $0.104 per 1M tokens on Oxyy, against $0.560 for regular input. The price table on this page lists the cache rate of every model that has one.
Are there free GLM models?
Yes. GLM-4.7-Flash, GLM-4.5-Flash and GLM-4.6V-Flash cost nothing to call on Oxyy.
Can I call GLM models with the OpenAI SDK?
Yes. Oxyy's API is OpenAI-compatible: set the base URL to https://api.oxyy.ai/v1, use your Oxyy API key and pass the model id, for example "glm-5.2", to /v1/chat/completions. Video models use /v1/videos/generations, image models use /v1/images/generations and transcription models use /v1/audio/transcriptions.
Is Oxyy affiliated with Z.ai?
No. Oxyy is an independent API gateway, not affiliated with or endorsed by Z.ai. It gives you one API key and one bill for models from many AI labs, Z.ai among them.
Z.ai tokens processed on Oxyy· daily, UTC
All Z.ai models 30
Long-context reasoning and coding model. The GLM release that expanded the context window from 200K to 1M tokens.
Free tier text model from the GLM-4.7 generation.
Z.ai's flagship model for complex software engineering and long-horizon agent tasks. Uses the same base model as GLM-5.2, with all gains driven by post-training.
Z.ai's video generation model.
Z.ai's CogView image generation model.
Z.ai's translation agent.
Z.ai agent that generates slides and posters.
32-billion-parameter GLM-4 model with a 128K context window, flat-priced on input and output.
GLM-4.5 base text model. The release that introduced interleaved reasoning to the GLM line.
Lightweight, low-cost variant of GLM-4.5.
High-throughput variant of GLM-4.5-Air.
Free tier text model from the GLM-4.5 generation.
Highest-performance variant of GLM-4.5, and the most expensive model in Z.ai's published catalog.
Previous-generation GLM vision-language model.
Prior-generation GLM-4 text model.
Multimodal model for high-fidelity visual understanding and long-context reasoning across images, documents and mixed media. Handles complex page layouts and charts as visual input.
Free tier vision-language model.
High-throughput, low-cost vision variant of GLM-4.6V.
Previous flagship focused on task completion rather than single-point code generation, with interleaved, retained and round-level reasoning.
High-throughput, very low cost variant of GLM-4.7.
Coding-specialized variant of GLM-5.
Speed-optimized variant of GLM-5.
Leading open-source coding model with significant gains on long-horizon tasks. Predecessor to GLM-5.2.
The first native multimodal model in the GLM-5 series, delivering stronger intelligence than GLM-5.2 at very low cost.
Higher-throughput FlashX variant of the GLM-5.3 generation.
Z.ai's automatic speech recognition model.
Text-to-image generation model, described by Z.ai as achieving open-source state of the art in complex scenarios.
Z.ai's OCR model for extracting text from images and documents.
Z.ai agent that applies popular special-effects templates to video.

