Z.AI

GLM-5 token cost calculator

Z.AI GLM-5 first-party rates with cached input for coding and agentic engineering.

Published list rates

Input

$1.00

per 1M tokens

Output

$3.20

per 1M tokens

Cached input

$0.2

per 1M tokens

Context window

200,000

tokens

Pricing source: Z.AI pricing

Token cost calculator

List prices are stored in US dollars. Conversions use the units-per-dollar exchange-rate snapshot last checked 2026-07-31

Estimate from text

Calculate from a token total

Project monthly volume

Uses the input/output mix above and a 30-day month: requests per day × tokens per request × 30.

Estimated cost

Estimated tokens
Characters
Words
Input tokens
Output tokens
Input cost
Output cost
Total cost
Combined price per 1M tokens
Estimated monthly cost
Estimated daily cost

Cost by token volume

Compare input-only, output-only, and 70/30 mixed workloads from one token to 100 billion. Intermediate bands make smaller production steps easier to price.

Tokens Input only Output only 70/30 mix
1 $0.000001 $0.000003 $0.000002
10 $0.00001 $0.000032 $0.000017
100 $0.0001 $0.00032 $0.000166
200 $0.0002 $0.00064 $0.000332
300 $0.0003 $0.00096 $0.000498
400 $0.0004 $0.00128 $0.000664
500 $0.0005 $0.0016 $0.00083
1,000 $0.001 $0.0032 $0.00166
2,000 $0.002 $0.0064 $0.00332
5,000 $0.005 $0.016 $0.0083
10,000 $0.01 $0.032 $0.0166
25,000 $0.025 $0.08 $0.0415
50,000 $0.05 $0.16 $0.083
100,000 $0.1 $0.32 $0.166
250,000 $0.25 $0.8 $0.415
500,000 $0.5 $1.60 $0.83
1,000,000 $1.00 $3.20 $1.66
5,000,000 $5.00 $16.00 $8.30
10,000,000 $10.00 $32.00 $16.60
50,000,000 $50.00 $160.00 $83.00
100,000,000 $100.00 $320.00 $166.00
500,000,000 $500.00 $1,600.00 $830.00
1,000,000,000 $1,000.00 $3,200.00 $1,660.00
10,000,000,000 $10,000.00 $32,000.00 $16,600.00
100,000,000,000 $100,000.00 $320,000.00 $166,000.00

Tokens available by budget

See how many tokens a fixed budget buys at the published rates. Display-currency values use the current exchange-rate snapshot shown on the page.

Budget Input tokens Output tokens Mixed tokens (70/30)
$0.01 10,000 3,125 6,024
$0.1 100,000 31,250 60,241
$0.5 500,000 156,250 301,205
$1.00 1M 312,500 602,410
$5.00 5M 1.56M 3.01M
$10.00 10M 3.13M 6.02M
$20.00 20M 6.25M 12M
$25.00 25M 7.81M 15.1M
$30.00 30M 9.38M 18.1M
$50.00 50M 15.6M 30.1M
$100.00 100M 31.3M 60.2M
$250.00 250M 78.1M 150.6M
$500.00 500M 156.3M 301.2M
$1,000.00 1B 312.5M 602.4M
$5,000.00 5B 1.56B 3.01B
$10,000.00 10B 3.13B 6.02B

Cost profile

  • A workload with 70% input and 30% output costs $1.66 per 1 million total tokens and $166.00 per 100 million.
  • At the same token count, output costs 3.2 times the input rate. Response length therefore deserves its own budget limit.
  • Filling the 200,000-token context window with input alone would cost about $0.2, before any output.
  • Cached input is $0.2 per million, 80% below standard input when the workload meets the provider’s cache rules.

About Z.AI

GLM flagship models from Z.AI with first-party cache-aware token pricing. The GLM-5 page covers this meter in detail; the Z.AI hub gathers the rest of the lineup with a pricing table, list-rate ranges, and calculators side by side.

See all Z.AI models and the pricing table

How the text estimate works

For rough planning, CostUse uses about four characters per token and about 0.75 words per token. Actual tokenization changes with language, model, formatting, and special tokens.

These results use public list prices. Cache eligibility, batch or priority modes, long-context surcharges, discounts, and regional billing can change the final invoice.

Questions about this rate

How much is 1 million mixed tokens on GLM-5?

About $1.66 at a 70% input / 30% output mix using list prices verified 2026-07-30.

How much are 100 million mixed tokens?

About $166.00 at the same 70/30 mix — useful for rough monthly volume planning.

What is the GLM-5 price per million input and output tokens?

Input $1.00 and output $3.20 per 1M tokens (USD list rates). Use the calculator above with your real token mix.

Is the text-to-token estimate exact?

No. The estimator approximates tokens from characters and words. Real bills depend on the provider tokenizer, special tokens, and discounts (cache, batch, priority).

What does cost per token mean, and why is output usually more expensive?

Providers charge for tokens processed. Output tokens (generated replies) often cost several times more than input tokens (your prompt), so completion length can dominate the bill.

Related models