Skip to content
llm-spend
GitHub
Cost anatomy

GLM-5

GLM · Z.ai direct APIDirect API

Fresh input / cached input / output cost breakdown, active and scheduled rates, provenance, same-model deployment markup, and cost-comparable alternatives for this purchasable lane.

Start with a pattern

Illustrative workloads

Pick a useful starting shape, then fine-tune every input below.

Fine-tune

Workload and pricing scenario

Adjust the token shape, cache behavior, time window, and service tier. Every number below updates immediately.

Interactive

Workload cost calculator

60M
210K
90%

Share of input tokens served from cache. Applied only to models with a cache meter.

Time

Rows with a rate that changes by time of day, promo window or service tier are priced for this scenario instead of their flat listed rate; a brand-colored label under the model name names which one applies. Context size for band-priced rows uses the input-token count below.

Picking a specific hour also previews time-of-day rates that are scheduled but have not started billing yet; those rows are labelled · preview with their start instant. Now only ever shows rates that are billable at this moment.

Rate state

What this lane charges right now

Priced under the workload and scenario above. The full published schedule below always shows every variant regardless of which scenario is selected.

Input / 1M
$1.00
CHF 0.805
Cached input / 1M
$0.20
CHF 0.161
Output / 1M
$3.20
CHF 2.58
Cost anatomy

Where this workload's cost goes

60M input tokens (90% cache hit) and 210K output tokens, at the resolved rate above.

$6.00
Fresh input · CHF 4.83
$10.80
Cached input · CHF 8.69
$0.672
Output · CHF 0.541
$17.47
Workload total · CHF 14.06

$6.00 + $10.80 + $0.672 = $17.47

Provenance

How much to trust these numbers

InputofficialCached inputofficialOutputofficial

Z.ai publishes a cached-input rate for GLM-5 ($0.20/M). Cached-input storage is currently free for a limited time, a billing dimension this catalog does not model.

Z.ai official pricing page, captured 2026-07-25: input $1, cached input $0.2, output $3.2 per 1M tokens. Model page lists a 200K window and 128K max output. The 'Limited-time Free' marker on that page applies only to the separate Cached Input Storage column, not to these rates.

Direct vs Foundry

Same-model deployment markup

How much more Microsoft Foundry charges for this exact model, over this Direct rate.

Not available — no Microsoft Foundry listing exists for this exact model in the catalog.

Cost-comparable

Other lanes within ±25% of this workload's cost

Same provider first, then ranked by cost proximity, for 60M in / 210K out. This is a cost ranking only — never a quality recommendation.

  • GLM 5.2
    GLM · Fireworks-hostedSame provider
    Foundry ·Data Zone
    $18.36
    CHF 14.78
    +$0.884 (+5%) vs this lane
  • GLM 5
    GLM · Fireworks-hostedSame provider
    Foundry ·Data Zone
    $19.22
    CHF 15.47
    +$1.75 (+10%) vs this lane
  • GLM-5-Turbo
    GLM · Z.ai direct APISame provider
    Direct API
    $21.00
    CHF 16.90
    +$3.53 (+20%) vs this lane
  • Kimi K2.7 Code
    Kimi
    Foundry ·Global
    $16.80
    CHF 13.52
    -$0.672 (-4%) vs this lane
  • Kimi K2.6
    Kimi · Fireworks-hosted
    Foundry ·Data Zone
    $16.70
    CHF 13.44
    -$0.774 (-4%) vs this lane
  • Qwen3.6 Max Preview
    Qwen · Model Studio (Intl)
    Direct API
    $16.46
    CHF 13.25
    -$1.01 (-6%) vs this lane