GLM-5.2
Call the GLM-5.2 API
Model ID glm-5.2 · replace <TEAMOROUTER_API_KEY> with your API Key
OpenAI-compatible
curl https://api.moyi-api.com/v1/chat/completions \
-H "Authorization: Bearer <TEAMOROUTER_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"model":"glm-5.2","messages":[{"role":"user","content":"Hello"}]}'Loading model catalog…
Back to modelsAbout GLM-5.2
GLM-5.2 is a GLM model. On Moyi API its model ID is glm-5.2, and the same Moyi API API key works for it and every other model. Setup steps are in the API docs.
- Model ID
glm-5.2- Provider
- GLM
- Context window
- 1M tokens
- Official list price
- $1.40 input / $4.40 output per 1M tokens
More GLM models
Similar-priced models
Use the GLM-5.2 API
Point the base URL at Moyi API and use glm-5.2 as the model name; nothing else changes. Python example:
from openai import OpenAI
client = OpenAI(
base_url="https://api.moyi-api.com/v1", # the only line that changes
api_key="<TEAMOROUTER_API_KEY>",
)
response = client.chat.completions.create(
model="glm-5.2",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)Use GLM-5.2 in OpenCode
OpenCode
OpenCode → Settings → Providers → Custom provider
Provider ID: teamorouter
Base URL: https://api.moyi-api.com/v1
API key: <your TeamoRouter API key>
Model ID: glm-5.2GLM-5.2 FAQ
- What is the GLM-5.2 API model ID?
- The model ID is glm-5.2. The OpenAI-compatible base URL is https://api.moyi-api.com/v1.
- How do I get a GLM-5.2 API key?
- You don't need a GLM account. Sign up for Moyi API, create a key (sk-teamo-…) under API Keys in the dashboard, top up from $5, and call glm-5.2 — the same key also works for every other model. Create an API key.
- How large is the GLM-5.2 context window?
- GLM-5.2 has a 1M-token context window.
- How much does the GLM-5.2 API cost?
- The official list price of GLM-5.2 is $1.40 input / $4.40 output per 1M tokens. Moyi API bills per use with no monthly fee; see the price table on this page for the current discounted price.
- How do I pay for the GLM-5.2 API?
- New accounts start with a $0 balance. Top up from $5 by card in the Moyi API dashboard, then usage is deducted per request, with no subscription. Top up.
- Can I use GLM-5.2 in Cursor, Cline or Cherry Studio?
- Yes. Choose the OpenAI-compatible provider, set the base URL to https://api.moyi-api.com/v1, use your Moyi API API key, and enter glm-5.2 as the model name.