GLM 5.2
Open weightsGLM 5.2 is a language model from Zai Org with a 256K-token context window. Provider list price is $1.40 per million input tokens and $4.40 per million output; on Allocate you pay $1.50 and $4.71 with the 7% transaction fee. The weights are open, so you can fine-tune it and own the result.
Pricing
Token usage bills at the provider list price plus the 7% transaction fee. Prices checked 2026-07-08.
Price against its peers
Provider list prices per M tokens, GLM 5.2 against its nearest language peers by price.
What a real workload costs
Take 1,000,000 requests a month at 1,200 input and 350 output tokens each: 1,200M input and 350M output tokens. At list prices that is 1,200 × $1.40 + 350 × $4.40 = $3,220 a month. Billed on Allocate it is $3,445 with the 7% transaction fee.
Where it fits
Z.ai’s strongest open-weight model: 256K context at $1.40 per million input tokens, with cached input at $0.26. A frontier-adjacent open base for teams that want top-end open quality with weights they control.
- Agents on open weights
- Code and structured outputs
- Fine-tuning toward an owned model
GLM 5.2 is an open-weights model; the catalog does not list its license, so check the lab’s model card before commercial fine-tuning.
Example usage
Point a route at z-ai/glm-5.2 and the endpoint never changes; swap the model behind it whenever you want.
curl https://api.allocate.network/v1/chat/completions \ -H "Authorization: Bearer $ALLOCATE_KEY" \ -d '{ "model": "z-ai/glm-5.2", "messages": [{"role": "user", "content": "Summarise the attached contract."}] }'
Common questions
How much does GLM 5.2 cost per million tokens?
Provider list price is $1.40 per million input tokens and $4.40 per million output tokens. On Allocate you pay list plus the 7% transaction fee: $1.50 in and $4.71 out.
What context window does GLM 5.2 have?
262,144 tokens (256K). At roughly 0.75 words per token, that is about 197k words of English text per request.
What does cached input cost on GLM 5.2?
$0.26 per million tokens at list ($0.28 billed). Repeated prompt prefixes, such as a stable system prompt or tool definitions, bill at this rate instead of the full input price.
Can I fine-tune GLM 5.2?
Yes. GLM 5.2 is an open-weights model; check the lab’s model card for the exact license terms. Read the license terms before fine-tuning for commercial use. On Allocate the trained weights stay inside your boundary and belong to you.
How do I call GLM 5.2 on Allocate?
Send z-ai/glm-5.2 in the model field of the OpenAI-compatible endpoint at api.allocate.network/v1, or point a route name (like prod/support-agent) at it so you can swap the model later without a deploy.