FriendliAI

GLM-5.2 (FriendliAI) token cost calculator

GLM-5.2 on FriendliAI Model APIs — multi-host compare with Z.AI and Fireworks.

Published list rates

Input

$1.40

per 1M tokens

Output

$4.40

per 1M tokens

Cached input

$0.26

per 1M tokens

Context window

200,000

tokens

Pricing source: FriendliAI 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.000004 $0.000002
10 $0.000014 $0.000044 $0.000023
100 $0.00014 $0.00044 $0.00023
200 $0.00028 $0.00088 $0.00046
300 $0.00042 $0.00132 $0.00069
400 $0.00056 $0.00176 $0.00092
500 $0.0007 $0.0022 $0.00115
1,000 $0.0014 $0.0044 $0.0023
2,000 $0.0028 $0.0088 $0.0046
5,000 $0.007 $0.022 $0.0115
10,000 $0.014 $0.044 $0.023
25,000 $0.035 $0.11 $0.0575
50,000 $0.07 $0.22 $0.115
100,000 $0.14 $0.44 $0.23
250,000 $0.35 $1.10 $0.575
500,000 $0.7 $2.20 $1.15
1,000,000 $1.40 $4.40 $2.30
5,000,000 $7.00 $22.00 $11.50
10,000,000 $14.00 $44.00 $23.00
50,000,000 $70.00 $220.00 $115.00
100,000,000 $140.00 $440.00 $230.00
500,000,000 $700.00 $2,200.00 $1,150.00
1,000,000,000 $1,400.00 $4,400.00 $2,300.00
10,000,000,000 $14,000.00 $44,000.00 $23,000.00
100,000,000,000 $140,000.00 $440,000.00 $230,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 7,143 2,273 4,348
$0.1 71,429 22,727 43,478
$0.5 357,143 113,636 217,391
$1.00 714,286 227,273 434,783
$5.00 3.57M 1.14M 2.17M
$10.00 7.14M 2.27M 4.35M
$20.00 14.3M 4.55M 8.7M
$25.00 17.9M 5.68M 10.9M
$30.00 21.4M 6.82M 13M
$50.00 35.7M 11.4M 21.7M
$100.00 71.4M 22.7M 43.5M
$250.00 178.6M 56.8M 108.7M
$500.00 357.1M 113.6M 217.4M
$1,000.00 714.3M 227.3M 434.8M
$5,000.00 3.57B 1.14B 2.17B
$10,000.00 7.14B 2.27B 4.35B

Cost profile

  • A workload with 70% input and 30% output costs $2.30 per 1 million total tokens and $230.00 per 100 million.
  • At the same token count, output costs 3.14 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.28, before any output.
  • Cached input is $0.26 per million, 81% below standard input when the workload meets the provider’s cache rules.

About FriendliAI

Fast open-model Model APIs with cache-aware per-token pricing. The GLM-5.2 (FriendliAI) page covers this meter in detail; the FriendliAI hub gathers the rest of the lineup with a pricing table, list-rate ranges, and calculators side by side.

See all FriendliAI 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.2 (FriendliAI)?

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

How much are 100 million mixed tokens?

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

What is the GLM-5.2 (FriendliAI) price per million input and output tokens?

Input $1.40 and output $4.40 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