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

Prices in USD per 1M tokens. Where two prices are shown, the first is the standard price and the second is what you pay on Oxyy, pay as you go. Cached input is the Oxyy price.
ModelContextInputOutputCached inputSavingReleased
GLM-5.3glm-5.31.05MStandard price $1.40, on Oxyy $0.560Standard price $4.40, on Oxyy $1.76$0.10460%Aug 14, 2026
GLM-5.2glm-5.21.05MStandard price $1.40, on Oxyy $0.560Standard price $4.40, on Oxyy $1.76$0.10460%Jun 16, 2026
GLM-4.7-Flashglm-4.7-flash—Free——
GLM-5glm-5200KStandard price $1.00, on Oxyy $0.400Standard price $3.20, on Oxyy $1.28$0.08060%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-128k128KStandard price $0.100, on Oxyy $0.040Standard price $0.100, on Oxyy $0.040—60%—
GLM-4.5glm-4.5—Standard price $0.600, on Oxyy $0.240Standard price $2.20, on Oxyy $0.880$0.04460%—
GLM-4.5-Airglm-4.5-air—Standard price $0.200, on Oxyy $0.080Standard price $1.10, on Oxyy $0.440$0.01260%—
GLM-4.5-AirXglm-4.5-airx—Standard price $1.10, on Oxyy $0.440Standard price $4.50, on Oxyy $1.80$0.08860%—
GLM-4.5-Flashglm-4.5-flash—Free——
GLM-4.5-Xglm-4.5-x—Standard price $2.20, on Oxyy $0.880Standard price $8.90, on Oxyy $3.56$0.18060%—
GLM-4.5Vglm-4.5v—Standard price $0.600, on Oxyy $0.240Standard price $1.80, on Oxyy $0.720$0.04460%—
GLM-4.6glm-4.6—Standard price $0.600, on Oxyy $0.240Standard price $2.20, on Oxyy $0.880$0.04460%—
GLM-4.6Vglm-4.6v128KStandard price $0.300, on Oxyy $0.120Standard price $0.900, on Oxyy $0.360$0.02060%—
GLM-4.6V-Flashglm-4.6v-flash—Free——
GLM-4.6V-FlashXglm-4.6v-flashx—Standard price $0.040, on Oxyy $0.016Standard price $0.400, on Oxyy $0.160$0.001660%—
GLM-4.7glm-4.7200KStandard price $0.600, on Oxyy $0.240Standard price $2.20, on Oxyy $0.880$0.04460%—
GLM-4.7-FlashXglm-4.7-flashx—Standard price $0.070, on Oxyy $0.028Standard price $0.400, on Oxyy $0.160$0.00460%—
GLM-5-Codeglm-5-code—Standard price $1.20, on Oxyy $0.480Standard price $5.00, on Oxyy $2.00$0.12060%—
GLM-5-Turboglm-5-turbo—Standard price $1.20, on Oxyy $0.480Standard price $4.00, on Oxyy $1.60$0.09660%—
GLM-5.1glm-5.1200KStandard price $1.40, on Oxyy $0.560Standard price $4.40, on Oxyy $1.76$0.10460%—
GLM-5.3-Flashglm-5.3-flash—Standard price $0.150, on Oxyy $0.060Standard price $0.500, on Oxyy $0.200$0.01260%—
GLM-5.3-FlashXglm-5.3-flashx—Standard price $0.370, on Oxyy $0.148Standard price $1.25, on Oxyy $0.500$0.03060%—
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.012Standard 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

Prices in USD, in each model's own billing unit. Where two prices are shown, the first is the standard price and the second is what you pay on Oxyy, pay as you go.
ModelTypePriceSavingReleased
CogVideoX-3cogvideox-3Text to videoStandard price $0.200, on Oxyy $0.080per generation60%—
CogView-4cogview-4Image generationStandard price $0.010, on Oxyy $0.004per image60%—
GLM-Imageglm-imageImage generationStandard price $0.015, on Oxyy $0.006per image60%—
Popular Special Effects Video Templatesglm-video-effects-agentText to videoStandard price $0.200, on Oxyy $0.080per generation60%—

Recent GLM price changes

Changes to the Oxyy price of GLM models over the last 90 days, newest first, from Oxyy's daily price checks.
DateModelChange
Sep 24, 202623 modelsDiscount changed: 70% → 60% off
Sep 22, 202623 modelsDiscount 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.

Estimates in USD per month. Standard price: Oxyy's list price before any discount. On Oxyy: the pay-as-you-go price you are billed. Taxes are not included.
GLM modelAt standard priceOn OxyyYou 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.

Lowest price: the paid model tagged for the need with the lowest Oxyy price (3 input tokens to 1 output token). Most used: the busiest of those models on Oxyy over the last 7 days.
NeedLowest priceMost used on Oxyy
ReasoningGLM-4.7$0.240 / $0.880 per 1M tokensGLM-5
Agents and tool useGLM-4.5$0.240 / $0.880 per 1M tokensGLM-5
Long documentsGLM-4-32B-0414-128K$0.040 / $0.040 per 1M tokensGLM-5.2
Images in, text outGLM-OCR$0.012 / $0.012 per 1M tokensNo traffic yet
Lowest costGLM-OCR$0.012 / $0.012 per 1M tokensGLM-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

Z.ai: GLM-5TextText-60%7.0K tokens
reasoningcodingagenticopen-weights

Z.ai's new-generation flagship foundation model for agentic engineering, targeting complex system engineering and long-range agent tasks.

by Z.aiFeb 11, 2026200K context$0.400/M input standard price $1.00$1.28/M output standard price $3.2024.3s latency
Z.ai: GLM-5.2TextText-60%154 tokens
reasoningcodingagenticlong-contextopen-weights

Long-context reasoning and coding model. The GLM release that expanded the context window from 200K to 1M tokens.

by Z.aiJun 16, 20261.05M context$0.560/M input standard price $1.40$1.76/M output standard price $4.403841ms latency
Z.ai: GLM-4.7-FlashTextTextFree124 tokens
freeopen-weights

Free tier text model from the GLM-4.7 generation.

by Z.ai$0/M input$0/M output2435ms latency
Z.ai: GLM-5.3TextText-60%2mo ago
reasoningcodingagenticlong-contextopen-weights

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.

by Z.aiAug 14, 20261.05M context$0.560/M input standard price $1.40$1.76/M output standard price $4.40
Z.ai: CogVideoX-3TextImageVideo-60%—
video-generationopen-weights

Z.ai's video generation model.

by Z.ai$0.080 per generation standard price $0.200
Z.ai: CogView-4TextImage-60%—
image-generationtext-to-imageopen-weightslow-cost

Z.ai's CogView image generation model.

by Z.ai$0.004 per image standard price $0.010
Z.ai: GLM-4-32B-0414-128KTextText-60%—
low-costopen-weightslong-context

32-billion-parameter GLM-4 model with a 128K context window, flat-priced on input and output.

by Z.ai128K context$0.040/M input standard price $0.100$0.040/M output standard price $0.100
Z.ai: GLM-4.5TextText-60%—
codingagenticopen-weights

GLM-4.5 base text model. The release that introduced interleaved reasoning to the GLM line.

by Z.ai$0.240/M input standard price $0.600$0.880/M output standard price $2.20
Z.ai: GLM-4.5-AirTextText-60%—
low-costopen-weights

Lightweight, low-cost variant of GLM-4.5.

by Z.ai$0.080/M input standard price $0.200$0.440/M output standard price $1.10
Z.ai: GLM-4.5-AirXTextText-60%—
high-throughput

High-throughput variant of GLM-4.5-Air.

by Z.ai$0.440/M input standard price $1.10$1.80/M output standard price $4.50
Z.ai: GLM-4.5-FlashTextTextFree—
freeopen-weights

Free tier text model from the GLM-4.5 generation.

by Z.ai$0/M input$0/M output
Z.ai: GLM-4.5-XTextText-60%—
reasoninghigh-performance

Highest-performance variant of GLM-4.5, and the most expensive model in Z.ai's published catalog.

by Z.ai$0.880/M input standard price $2.20$3.56/M output standard price $8.90
Z.ai: GLM-4.5VTextImageText-60%—
visionmultimodalopen-weights

Previous-generation GLM vision-language model.

by Z.ai$0.240/M input standard price $0.600$0.720/M output standard price $1.80
Z.ai: GLM-4.6TextText-60%—
codingagenticopen-weights

Prior-generation GLM-4 text model.

by Z.ai$0.240/M input standard price $0.600$0.880/M output standard price $2.20
Z.ai: GLM-4.6VTextImageText-60%—
visionmultimodaldocument-understandingui-reconstruction

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.

by Z.ai128K context$0.120/M input standard price $0.300$0.360/M output standard price $0.900
Z.ai: GLM-4.6V-FlashTextImageTextFree—
visionfree

Free tier vision-language model.

by Z.ai$0/M input$0/M output
Z.ai: GLM-4.6V-FlashXTextImageText-60%—
visionlow-costhigh-throughput

High-throughput, low-cost vision variant of GLM-4.6V.

by Z.ai$0.016/M input standard price $0.040$0.160/M output standard price $0.400
Z.ai: GLM-4.7TextText-60%—
reasoningcodingagenticopen-weights

Previous flagship focused on task completion rather than single-point code generation, with interleaved, retained and round-level reasoning.

by Z.ai200K context$0.240/M input standard price $0.600$0.880/M output standard price $2.20
Z.ai: GLM-4.7-FlashXTextText-60%—
low-costhigh-throughput

High-throughput, very low cost variant of GLM-4.7.

by Z.ai$0.028/M input standard price $0.070$0.160/M output standard price $0.400
Z.ai: GLM-5-CodeTextText-60%—
codingagentic

Coding-specialized variant of GLM-5.

by Z.ai$0.480/M input standard price $1.20$2.00/M output standard price $5.00
Z.ai: GLM-5-TurboTextText-60%—
reasoningcodingfast

Speed-optimized variant of GLM-5.

by Z.ai$0.480/M input standard price $1.20$1.60/M output standard price $4.00
Z.ai: GLM-5.1TextText-60%—
reasoningcodingagenticopen-weights

Leading open-source coding model with significant gains on long-horizon tasks. Predecessor to GLM-5.2.

by Z.ai200K context$0.560/M input standard price $1.40$1.76/M output standard price $4.40
Z.ai: GLM-5.3-FlashTextImageText-60%—
codingmultimodallow-costopen-weightsvisual-coding

The first native multimodal model in the GLM-5 series, delivering stronger intelligence than GLM-5.2 at very low cost.

by Z.ai$0.060/M input standard price $0.150$0.200/M output standard price $0.500
Z.ai: GLM-5.3-FlashXTextText-60%—
codinglow-costhigh-throughput

Higher-throughput FlashX variant of the GLM-5.3 generation.

by Z.ai$0.148/M input standard price $0.370$0.500/M output standard price $1.25
Z.ai: GLM-ASR-2512AudioText-60%—
speech-to-texttranscriptionlow-cost

Z.ai's automatic speech recognition model.

by Z.ai$0.012 per 1M tokens standard price $0.030
Z.ai: GLM-ImageTextImage-60%—
image-generationtext-to-imageopen-weights

Text-to-image generation model, described by Z.ai as achieving open-source state of the art in complex scenarios.

by Z.ai$0.006 per image standard price $0.015
Z.ai: GLM-OCRImageFileText-60%—
ocrdocument-understandinglow-cost

Z.ai's OCR model for extracting text from images and documents.

by Z.ai$0.012/M input standard price $0.030$0.012/M output standard price $0.030