theserverless.dev InferenceList

Models / Z.ai

Z.ai: GLM 5.2

z-ai/glm-5.2

textContext 1.0M

GLM 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,...

Price

Input$0.006

per 1M tokens

Output$7

per 1M tokens

Cheaper on Morph (−75.9%) versus the lab price

Compare this model

Providers

Each row is one seller. Prices are the published rate from that source. A dash means that source did not publish the amount. Sorted by a 3:1 blend of input and output.

ProviderTagQuant InputOutput ContextUptimeStatusSource
Morph morph/fp8 fp8 $0.176/1M $1.544/1M 1.0M 100% Live openrouter-endpoints
DeepInfra
Price differs from the host list
deepinfra/fp4/flex fp4 $0.45/1M $1.44/1M 1.0M 100% Live openrouter-endpoints
DeepInfra
Price differs from the host list
deepinfra/fp4 fp4 $0.5625/1M $1.8/1M 1.0M 100% Live openrouter-endpoints
StreamLake streamlake/fp8 fp8 $0.6131/1M $1.927/1M 1.0M 100% Live openrouter-endpoints
Ambient ambient/fp8 fp8 $0.6/1M $2/1M 203K 100% Live openrouter-endpoints
Novita
Price differs from the host list
novita/fp8 fp8 $0.6496/1M $2.042/1M 1.0M 100% Live openrouter-endpoints
CoreWeave coreweave/fp4 fp4 $0.62/1M $2.42/1M 1.0M 100% Live openrouter-endpoints
DigitalOcean digitalocean — $0.7/1M $2.2/1M 1.0M 100% Live openrouter-endpoints
SiliconFlow siliconflow/fp8 fp8 $0.7/1M $2.2/1M 1.0M 100% Live openrouter-endpoints
DeepInfra
Price differs from OpenRouter
— — $0.75/1M $2.4/1M 1.0M — Listed deepinfra
AtlasCloud
Price differs from the host list
atlas-cloud/fp8 fp8 $0.938/1M $2.948/1M 1.0M 100% Live openrouter-endpoints
Alibaba alibaba/fp8 fp8 $0.966/1M $3.036/1M 1M 100% Live openrouter-endpoints
Phala — — $1.26/1M $3/1M 1.0M — Listed phala
Alibaba alibaba/fp8/us-east-1 fp8 $1.12/1M $3.52/1M 1M — Live openrouter-endpoints
Wafer wafer/us fp4 $0.006/1M $7/1M 1.0M 100% Live openrouter-endpoints
Relace relace — $0.0065/1M $7.906/1M 1.0M 100% Live openrouter-endpoints
Inceptron inceptron/fp4 fp4 $1.2/1M $4.4/1M 1.0M 100% Live openrouter-endpoints
Inference.net — — $1.3/1M $4.4/1M 1.0M — Listed inferencenet
Cloudflare
Price differs from the host list
cloudflare — $0.19/1M $8/1M 262K 100% Live openrouter-endpoints
Wafer wafer fp4 $0.19/1M $8/1M 1.0M 100% Live openrouter-endpoints
AtlasCloud
Price differs from OpenRouter
— fp8 $1.4/1M $4.4/1M 1.0M — Listed atlascloud
Baidu baidu/fp8 fp8 $1.4/1M $4.4/1M 1.0M 100% Live openrouter-endpoints
BaseTen baseten/fp8 fp8 $1.4/1M $4.4/1M 1.0M 100% Live openrouter-endpoints
BaseTen baseten/fp8/us fp8 $1.4/1M $4.4/1M 1.0M 100% Live openrouter-endpoints
Cloudflare
Price differs from OpenRouter
— — $1.4/1M $4.4/1M — — Listed cloudflare-pricing
Friendli — — $1.4/1M $4.4/1M 1.0M — Listed friendli
Friendli friendli — $1.4/1M $4.4/1M 1.0M 100% Live openrouter-endpoints
GMICloud gmicloud/fp8 fp8 $1.4/1M $4.4/1M 1.0M — Live openrouter-endpoints
Mistral AI mistral/zdr nvfp4 $1.4/1M $4.4/1M 1.0M 100% Live openrouter-endpoints
Nebius nebius/fp4 fp4 $1.4/1M $4.4/1M 1.0M — Live openrouter-endpoints
Novita
Price differs from OpenRouter
— — $1.4/1M $4.4/1M 1.0M — Listed novita
Parasail parasail/fp4 fp4 $1.4/1M $4.4/1M 262K 100% Live openrouter-endpoints
Together — — $1.4/1M $4.4/1M 1.0M — Listed together
Together together — $1.4/1M $4.4/1M 1.0M 100% Live openrouter-endpoints
Venice venice/fp8 fp8 $1.4/1M $4.4/1M 1M 100% Live openrouter-endpoints
Z.ai z-ai/fp8 fp8 $1.4/1M $4.4/1M 1.0M 100% Live openrouter-endpoints
Mistral AI mistral/eu — $1.54/1M $4.84/1M 1.0M — Live openrouter-endpoints
Io Net — fp4 $1.484/1M $5.604/1M 262K — Listed ionet
Decart decart/fast fp4 $1.2/1M $8/1M 1.0M 100% Live openrouter-endpoints
BaseTen baseten/fast fp8 $2.1/1M $6.6/1M 1.0M 100% Live openrouter-endpoints
BaseTen baseten/us/fast fp8 $2.1/1M $6.6/1M 1.0M 100% Live openrouter-endpoints
Alibaba alibaba/fast fp8 $2.31/1M $7.26/1M 1M 100% Live openrouter-endpoints
Baidu baidu/fast fp4 $2.25/1M $7.88/1M 1.0M 100% Live openrouter-endpoints

Monthly bill

Token models use the token counts. Image, video, and audio models use units times the flat rate.

$7.01 at list price for this workload

Cache

Cache read$0.005

per 1M tokens

Every rate
UnitInputOutputFlatConfidence
token $0.006/1M $7/1M Not published— official

Price history

Z.ai: GLM 5.2
20 0 2026-09-15: $1.42026-09-16: $1.42026-09-17: $1.42026-09-18: $0.55442026-09-19: $0.55442026-09-20: $0.64962026-09-21: $0.64962026-09-22: $0.64962026-09-23: $0.64962026-09-24: $0.64962026-09-25: $0.64962026-09-26: $0.64962026-09-27: $0.64962026-09-28: $0.64962026-09-29: $0.23392026-09-30: $0.4322026-10-01: $0.412026-10-02: $0.412026-10-03: $0.412026-10-04: $0.07922026-10-05: $0.0322026-10-06: $0.1522026-10-07: $0.1712026-10-08: $0.072026-10-09: $0.062026-10-10: $0.062026-10-11: $0.062026-10-12: $0.062026-10-13: $0.062026-10-14: $0.062026-10-15: $0.22026-10-16: $0.622026-10-17: $0.622026-10-18: $0.622026-10-19: $0.622026-10-20: $0.622026-10-21: $0.03412026-10-22: $0.03412026-10-23: $0.03412026-10-24: $0.03412026-10-25: $0.03412026-10-26: $0.03412026-10-27: $0.03412026-10-28: $0.01062026-10-29: $0.0062026-10-30: $0.006 2026-09-15 2026-10-30

input or flat output

Daily snapshots
UTC dateUnitInputOutputFlat
2026-09-15 token $1.4 $4.4 Not published—
2026-09-16 token $1.4 $4.4 Not published—
2026-09-17 token $1.4 $4.4 Not published—
2026-09-18 token $0.5544 $1.742 Not published—
2026-09-19 token $0.5544 $1.742 Not published—
2026-09-20 token $0.6496 $2.042 Not published—
2026-09-21 token $0.6496 $2.042 Not published—
2026-09-22 token $0.6496 $2.042 Not published—
2026-09-23 token $0.6496 $2.042 Not published—
2026-09-24 token $0.6496 $2.042 Not published—
2026-09-25 token $0.6496 $2.042 Not published—
2026-09-26 token $0.6496 $2.042 Not published—
2026-09-27 token $0.6496 $2.042 Not published—
2026-09-28 token $0.6496 $2.042 Not published—
2026-09-29 token $0.2339 $4.4 Not published—
2026-09-30 token $0.432 $3.99 Not published—
2026-10-01 token $0.41 $3.99 Not published—
2026-10-02 token $0.41 $3.99 Not published—
2026-10-03 token $0.41 $3.99 Not published—
2026-10-04 token $0.0792 $8 Not published—
2026-10-05 token $0.032 $16 Not published—
2026-10-06 token $0.152 $12 Not published—
2026-10-07 token $0.171 $7.2 Not published—
2026-10-08 token $0.07 $4.3 Not published—
2026-10-09 token $0.06 $6 Not published—
2026-10-10 token $0.06 $7 Not published—
2026-10-11 token $0.06 $7 Not published—
2026-10-12 token $0.06 $7 Not published—
2026-10-13 token $0.06 $7 Not published—
2026-10-14 token $0.06 $7 Not published—
2026-10-15 token $0.2 $10 Not published—
2026-10-16 token $0.62 $2.42 Not published—
2026-10-17 token $0.62 $2.42 Not published—
2026-10-18 token $0.62 $2.42 Not published—
2026-10-19 token $0.62 $2.42 Not published—
2026-10-20 token $0.62 $2.42 Not published—
2026-10-21 token $0.0341 $7 Not published—
2026-10-22 token $0.0341 $7 Not published—
2026-10-23 token $0.0341 $7 Not published—
2026-10-24 token $0.0341 $7 Not published—
2026-10-25 token $0.0341 $7 Not published—
2026-10-26 token $0.0341 $7 Not published—
2026-10-27 token $0.0341 $7 Not published—
2026-10-28 token $0.0106 $7 Not published—
2026-10-29 token $0.006 $7 Not published—
2026-10-30 token $0.006 $7 Not published—

Alternatives

Parameters (21)
frequency_penaltyinclude_reasoninglogit_biaslogprobsmax_tokensmin_pparallel_tool_callspresence_penaltyreasoningreasoning_effortrepetition_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_ktop_logprobstop_p
Call this model

OpenRouter id z-ai/glm-5.2. InferenceList does not send the request.

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

JavaScript
await fetch("https://openrouter.ai/api/v1/chat/completions", {
  method: "POST",
  headers: {
    Authorization: "Bearer " + process.env.OPENROUTER_API_KEY,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    model: "z-ai/glm-5.2",
    messages: [{ role: "user", content: "Hello" }],
  }),
});

Python
import os, json, urllib.request
req = urllib.request.Request(
    "https://openrouter.ai/api/v1/chat/completions",
    data=json.dumps({"model": "z-ai/glm-5.2", "messages": [{"role": "user", "content": "Hello"}]}).encode(),
    headers={"Authorization": "Bearer " + os.environ["OPENROUTER_API_KEY"], "Content-Type": "application/json"},
)
print(urllib.request.urlopen(req).read().decode())

JSON · History JSON