Skip to content
TokenCenter Get API key

Models / Z.ai

Z.aiAvailable on TokenCenter

GLM Latest

~z-ai/glm-latest

This model always redirects to the latest GLM model from Z.ai.

Key facts

Input price
$0.0632 / 1M tokens
Output price
$4.40 / 1M tokens
Context window
1M tokens
Max output
131K tokens
Accepts
Text
Returns
Text

Example: 1,000 requests with 1,000 input and 500 output tokens each would cost about $2.26 (1M input tokens × $0.0632 + 0.5M output tokens × $4.40). Estimate your own usage.

Prices are the provider’s own per-token rates with zero markup, from our price list as of Oct 18, 2026. If a call has extra provider charges (images, audio, web search, cached prompts), you pay the reported cost.

Call it from your code

curl https://api.tokenctr.com/v1/chat/completions \
  -H "Authorization: Bearer $TOKENCENTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "~z-ai/glm-latest", "messages": [{"role": "user", "content": "Hello!"}]}'

Works with any OpenAI-compatible SDK: set the base URL to https://api.tokenctr.com/v1. Quickstart

Supported request parameters

frequency_penaltyinclude_reasoninglogit_biaslogprobsmax_tokensmin_pparallel_tool_callspresence_penaltyreasoningreasoning_effortrepetition_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_ktop_logprobstop_p