現已上線
Zhipu
glm-5
GLM-5 is Z.ai’s flagship open-source foundation model engineered for complex systems design and long-horizon agent workflows. Built for expert developers, it delivers production-grade performance on large-scale programming tasks, rivaling leading...
TextReasoningToolsOpen Weights204.8K
輸入$0.09/ 1M
輸出$0.40/ 1M
上下文204.8K
端點openai, anthropic
§ 01
價格
| 輸入價格 | $0.09/每百萬 tokens |
| 輸出價格 | $0.40/每百萬 tokens |
| 上下文視窗 | 204.8K tokens |
| 相容端點 | openai, anthropic |
| 供應商 | Zhipu |
§ 02
從您的程式碼呼叫 glm-5
將任何 OpenAI 相容 SDK 指向 UnoRouter,並以名稱請求模型。請將 YOUR_API_KEY 換成您儀表板上的真實金鑰。
bash
curl https://api.unorouter.ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "glm-5",
"messages": [{"role": "user", "content": "Hello!"}]
}'§ 03
常見問題
glm-5 每百萬 tokens 的費用是多少?
輸入每百萬 tokens 定價 $0.09,輸出每百萬 tokens 定價 $0.40。計費以 token 為單位,不會湊整到批次大小。
我要如何透過 API 使用 glm-5?
將請求送至 UnoRouter 的 /v1/chat/completions 端點,並將 model 設為 glm-5。任何 OpenAI 相容的用戶端程式庫都可使用。驗證採用標準 Bearer token。
glm-5 的上下文視窗是多少?
glm-5 支援 204.8K tokens 的上下文視窗,由您的提示詞與模型回應共用。
§ 04