Skip to main content
FLAGSHIP · FREEVRAM Calculator, which GPU runs which model? →
Featured AI Models & Fashion Pack →
Vantaige

Free Tool

Z.AI API Cost Calculator

Estimate your monthly and annual Z.AI GLM API cost from your request volume and average token counts.

Not sure how many tokens your prompts use? Paste your text into the Token Calculator for exact counts first.

Formula: monthly cost = monthly requests × ((avg input tokens × input price) + (avg output tokens × output price)) / 1,000,000

Cheapest

glm-4.7

$0.6/M in · $2.2/M out

Monthly cost$13.60
Annual cost$163.20
Cost per request$0.00136

glm-5

$1/M in · $3.2/M out

Monthly cost$20.80
Annual cost$249.60
Cost per request$0.00208

glm-5.2

$1.4/M in · $4.4/M out

Monthly cost$28.80
Annual cost$345.60
Cost per request$0.00288

glm-5.1

$1.4/M in · $4.4/M out

Monthly cost$28.80
Annual cost$345.60
Cost per request$0.00288

Z.AI GLM pricing

Published list price per million tokens for Z.AI's current GLM models.

ModelInput $/M tokensOutput $/M tokens
glm-4.7$0.6$2.2
glm-5.2$1.4$4.4
glm-5.1$1.4$4.4
glm-5$1$3.2
glm-5-code$1.2$5
glm-5-turbo$1.2$4
glm-4.7-flashx$0.07$0.4
glm-4.6$0.6$2.2

Frequently asked questions

How much does Z.AI's glm-4.7 cost?

glm-4.7 costs $0.6 per million input tokens and $2.2 per million output tokens. Use the calculator above to estimate your own monthly cost from your expected request volume and average token counts.

What is the cheapest Z.AI model?

glm-4.7-flashx is Z.AI's cheapest current GLM model, priced at $0.07 per million input tokens and $0.4 per million output tokens, versus $0.6 / $2.2 for the flagship glm-4.7.

How does Z.AI API pricing work?

Z.AI bills per token, separately for input tokens (what you send) and output tokens (what the model generates), priced per million tokens. Output tokens typically cost more than input tokens because generation is more compute-intensive. Total request cost is (input tokens × input price + output tokens × output price) / 1,000,000, multiplied by your request volume.

How do I estimate my monthly Z.AI API cost?

Enter your expected monthly request volume and average input/output tokens per request into the calculator above, pick one or more GLM models to compare, and it computes monthly cost, annual cost, cost per request, and cost per user instantly. Add an optional monthly growth rate to see a 12-month cost projection.

Compare across providers

Want to compare Z.AI against other providers side by side? Use the full AI Cost Calculator.