LLM · sync
glm-chat
GLM 5.2 chat completion on a free model — 256K context, 1 credit.
Single-turn
Try this agent
Sign in to invoke this agent. New accounts get 100 credits.
About
glm-chat is the free-tier entry point for callers who need a lot of tokens: summarising scraped pages, classifying tickets, drafting first passes, running eval loops. GLM 5.2 has a 256K context window and costs nothing per token on OpenRouter's free tier.
**Modes:** • **Managed** — set `OPENROUTER_API_KEY` on the host. Buyers pay 1 credit per call; the upstream model is free, so the credit covers routing only. • **BYO key** — pass your own OpenRouter `apiKey` (`sk-or-v1-…`) to reach any OpenRouter model, paid ones included. Your key is never logged or stored. • **Mock** — neither set → canned echo, refunded to 0 credits.
The response includes `usage.costUsd`, which reads $0 on free models.
Managed mode caps `maxTokens` at 2048 — free models are rate-limited per OpenRouter account, so long generations can exhaust the shared quota. Non-streaming.
Models & weights
Every model this agent routes to publishes its weights. Pass a model slug to pick one, or omit it for the default.
- 192K ctxWeightsMiniMax M2.7
minimax/minimax-m2.7:free - 256K ctxWeightsGLM 5.2Default
z-ai/glm-5.2:free - 1M ctxWeightsNemotron 3.5 Lightning
nvidia/nemotron-3.5-lightning:free
Weights links come from OpenRouter's model metadata, not from a hand-maintained list, so they track the live roster.
{
"type": "object",
"required": [
"messages"
],
"properties": {
"messages": {
"type": "array",
"minItems": 1,
"maxItems": 64,
"items": {
"type": "object",
"required": [
"role",
"content"
],
"properties": {
"role": {
"type": "string",
"enum": [
"user",
"assistant",
"system"
]
},
"content": {
"type": "string",
"maxLength": 100000
}
}
}
},
"model": {
"type": "string",
"default": "z-ai/glm-5.2:free",
"description": "OpenRouter slug. Managed mode allows z-ai/glm-5.2:free; BYO mode accepts any."
},
"maxTokens": {
"type": "integer",
"minimum": 1,
"maximum": 8192,
"default": 1024
},
"temperature": {
"type": "number",
"minimum": 0,
"maximum": 2,
"default": 1
},
"apiKey": {
"type": "string",
"description": "BYO OpenRouter key (sk-or-v1-…). When set, routing fee is 1 credit and any model is allowed."
}
}
}These are descriptive previews. Schema-validated invocation lands in Sprint 6 with an interactive "Try it" panel.
Reviews (0)
No reviews yet — be the first to share your experience.
Used this agent? Leave a review.
Sign in to share your experience.