GLM: GLM-5.2
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, and complex multi-step automation. It is particularly strong at coding and tool use across long-running tasks, able to maintain engineering context and follow standards consistently through a full development workflow, from requirements to multi-platform deployment, in a single task.
Modalities
Price (in / out)
Context
1M
Released
Jun 16, 2026
Call the GLM-5.2 API
Model ID glm-5.2 · replace <TEAMOROUTER_API_KEY> with your API key
OpenAI-compatible
curl https://api.agentapiai.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"}]}'Providers
TeamoRouter routes by health and cost within the discount range and provider list you configured. When one returns an error we fall through to the next best — you don't pick a provider in the request. Configure discount range
Need a specific set of providers?
| Provider | Context | Input | Output | Cache | Latency | Throughput | Uptime | No training |
|---|---|---|---|---|---|---|---|---|
| Z.AI | 1M | Updating prices… | — | — | — | — | No training | |
Uptime
TeamoRouter continuously probes every provider and falls through to the next best one on error.
Uptime (24h)
—
Uptime (3d)
—
Uptime, last 3 days
—
Uptime, last 24 hours
One line per upstream provider, taking the best success rate among that provider's channels. The TeamoRouter line counts only the final attempt of each request — the end-to-end result after all fallbacks.
AVAILABILITY · LAST 24H · TEAMOROUTER GATEWAY
Data security
TeamoRouter does not use your data to train models.
For the full data-security policy, learn more.
Need to pick your own providers? .
Quickstart
from openai import OpenAI
client = OpenAI(
base_url="https://api.agentapiai.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)Endpoint: https://api.agentapiai.com/v1
About 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
- Released
- Jun 16, 2026
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.agentapiai.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.agentapiai.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.agentapiai.com/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.agentapiai.com/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.