Models / glm-5.1
glm-5.1 API on RelayRouter
glm-5.1 is a text generation (chat) model from Zhipu AI. On RelayRouter it is served by 1 public group, billed per token from a prepaid balance with no platform fee, through the same base URL as every other model: https://relayrouter.io.
Facts
| Model id | glm-5.1 |
|---|---|
| Provider | Zhipu AI |
| Modality | text generation (chat) |
| Protocols | OpenAI Chat Completions API (/v1/chat/completions) |
| Billing | Per token, prepaid balance, failed requests not billed, no platform fee |
| Payment | Credit or debit card via Stripe |
Groups and rates
| Group | Protocol | Rate |
|---|---|---|
| Z.ai | OpenAI Chat Completions API | ¥6.24 (about $0.918) per 1M input tokens, ¥19.62 (about $2.89) per 1M output tokens |
Rates are indicative and settle from your prepaid balance; the rate shown in the console at request time is authoritative. Market reference ¥6.8 per $1. Full table on the models page and pricing.
How to call it
Create a key in the console for a group that lists glm-5.1, then call it with that group's native protocol. The quick start covers all three protocols.
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.RELAYROUTER_API_KEY,
baseURL: "https://relayrouter.io/v1",
});
const res = await client.chat.completions.create({
model: "glm-5.1",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(res.choices[0].message.content);Questions
How much does glm-5.1 cost on RelayRouter?
The cheapest public group serving glm-5.1 is "Z.ai": ¥6.24 (about $0.918) per 1M input tokens, ¥19.62 (about $2.89) per 1M output tokens. Usage is deducted from your prepaid balance and the exact rate at request time is shown in the console.
Which API protocol do I use for glm-5.1?
Use the native protocol of the group you pick: OpenAI Chat Completions API at /v1/chat/completions. The base URL is always https://relayrouter.io and the key goes in the usual header for that SDK.
Are failed requests billed?
No. Only successfully completed calls are billed, and there is no platform fee on top of token usage.