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.teamorouter.ai/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 TeamoRouter its model ID is glm-5.2, and the same TeamoRouter 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 TeamoRouter and use glm-5.2 as the model name; nothing else changes. Python example:
from openai import OpenAI
client = OpenAI(
base_url="https://api.teamorouter.ai/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.teamorouter.ai/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.teamorouter.ai/v1.
- How do I get a GLM-5.2 API key?
- You don't need a GLM account. Sign up for TeamoRouter, 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. TeamoRouter 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 TeamoRouter dashboard, then usage is deducted per request, with no subscription. Top up.
- Can I use GLM-5.2 from Russia?
- Yes. TeamoRouter works from Russia without a VPN, and the Russian version of the site lets you pay in rubles with SBP, SberPay, T-Bank or YooMoney. GLM-5.2 на русском.
- 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.teamorouter.ai/v1, use your TeamoRouter API key, and enter glm-5.2 as the model name.
- Can I pay for the GLM-5.2 API with USDT?
- Yes. In the top-up dialog, click "Pay with crypto" and send USDT, USDC or ETH from Binance, OKX or any wallet. The minimum is $5 and no browser extension is needed. Step by step: how to pay for the API with USDT.