Which GLM should I use for agent work?
GLM-5 is the one tagged for agents here. GLM-5.1, GLM-5.2 and GLM-5.3 carry the coding tag, and GLM-5.3 Flash carries vision.
GLM-5 is available on A2Agent as glm-5 at $1.00 per 1M input tokens, with a 200K context window, through one OpenAI-compatible endpoint. Agent and tool-calling runs on the GLM line where 200K of context is enough.
| Model id | glm-5 |
|---|---|
| Platform | Z.ai |
| Context window | 200K |
| Tagged for | chat, agent |
| Discount | … |
| Input / 1M tokens | $1.00 |
| Output / 1M tokens | $3.20 |
Prices synced with platform billing (USD per 1M tokens).
curl https://a2agent.me/v1/chat/completions \
-H "content-type: application/json" \
-H "authorization: Bearer sk-your-a2agent-key" \
-d '{
"model": "glm-5",
"messages": [{"role": "user", "content": "Reply with OK"}]
}'Agent frameworks that fan out many small tool calls fit GLM-5 well, and Cline keeps each request far enough under 200K that the ceiling rarely binds. If a session keeps hitting it, move to GLM-5.3 rather than trimming prompts.
GLM-5 is the agent-tagged member of the Z.ai family and the cheapest of the 5.x releases sold here, at $1.00 per million input tokens and $3.20 output. It is also the shortest: 200K, against 1M on GLM-5.2, GLM-5.3 and GLM-5.3 Flash. GLM-5.1 shares the same 200K window but is tagged for coding and lists a little higher, at $1.15 and $4.00. Inside Z.ai the read is therefore straightforward. GLM-5 handles orchestration and tool loops. GLM-5.1 handles code at the same window size. The 5.2 and 5.3 releases are what you move to when a prompt outgrows 200K. Going up the line buys context, not a cheaper token.
GLM-5 is the one tagged for agents here. GLM-5.1, GLM-5.2 and GLM-5.3 carry the coding tag, and GLM-5.3 Flash carries vision.
200K tokens, the shortest of the GLM models sold here.
Yes, on both sides: $1.00 against $1.15 on input and $3.20 against $4.00 on output, at list.
Yes. The gateway exposes /v1/messages next to the OpenAI faces, and the same key works on both.
Trial credit on sign-up, billed per token, no minimum spend.