Zhipu: glm-4.6
Compared with GLM-4.5, this generation brings several key improvements: Longer context window: The context window has been expanded from 128K to 200K tokens, enabling the model to handle more complex agentic tasks. Superior coding performance: The model achieves higher scores on code benchmarks and demonstrates better real-world performance in applications such as Claude Code、Cline、Roo Code and Kilo Code, including improvements in generating visually polished front-end pages. Advanced reasoning: GLM-4.6 shows a clear improvement in reasoning performance and supports tool use during inference, leading to stronger overall capability. More capable agents: GLM-4.6 exhibits stronger performance in tool using and search-based agents, and integrates more effectively within agent frameworks. Refined writing: Better aligns with human preferences in style and readability, and performs more naturally in role-playing scenarios.
價格
快速統計
效能
支援的參數
所有提供方:為該模型提供服務的每個上游都支援。部分提供方:取決於處理請求的上游。預設值:未設定時傳送的值。
| 參數 | 提供方 | 預設值 |
|---|---|---|
| frequency_penalty | 部分提供方 | 預設不傳送 |
| include_reasoning | 所有提供方 | - |
| logit_bias | 部分提供方 | - |
| max_tokens | 所有提供方 | - |
| min_p | 部分提供方 | - |
| presence_penalty | 部分提供方 | 預設不傳送 |
| reasoning | 所有提供方 | - |
| repetition_penalty | 部分提供方 | 預設不傳送 |
| response_format | 部分提供方 | - |
| seed | 部分提供方 | - |
| stop | 部分提供方 | - |
| structured_outputs | 部分提供方 | - |
| temperature | 所有提供方 | 0.6 |
| tool_choice | 所有提供方 | - |
| tools | 所有提供方 | - |
| top_k | 所有提供方 | 預設不傳送 |
| top_p | 所有提供方 | 預設不傳送 |
常見問題
glm-4.6 每百萬 tokens 的費用是多少?
輸入每百萬 tokens 定價 $0.24,輸出每百萬 tokens 定價 $0.88。計費以 token 為單位,不會湊整到批次大小。
我要如何透過 API 使用 glm-4.6?
將請求送至 UnoRouter 的 /v1/chat/completions 端點,並將 model 設為 glm-4.6。任何 OpenAI 相容的用戶端程式庫都可使用。驗證採用標準 Bearer token。
glm-4.6 的上下文視窗是多少?
glm-4.6 支援 204.8K tokens 的上下文視窗,由您的提示詞與模型回應共用。