Skip to content
CostPerPrompt

GLM 5.1 API Pricing

Z.ai (GLM) · context window 205K · prices updated 2026-08-02

Input per 1M tokens
$0.966
Output per 1M tokens
$3.04
Cached input per 1M
$0.1794
81% cheaper than fresh input

What real workloads cost on GLM 5.1

Workload Per request Per month
1K short requests/day (500 in / 150 out) $0.0009 $28.15
Support chatbot, 500 convs/day (~5K in / 1.4K out per conv) $0.0091 $136
Document pipeline, 10K docs/day (3K in / 500 out) $0.0044 $1325

Model your exact traffic in the API cost calculator — it preloads GLM 5.1 with caching and batch options.

Cheaper alternatives

More Z.ai (GLM) models

Frequently asked questions

How much does the GLM 5.1 API cost?

GLM 5.1 costs $0.966 per million input tokens and $3.04 per million output tokens, with cached input at $0.1794 per million (81% cheaper). In practice, a typical short request (500 tokens in, 150 out) costs about $0.0009.

What does 1,000 requests per day cost on GLM 5.1?

At 500 input + 150 output tokens per request, 1,000 requests/day costs about $28.15 per month. Heavier workloads scale linearly — use our API cost calculator to model your exact traffic.

How can I reduce GLM 5.1 costs?

Three levers, in order of impact: (1) route routine requests to a cheaper tier and keep GLM 5.1 for hard cases; (2) enable prompt caching — cached input is 81% cheaper, which typically halves chatbot bills; (3) use the batch API for non-urgent jobs at a ~50% discount.

Is GLM 5.1 worth the price?

It depends on task difficulty. Flagship models earn their premium on complex reasoning, coding, and high-stakes output; mini/flash tiers handle classification, extraction and routine chat at 10–30× lower cost. Benchmark a sample of your real workload on both before committing.