GLM-5.3 and GLM-5.2 can be called through any OpenAI-compatible endpoint: point your client at Z.ai's official API or a third-party host, swap the base URL, and set the model slug. GLM-5.3 shipped on 2026-08-14 (as of 2026-08-20), so the official endpoint carries it first; third-party hosts follow on their own schedules.
Key takeaways
- 2 models, 1 license: GLM-5.3 and GLM-5.2 are both MIT-licensed; commercial API use, modification, and self-hosting are permitted.
- GLM-5.3 released 2026-08-14 (as of 2026-08-20): expect a lag before third-party hosts list it; GLM-5.2 has broader third-party coverage today.
- 4 hosting routes: Z.ai's official API, hosted third-party providers, decentralized marketplaces, or self-hosting. All four are callable from the same OpenAI-compatible client.
- Switching hosts is a 3-line change: base URL, API key, and model slug. No SDK rewrite.
- 0 verified per-token prices in this guide: pricing is set per host and moves frequently, so this guide points to each host's pricing page instead of quoting numbers that go stale.
GLM-5.3 vs GLM-5.2: what's the difference?
GLM-5.3 is the latest point release in Z.ai's GLM-5 line, released on 2026-08-14 (as of 2026-08-20). GLM-5.2 is its immediate predecessor and remains widely available. Both are part of the same MIT-licensed, open-weight family, so everything in this guide (endpoints, code, licensing) applies to both.
What a point release means in practice: the architecture and integration surface stay the same, while Z.ai's release notes describe whatever capability and behavior changes ship with the new checkpoint. This guide doesn't quote benchmark deltas. Check Z.ai's announcement and model card for the claims, then run your own prompts against both versions before committing. Point releases can shift behavior on specific tasks in ways headline scores don't capture.
The practical decision usually comes down to availability, not quality:
- Starting a new project? Default to GLM-5.3 on Z.ai's official endpoint, where it has been live since launch day.
- Already committed to a third-party host? Check whether it lists GLM-5.3 yet. If it only lists GLM-5.2, that is a stable, fully supported target, not a compromise you need to fix today.
- In production? Pin the exact model version in your config. Never point production traffic at a floating "latest" alias; point releases are exactly the kind of change that silently alters outputs.
The model catalog tracks both checkpoints and where they are listed as hosts add them.
Is the GLM-5 line really MIT-licensed?
Yes. Z.ai publishes the GLM-5 line (including GLM-5.3 and GLM-5.2) under the MIT license, as stated on its model cards in the zai-org Hugging Face organization. MIT is the most permissive option in common use: it allows commercial use, modification, redistribution, and self-hosting, with no copyleft obligations.
Two nuances worth understanding:
- The license covers the model, not the service. MIT governs the weights and code you download. When you call a hosted API (Z.ai's or anyone else's), you are also bound by that provider's terms of service, acceptable-use policy, and privacy policy. Those are separate documents, and they differ per host.
- Verify per variant. License fields are set per model card. Before you deploy a specific checkpoint, quantization, or fine-tune, open its card and confirm the license field says MIT. Community fine-tunes can carry different terms.
For API consumers, the license's biggest practical effect is competition: because anyone may serve the weights, you are not locked into the model creator's endpoint. That is what makes the rest of this article possible.
Where can you run GLM-5 via API? Hosts compared
There are four routes, and they are not mutually exclusive. Many teams use the official endpoint for evaluation and a different host in production.
Option 1: Z.ai's official API
Z.ai operates the first-party API for the GLM line. It carries new releases first (GLM-5.3 has been available there since 2026-08-14) and exposes an OpenAI-compatible chat-completions interface, so standard SDKs work. You bill directly with Z.ai, and your prompts are handled under Z.ai's privacy and retention policies. As with any provider, those policies are the company's own statements; read the current versions rather than relying on summaries, including this one.
Option 2: Third-party hosted providers and aggregators
Because the weights are MIT-licensed, independent inference providers can serve the GLM-5 line. Providers that have historically listed open-weight GLM models include Together AI, Fireworks, Novita, and DeepInfra. Aggregators like OpenRouter's model catalog let you see which backends currently list a given checkpoint and route requests to them through one API key.
The trade-offs: you consolidate billing with infrastructure you may already use, and you can sometimes pick a serving region. In exchange, brand-new releases arrive on the provider's schedule, not Z.ai's, so GLM-5.3 coverage varies day to day right now, while GLM-5.2 listings are more established. Logging and retention terms are set per provider and are policy statements, not independently verified facts; if data handling matters to your workload, compare the written policies before choosing.
Option 3: Decentralized marketplaces
A third route is a decentralized inference marketplace, where independent operators serve open-weight models and routing and pricing emerge from the marketplace rather than a single company's price list. Morpheus is one example of a decentralized inference marketplace in this category. The evaluation criteria are identical to any other host: confirm which GLM checkpoints are currently listed, check the stated data-handling terms of the route you would actually use (again, stated policies rather than verified facts), and test latency from your region.
Option 4: Self-hosting
MIT licensing plus public weights means you can skip hosted APIs entirely. Download the checkpoint from Hugging Face and serve it with an OpenAI-compatible server such as vLLM or SGLang, and your existing client code works unchanged against localhost. You get complete control over prompts and logs, and your cost becomes GPU time rather than per-token billing. The model card is the authoritative source for checkpoint size and serving requirements. Check it before provisioning hardware.
How the four routes compare
| Route | New-release access | Billing | Data control | Ops burden |
|---|---|---|---|---|
| Z.ai official API | First (5.3 live since 2026-08-14) | Direct with Z.ai | Z.ai's stated policies | None |
| Third-party hosts | Provider's schedule; 5.2 broader today | Consolidated with existing infra | Per-provider stated policies | None |
| Decentralized marketplaces | Varies by listed operators | Marketplace-set | Per-route stated terms | Low |
| Self-host | Immediate (weights are public) | GPU costs | Full (your hardware) | Highest |
How do you call the GLM-5 API? OpenAI-compatible quickstart
Every route above speaks the OpenAI chat-completions schema, so the integration is identical everywhere. The only host-specific values are the base URL, the API key, and the exact model slug.
Step 1: get credentials. Create an API key on your chosen host and find its OpenAI-compatible base URL (it usually ends in /v1).
Step 2: set environment variables so switching hosts later means changing config, not code:
export GLM_BASE_URL="https://your-host.example/v1"
export GLM_API_KEY="sk-..."
Step 3: call it from Python with the standard openai package:
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["GLM_API_KEY"],
base_url=os.environ["GLM_BASE_URL"],
)
resp = client.chat.completions.create(
model="glm-5.3", # copy the exact slug from your host's model list
messages=[
{"role": "user", "content": "Explain the MIT license in one sentence."}
],
temperature=0.2,
)
print(resp.choices[0].message.content)
The same call in curl:
curl "$GLM_BASE_URL/chat/completions" \
-H "Authorization: Bearer $GLM_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5.3",
"messages": [
{"role": "user", "content": "Explain the MIT license in one sentence."}
]
}'
Three practitioner notes:
- Model slugs differ per host. One provider's
glm-5.3is another'szai-org/GLM-5.3. Copy the identifier verbatim from the host's model list. A404or "model not found" error almost always means a wrong slug or that the host doesn't list that checkpoint yet. - Streaming works the same way. Pass
stream=Truein the Python client or"stream": truein the JSON body, exactly as with any OpenAI-compatible server. - Keep the base URL in config, not code. That one habit is what turns "switch hosts" from a migration into a deploy.
What does GLM-5.2 cost per token?
Honest answer: there is no single number to quote. Pricing is set independently by each host and changes frequently, and DeAI News has no verified GLM-5.2 per-token prices as of 2026-08-20. Rather than publish figures that would be stale within weeks, here is how to price it yourself in five minutes:
- Check each host's pricing page directly: Z.ai for the official endpoint, and each third-party provider for theirs. Aggregators like OpenRouter display per-provider input and output rates side by side, which is the fastest comparison.
- Expect this class of open-weight model to cost a fraction of frontier closed APIs. That is a qualitative pattern, not a verified figure for any specific host.
- Compare the full bill, not the headline rate. Input and output tokens are usually priced asymmetrically, and caching, batch, or volume discounts can matter more than the list price for chatty workloads. Estimate your real input/output ratio before comparing.
Choosing a host: a 60-second checklist
- Need GLM-5.3 today? Start on Z.ai's official endpoint.
- Already paying a third-party inference provider? Check its model list for the GLM-5 line before opening a new account.
- Have data-handling requirements? Read each candidate's current retention policy, and treat all of them as provider statements, not verified guarantees.
- Want maximum control? Self-host the MIT-licensed weights.
- Whoever you pick: pin the model version, keep the base URL in config, and run a handful of your own representative prompts before and after any switch.
For a wider view beyond the GLM family, see the guide to the best open-source LLM APIs, which applies the same criteria across providers.
FAQ
What's the difference between GLM-5.3 and GLM-5.2?
GLM-5.3 is the newer point release in Z.ai's MIT-licensed GLM-5 line, released 2026-08-14. Both are open-weight; Z.ai's release notes detail capability changes. GLM-5.2 currently appears on more third-party hosts.
Is GLM-5 released under the MIT license?
Yes. Z.ai publishes the GLM-5 line, including GLM-5.3 and GLM-5.2, under the MIT license per its model cards. MIT permits commercial use, modification, and self-hosting. Verify the license field on the exact Hugging Face variant you deploy.
What are the alternatives to the official Z.ai API?
Third-party hosted providers and aggregators (OpenRouter, Together, Fireworks, Novita, DeepInfra), decentralized inference marketplaces such as Morpheus, or self-hosting the MIT-licensed weights. GLM-5.3 availability varies. Check each host's model list.
What is the GLM-5.2 price per token?
Pricing is set per host and changes frequently; DeAI News has no verified GLM-5.2 token prices as of 2026-08-20. Models in this class typically cost a fraction of frontier closed APIs. Check each provider's pricing page for current rates.
Do I need to rewrite my code to switch GLM-5 hosts?
Usually not. Most GLM-5 hosts expose an OpenAI-compatible endpoint, so switching means changing the base URL, API key, and model slug. Confirm the exact model identifier in the new host's documentation.
Questions
- GLM-5.3 vs GLM-5.2 — what's the difference?
- GLM-5.3 is the newer point release in Z.ai's MIT-licensed GLM-5 line, released 2026-08-14. Both are open-weight; Z.ai's release notes detail capability changes. GLM-5.2 currently appears on more third-party hosts.
- Is GLM-5 released under the MIT license?
- Yes. Z.ai publishes the GLM-5 line, including GLM-5.3 and GLM-5.2, under the MIT license per its model cards. MIT permits commercial use, modification, and self-hosting. Verify the license field on the exact Hugging Face variant you deploy.
- What are the alternatives to the official Z.ai API?
- Third-party hosted providers and aggregators (OpenRouter, Together, Fireworks, Novita, DeepInfra), decentralized inference marketplaces such as Morpheus, or self-hosting the MIT-licensed weights. GLM-5.3 availability varies — check each host's model list.
- What is the GLM-5.2 price per token?
- Pricing is set per host and changes frequently; DeAI News has no verified GLM-5.2 token prices as of 2026-08-20. Models in this class typically cost a fraction of frontier closed APIs. Check each provider's pricing page for current rates.
- Do I need to rewrite my code to switch GLM-5 hosts?
- Usually not. Most GLM-5 hosts expose an OpenAI-compatible endpoint, so switching means changing the base URL, API key, and model slug. Confirm the exact model identifier in the new host's documentation.
Sources
- Z.ai — GLM API platform — Z.ai
- zai-org on Hugging Face (GLM model cards and weights) — Hugging Face
- OpenRouter model catalog — OpenRouter
- Together AI — Together AI
- Fireworks AI — Fireworks AI
- Novita AI — Novita AI
- DeepInfra — DeepInfra
- The MIT License — Open Source Initiative
- OpenAI API reference (chat completions) — OpenAI
About DeAI
DeAI is an independent publication covering open-weight AI models, private inference, and decentralized infrastructure — the tools for running AI you actually control. We test providers on price, privacy, and refusal behavior and publish the numbers, not the vibes. DeAI is powered by Morpheus (mor.org), a decentralized inference marketplace, and covers it on the same terms as every other provider.
Powered by Morpheus and StrandCMS
Morpheus is a decentralized inference marketplace, covered on the same terms as every other provider — we rank it wherever the data lands. StrandCMS is the open-source, agent-first framework this site is built on.
