Z.ai2api

hmjz100/Z.ai2api
★ 126 stars Python 🤖 AI/LLM Updated 1mo ago
将 Z.ai Chat 代理为 OpenAI/Anthropic Compatible 格式,支持多模型列表映射、免令牌、智能处理思考链、图片上传等功能;Z.ai ZtoApi z2api ZaitoApi zai X-Signature 签名 GLM 4.5 v 4.6
View on GitHub →

Quick Install

Copy the config for your editor. Some servers may need additional setup — check the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "z.ai2api": {
      "command": "uvx",
      "args": [
        "z.ai2api"
      ]
    }
  }
}

Or install with pip: pip install z.ai2api

Topics

ai2apianthropic-claudechat2apichatglmclaudeclaude-compatibleglmglm2apillmmodel-context-protocolopen-webuiopenaiopenai-chatgptopenai-compatibletool-calling