← All modelsGet an API key
Z
GLM 5.2
z-ai/glm-5.2GLM 5.2 is a large-scale reasoning model from Z.ai. It supports text input and output with a 1M-token context window, and is suited for long-horizon agent workflows, project-level software engineering,...
Endpoints
Each row is one provider serving these weights at one precision. Prices are per million tokens.
| Quantisation | Context | Max out | Input | Output | Cached in |
|---|---|---|---|---|---|
| FP8 | 1024K | 128K | $1.20 | $3.60 | $0.24 |
Agent config
Paste this into your coding agent and it can configure itself. The timeout is derived from this variant's measured throughput, not a guess — a long generation that outlives a client's default ceiling is the most common way a working request looks broken.
# Infersia — z-ai/glm-5.2
# Paste this to your agent. Values are measured, not aspirational.
provider:
type: openai-compatible
base_url: https://api.infersia.com/v1
api_key: ${INFERSIA_API_KEY} # from https://infersia.com/dashboard/keys
model: z-ai/glm-5.2
limits:
max_input_tokens: 1048576 # hard limit — over this returns HTTP 413
max_output_tokens: 131072
timeout_seconds: 600 # no throughput measured yet; 600 is a safe default
features:
streaming: true
tools: true
vision: false
reasoning: true # OFF by default; send chat_template_kwargs.enable_thinking=true to opt in
prompt_caching: false
pricing_usd_per_million_tokens:
input: 1.2
output: 3.6
cached_input: 0.24What FP8 means
8-bit floating point. Near-lossless against FP16.
Call it
curlbash
curl https://api.infersia.com/v1/chat/completions \
-H "Authorization: Bearer $INFERSIA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "z-ai/glm-5.2",
"messages": [{"role": "user", "content": "Hello"}],
"stream": true
}'Pin a provider with z-ai/glm-5.2@infersia, or take the cheapest with the bare id. Add :free for the rate-limited free tier where one exists.