← All models

Anthropic

glm-latest

~z-ai/glm-latest

Price per million tokens

Input
$1.772
Output
$5.570
Cache write
not offered
Cache read
$0.329

What you pay. It is what the tokens cost us to buy plus 20%, and your usage page shows what we paid beside what you paid on every request you send.

Limits

Context window
1,048,576 tokens
Max output
131,072 tokens
Images
text only

What it costs to run

WorkloadInputOutputCostPer 1,000 calls
Short chat turn1,000500$0.0046$4.56
Long document summary50,0002,000$0.0998$99.76
Agent step with tools20,0001,500$0.0438$43.80
1M in, 1M out1,000,0001,000,000$7.3428$7342.80

Calling it

const res = await client.chat.completions.create({
  model: "~z-ai/glm-latest",
  messages: [{ role: "user", content: "Hello" }],
});